From: Stephen <yo...@gr...> - 2014-10-06 23:04:01
|
On Mon, Oct 6, 2014 at 10:31 PM, Gustaf Neumann <ne...@wu...> wrote: > > I've merged in your changes to the main branch. Here are some build errors while cross-compiling with mingw using this docker image: https://bitbucket.org/groks/build-naviserver-mingw/src/tip/naviserver/ ---> 0eaa9093aff9 Removing intermediate container 4d4d06c9d5b4 Step 8 : RUN PATH=/usr/x86_64-w64-mingw32/sys-root/mingw/bin:$PATH make all build-doc \ INSTALL_ROOT="/" STRINGS=/usr/bin/x86_64-w64-mingw32-strings OBJCOPY=/usr/bin/x86_64-w64-mingw32-objcopy NM=/usr/bin/x86_64-w64-mingw32-nm DLLWRAP=/usr/bin/x86_64-w64-mingw32-dllwrap GCC=/usr/bin/x86_64-w64-mingw32-gcc WINDRES=/usr/bin/x86_64-w64-mingw32-windres ADDR2LINE=/usr/bin/x86_64-w64-mingw32-addr2line AS=/usr/bin/x86_64-w64-mingw32-as PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config CPP=/usr/bin/x86_64-w64-mingw32-cpp ELFEDIT=/usr/bin/x86_64-w64-mingw32-elfedit HOST_CC=gcc LD=/usr/bin/x86_64-w64-mingw32-ld DLLTOOL=/usr/bin/x86_64-w64-mingw32-dlltool AR=/usr/bin/x86_64-w64-mingw32-ar SIZE=/usr/bin/x86_64-w64-mingw32-size WINDMC=/usr/bin/x86_64-w64-mingw32-windmc GPROF=/usr/bin/x86_64-w64-mingw32-gprof RANLIB=/usr/bin/x86_64-w64-mingw32-ranlib CXXFILT=/usr/bin/x86_64-w64-mingw32-c++filt GCOV=/usr/bin/x86_64-w64-mingw32-gcov CC=x86_64-w64-mingw32-gcc READELF=/usr/bin/x86_64-w64-mingw32-readelf OBJDUMP=/usr/bin/x86_64-w64-mingw32-objdump STRIP=/usr/bin/x86_64-w64-mingw32-strip LD_BFD=/usr/bin/x86_64-w64-mingw32-ld.bfd ---> Running in ed1e545df7f9 make[1]: Entering directory `/usr/local/src/naviserver-tip/nsthread' x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o error.o error.c In file included from thread.h:40:0, from error.c:37: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from error.c:37: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o master.o master.c In file included from thread.h:40:0, from master.c:36: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from master.c:36: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o memory.o memory.c In file included from thread.h:40:0, from memory.c:36: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from memory.c:36: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o mutex.o mutex.c In file included from thread.h:40:0, from mutex.c:36: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from mutex.c:36: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o cslock.o cslock.c In file included from thread.h:40:0, from cslock.c:47: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from cslock.c:47: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o rwlock.o rwlock.c In file included from thread.h:40:0, from rwlock.c:48: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from rwlock.c:48: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o reentrant.o reentrant.c In file included from thread.h:40:0, from reentrant.c:38: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from reentrant.c:38: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ reentrant.c: In function 'ns_ctime': reentrant.c:116:5: warning: implicit declaration of function 'ctime_s' [-Wimplicit-function-declaration] ctime_s(tlsPtr->ctbuf, sizeof(tlsPtr->ctbuf), clock); ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o sema.o sema.c In file included from thread.h:40:0, from sema.c:40: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from sema.c:40: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o thread.o thread.c In file included from thread.h:40:0, from thread.c:37: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from thread.c:37: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o tls.o tls.c In file included from thread.h:40:0, from tls.c:38: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from tls.c:38: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ x86_64-w64-mingw32-gcc -g -O2 -fomit-frame-pointer -Wall -pipe -I../include -I"/usr/local/tcl8.6.2-mingw/include" -DHAVE_CONFIG_H -c -o time.o time.c In file included from thread.h:40:0, from time.c:37: ../include/nsthread.h:168:0: warning: "lseek" redefined [enabled by default] # define lseek _lseek ^ In file included from ../include/nsthread.h:107:0, from thread.h:40, from time.c:37: /usr/x86_64-w64-mingw32/sys-root/mingw/include/io.h:335:0: note: this is the location of the previous definition #define lseek lseek64 ^ time.c: In function 'Ns_GetTime': time.c:65:21: error: invalid suffix "i64" on integer constant #define EPOCH_BIAS 116444736000000000i64 ^ time.c:72:37: note: in expansion of macro 'EPOCH_BIAS' timePtr->sec = (time_t)((ft.i - EPOCH_BIAS) / 10000000i64); ^ time.c:72:51: error: invalid suffix "i64" on integer constant timePtr->sec = (time_t)((ft.i - EPOCH_BIAS) / 10000000i64); ^ time.c:73:35: error: invalid suffix "i64" on integer constant timePtr->usec =(long)((ft.i / 10i64) % 1000000i64); ^ time.c:73:44: error: invalid suffix "i64" on integer constant timePtr->usec =(long)((ft.i / 10i64) % 1000000i64); ^ make[1]: *** [time.o] Error 1 make[1]: Leaving directory `/usr/local/src/naviserver-tip/nsthread' make: *** [all] Error 1 |