build problem on cygwin
Tim Hoel <[email protected]> Sun, 19 Oct 2008 12:40:09 -0700 (PDT)
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <f1c25b8b-a3db-467a-bb86-6149f78ff8d5@y29g2000hsf.googlegroups.com> |
I'm trying to build metakit and Mk4py for cygwin.
- download metakit-2.4.9.7.tar.gz
- gunzip and untar
% cd builds
% ../unix/configure --with-python=/usr
% vi Makefile # to add -mno-cygwin
% make
Fails with:
fileio.cpp:347: undefined reference to `__wopen'
fileio.cpp:326: undefined reference to `__wopen'
string.h:98: undefined reference to `__stricmp'
- Lines 96-98 of /usr/i686-pc-mingw32/include/string.h contain:
__CRT_INLINE int __cdecl __MINGW_NOTHROW
strcasecmp (const char * __sz1, const char * __sz2)
{return _stricmp (__sz1, __sz2);}
I believe that my cygwin environment is up-to-date. I'm not really
sure
what the no-cygwin option does, and I can't find any documentation on
the web.
Also, it seems wrong that the link line is trying to generate
libmk4.so on a Windows system.
Thanks in advance.
----------------------------------------------------------
pc> diff Makefile Makefile.orig
39c39
< CXX_FLAGS = -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin \
---
> CXX_FLAGS = -g -O2 -fPIC -DUSE_TCL_STUBS \
pc> make
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/column.cpp
../unix/../src/column.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/custom.cpp
../unix/../src/custom.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/derived.cpp
../unix/../src/derived.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/fileio.cpp
../unix/../src/fileio.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/field.cpp
../unix/../src/field.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/format.cpp
../unix/../src/format.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/handler.cpp
../unix/../src/handler.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/persist.cpp
../unix/../src/persist.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/remap.cpp
../unix/../src/remap.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/std.cpp
../unix/../src/std.cpp:1: warning: -fPIC ignored for target (all code
is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/store.cpp
../unix/../src/store.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/string.cpp
../unix/../src/string.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/table.cpp
../unix/../src/table.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/univ.cpp
../unix/../src/univ.cpp:1: warning: -fPIC ignored for target (all code
is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/view.cpp
../unix/../src/view.cpp:1: warning: -fPIC ignored for target (all code
is
position independent)
g++ -c -g -O2 -fPIC -DUSE_TCL_STUBS -mno-cygwin -I../unix/../include -
I../unix/../src
-I. ../unix/../src/viewx.cpp
../unix/../src/viewx.cpp:1: warning: -fPIC ignored for target (all
code is
position independent)
g++ -shared -o libmk4.so column.o custom.o derived.o fileio.o field.o
format.o handler.o persist.o remap.o std.o store.o string.o table.o
univ.o
view.o viewx.o -lpthread
fileio.o: In function `_ZN15c4_FileStrategy8DataOpenEPKci':
/home/Tim/pkgs/metakit-2.4.9.7/builds/../unix/../src/fileio.cpp:347:
undefined reference to `__wopen'
/home/Tim/pkgs/metakit-2.4.9.7/builds/../unix/../src/fileio.cpp:326:
undefined reference to `__wopen'
string.o: In function `_ZNK9c4_String13CompareNoCaseEPKc':
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/
string.h:98:
undefined reference to `__stricmp'
collect2: ld returned 1 exit status
make: *** [libmk4.so] Error 1
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "metakit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/metakit?hl=en
-~----------~----~----~----~------~----~------~--~---