modules/close in gnulib has $(LIB_CLOSE) in its Link section. That means that we're supposed to link against $(LIB_CLOSE), which on mingw32 expands to -lws2_32. I don't think we're currently linking against $(LIB_CLOSE), so I guess that is our bug.
I don't think anything in gnulib will make us link against libwsock32.a. If that is necessary, then maybe that's a gnulib bug. John Darrington <[email protected]> writes: > Trial and error shows that it's necessary to link against > libwsock32.a and libws2_32.a from mingw. But I don't know how > we would be supposed to add these dependencies. Shouldn't gnulib > look after that? > > On Mon, Feb 02, 2009 at 08:58:40PM -0800, Ben Pfaff wrote: > John Darrington <[email protected]> writes: > > > I get these errors when cross compiling to the mingw target. > > > > src/.libs/libpspp.a(close.o):close.c:(.text+0x2b): undefined reference > > to `_wsaenumnetworkeve...@12' > > src/.libs/libpspp.a(close.o):close.c:(.text+0x43): undefined reference > > to `_closesoc...@4' > > src/.libs/libpspp.a(close.o):close.c:(.text+0x90): undefined reference > > to `_wsagetlaster...@0' > > src/.libs/libpspp.a(close.o):close.c:(.text+0x9d): undefined reference > > to `_wsasetlaster...@4' > > > > > > It's the latest gnulib commit, so perhaps this should be reported to > > them? > > This could easily be our fault: I wouldn't be surprised if we > were omitting some of the needed $(variables) or @variables@ from > the LDADD variables etc. Did you look those over first? > -- > Ben Pfaff > http://benpfaff.org > > > _______________________________________________ > pspp-dev mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/pspp-dev > > -- > PGP Public key ID: 1024D/2DE827B3 > fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 > See http://pgp.mit.edu or any PGP keyserver for public key. > > -- "Unix... is not so much a product as it is a painstakingly compiled oral history of the hacker subculture." --Neal Stephenson _______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
