On Thu, Jun 26, 2008 at 08:47:44PM -0400, Olivier Beaton wrote: > Hi Bob, > > I've researched this problem thoroughly despite my limited knowledge, > and would really appreciate any tips you could give me.
I'm sure we can get this working, I'll even try the latest release of apr, apr-util, and log4cxx for you. > Attempt #1 "Try to stay Latest" > > Windows XP SP3 Same here. > MinGW 5.1.4 (installed to C:\MinGW) > - base > - g++ compiler > - mingw make > http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780 > > MSYS Base 1.0.10 (installed to C:\MSYS and mounting /mingw) > http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=24963 > > MSYS DTK 1.0.1 > http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=67879 > > Python 2.5.2 > http://www.python.org/download/ > > CppUnit 1.12.1 > https://sourceforge.net/project/showfiles.php?group_id=11795 > > Expat 2.0.1 (not the win32 version) > http://sourceforge.net/project/showfiles.php?group_id=10127 > > libiconv 1.12 > http://ftp.gnu.org/pub/gnu/libiconv/ > > apr SVN trunk HEAD > http://svn.apache.org/repos/asf/apr/apr/trunk/ You could probably use the latest released version of apr, they just released. > > apr-util SVN trunk HEAD > http://svn.apache.org/repos/asf/apr/apr-util/trunk/ Same here. > > log4cxx SVN trunk HEAD > http://svn.apache.org/repos/asf/logging/log4cxx/trunk And same here. At the time of the wiki writing, none of these projects had released in a long time. > in MSYS: > autoconf (GNU Autoconf) 2.56 > automake (GNU automake) 1.7.1 > ltmain.sh (GNU libtool) 1.4e (1.1162 2002/11/22 22:36:25) > g++.exe (GCC) 3.4.5 (mingw-vista special r3) FYI, I'm using the 4.x technology release. I didn't actually use the libiconv. > $ cp -rf /src/cppunit-1.12.1.tar.gz . > $ cp -rf /src/expat-2.0.1.tar.gz . > $ cp -rf /src/libiconv-1.12.tar.gz . > $ cp -rf /src/apr_svn apr > $ cp -rf /src/apr-util_svn apr-util > $ cp -rf /src/log4cxx_svn log4cxx > > $ tar zxf cppunit-1.12.1.tar.gz > $ tar zxf expat-2.0.1.tar.gz > $ tar zxf libiconv.tar.gz > > $ cd cppunit-1.12.1 > >>> I omited the --disable-shared since mine builds > $ ./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 > -s -mms-bitfields -march=i686" > $ make > $ ls src/cppunit/.libs/ | grep dll > libcppunit-1-12-1.dll > libcppunit.dll.a > $ make install > $ cd .. > > $ cd expat-2.0.1 > $ ./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 > -s -mms-bitfields -march=i686" > $ make > $ ls .libs/ | grep dll > libexpat-1.dll > libexpat.dll.a > $ make install > $ cd .. > > $ cd libiconv-1.12 > $ ./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 > -s -mms-bitfields -march=i686" > $ make > sed: -e expression #2, char 32: Extra characters after command > sed: -e expression #2, char 55: Extra characters after command > sed: -e expression #2, char 78: Extra characters after command > c:\mingw\bin\windres.exe: ./../windows/libiconv.rc:6: syntax error > make[1]: *** [libiconv.res] Error 1 > $ cd .. > > >>> Maybe 1.11 used in the wiki will work? > $ cp -rf /src/libiconv-1.11.tar.gz > $ tar zxf libiconv-1.11.tar.gz > $ cd libiconv-1.11 > $ ./configure CFLAGS="-O2 -s -mms-bitfields -march=i686" CXXFLAGS="-O2 > -s -mms-bitfields -march=i686" > $ make > >>> SUCCESS! > $ ls bin/ | grep dll > libcharset-1.dll > $ ls lib/ | grep dll > libcharset.dll.a > $ ls lib/.libs/ | grep dll > libiconv-2.dll > libiconv.dll.a > $ make install > $ cd .. > > $ cd apr > $ ./buildconf > buildconf: python version 2.5.2 (ok) > buildconf: autoconf version 2.56 (ok) > buildconf: libtool version 1.4e (ok) > >>> I did indeed spot that these ones are -O0 > $ ./configure CFLAGS="-O0 -s -mms-bitfields -march=i686" CXXFLAGS="-O0 > -s -mms-bitfields -march=i686" > ... > config.status: creating include/arch/unix/apr_private.h > ... > $ make > ... > /bin/sh /home/quadir/apr/libtool --silent --mode=compile gcc -O0 -s > -mms-bitfields -march=i686 -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE > -I./include -I/home/quadir/apr/include/arch/win32 > -I./include/arch/unix -I/home/quadir/apr/include/arch/unix > -I/home/quadir/apr/include -o dso/win32/dso.lo -c dso/win32/dso.c && > touch dso/win32/dso.lo > In file included from > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_file_io.h:29, > from dso/win32/dso.c:20: > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h: In > function `apr_winapi_Process32FirstW': > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: `hSnapshot' undeclared (first use in this function) > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: (Each undeclared identifier is reported only once > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: for each function it appears in.) > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:419: > error: `lppe' undeclared (first use in this function) > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h: At top level: > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:428: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:428: > error: syntax error before "LPPROCESSENTRY32W" > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h: In > function `apr_winapi_Process32NextW': > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:428: > error: `hSnapshot' undeclared (first use in this function) > C:/msys/1.0/home/quadir/apr/include/arch/win32/apr_arch_misc.h:428: > error: `lppe' undeclared (first use in this function) > make[1]: *** [dso/win32/dso.lo] Error 1 > make[1]: Leaving directory `/home/quadir/apr' > make: *** [all-recursive] Error 1 > > APR fails to build. OK, let me see what happens. I'll get back to you later. Bob Rossi