libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] MinGW Undefined reference to _win_tsearch


From: Andre Colomb
Subject: [libmicrohttpd] MinGW Undefined reference to _win_tsearch
Date: Mon, 18 May 2009 14:57:40 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Hi again!

I just ran into another problem with my build of MHD version 0.4.2 (MinGW GCC 3.4.5):

libtool: link: gcc -shared .libs/connection.o .libs/reason_phrase.o .libs/daemon.o .libs/internal.o .libs/memorypool.o .libs/postprocessor.o .libs/response.o -L/z/src/mhd-build/pthreads/Pre-built.2/lib -L/z/src/mhd-build/plibc-0.1.4/src/.libs -L/z/src/mhd-build/libintl-0.14.4-lib/lib /z/src/mhd-build/plibc-0.1.4/src/.libs/libplibc.dll.a -lole32 -luuid -lcomdlg32 -lgdi32 -lws2_32 -lintl -lpthreadGC2 -Wl,--export-all-symbols -o .libs/libmicrohttpd-5.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libmicrohttpd.dll.a
Creating library file: .libs/libmicrohttpd.dll.a
.libs/daemon.o:daemon.c:(.text+0x1b3): undefined reference to `_win_tsearch'
.libs/daemon.o:daemon.c:(.text+0x2a7): undefined reference to `_win_tfind'
.libs/daemon.o:daemon.c:(.text+0x31a): undefined reference to `_win_tdelete'
collect2: ld returned 1 exit status

It appears that those three functions were added to MHD's version of plibc.h between 0.4.1 and 0.4.2. However PlibC upstream's version of that file does not define these symbols. Therefore, neither the precompiled nor the current stable libplibc-1.DLL export these three functions.

Nils, I see that you added this functionality to libmicrohttpd's plibc.h in SVN revision 8359. However, the file revision was not changed (1.46). So where can I find the corresponding implementation for these functions? Or does MHD even need them? It would be nice to have a PlibC stable release to work with the new libmicrohttpd version 0.4.2.

Please contact me if you need further details concerning this build problem.

Regards,
André




reply via email to

[Prev in Thread] Current Thread [Next in Thread]