Fellow swords(wo)men,<br><br>I have been trying to compile the latest SVN (as of this morning - I believe it's revision 1979) under Cygwin in Windows XP Pro. I've noticed the following oddities:<br><br>1) When configured with the command:
<br>CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" ./usrinst.sh --target=i686-pc-mingw32<br>and then executing the make results in errors in curlftpt.cpp complaining about missing curl.h files. Those files are included, but they are in /usr/include/curl - right where they ought to be.
<br><br>2) I then add CXXFLAGS=" -I/usr/include/ " to the environment variables at the beginning of the userinst.sh execution and it brings up lots of errors about the STL being undefined. So I execute the configure script with the --without-curl option and with the CXXFLAGS=" -I/usr/include " still there.
<br><br>3) Now the system complains about missing sys/socket.h, netinet/in.h , netdb.h, arpa/inet.h in ftplib.o ... these files are also in /usr/include<br><br>4) So I go back and trace through the lib/Makefile and observe that maybe CPPFLAGS is a better place to put the -I/usr/include and I rerun the command
<br>CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" CPPFLAGS=" -I/usr/include " ./usrinst.sh --target=i686-pc-mingw32<br>so that I can see if it will pick up the curl headers. It proceeds much further than before but fails in file
curlftpt.cpp still complaining about undeclared parts of the stl vector class.<br><br>5) I then tried reconfiguring to tell system to compile with /usr/include in the CPPFLAGS and with --without-curl enabled. Now the build fails in
ftplib.c complaining about hundreds of redefined functions, macros and variables within what appears to be a problem with recursively included headers.<br><br>6) So I tried to compile it with just the native Cygwin tools by calling:
<br>CPPFLAGS=" -I/usr/include " ./usrinst.sh<br>Now the compile fails in swmgr.cpp by calling ../include/utf8transliterator.h, which includes unicode/unistr.h and unicode/translit.h - which it cannot find, as they are part of ICU, which I cannot find available for Cygwin.
<br><br>7) So then I tried to compile it with the native Cygwin tools but without icu support by configuring wit<br>CPPFLAGS=" -I/usr/include " ./usrinst.sh --without-icu<br>Now the compile dies in swmodule.cpp because I am missing
CLucene.h and its attendant headers.<br><br>8) Then I tried to compile after configuring with the following options:<br>CPPFLAGS=" -I/usr/include " ./usrinst.sh --without-icu --without-lucene<br>This time the compile dies in the linking stage - probably because I had not been doing a clean make inbetween my compilations, since they were all dying in the compile stage. So I re-pulled the SVN source and reconfigured and compiled with the same options and the compile ran cleanly, but the link returned a single message complaining about
swobject.cpp having an undefined reference to sword::stricmp(char const*, char const*) when attempting to compile buildtest.exe<br><br>Any ideas where to proceed from here?<br><br>--Greg Hellings<br>