[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Link errors on mingw crosscompile
From: |
Ben Pfaff |
Subject: |
Re: Link errors on mingw crosscompile |
Date: |
Mon, 02 Feb 2009 21:54:46 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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 <address@hidden> 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 <address@hidden> 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 address@hidden'
> > src/.libs/libpspp.a(close.o):close.c:(.text+0x43): undefined reference
> > to address@hidden'
> > src/.libs/libpspp.a(close.o):close.c:(.text+0x90): undefined reference
> > to address@hidden'
> > src/.libs/libpspp.a(close.o):close.c:(.text+0x9d): undefined reference
> > to address@hidden'
> >
> >
> > 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
> address@hidden
> 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