[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW
From: |
Tim Rühsen |
Subject: |
Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW |
Date: |
Tue, 23 Dec 2014 17:32:12 +0100 |
User-agent: |
KMail/4.14.2 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) |
Am Samstag, 20. Dezember 2014, 12:26:04 schrieb Tim Rühsen:
> Am Samstag, 20. Dezember 2014, 10:37:30 schrieb Eli Zaretskii:
> > > From: Tim Ruehsen <address@hidden>
> > > Date: Fri, 19 Dec 2014 12:53:13 +0100
> > >
> > > > 4. "make check" fails to link test programs, such as unit-tests.exe,
> > > >
> > > > because it doesn't link against libintl. Again, not sure how best
> > > > to fix that (wget itself does get linked against libintl and
> > > > libiconv).
> >
> > Btw, I encountered a similar problem building wget on GNU/Linux,
> > except that in that case what was missing was -lrt, without which
> > clock_gettime and friends cannot be resolved. So there seems to be
> > some general problem here.
>
> Ah, ok. clock_gettime/-lrt problem has been solved by 4.11.2014.
> What we (basically, through m4/wget.m4) do is
> AC_CHECK_FUNCS(clock_gettime, [], [
> AC_CHECK_LIB(rt, clock_gettime)
> ])
>
> Than we use LIB_CLOCK_GETTIME in tests/Makefile.am
> LDADD = ../src/libunittest.a ../lib/libgnu.a $(LIBS) $(LIB_CLOCK_GETTIME)
>
> Maybe you could add a similar piece of code for libintl.
> (Since I can't reproduce and can't test, I need your help here.)
> A (for you) working patch would be great !
Maybe even easier as we thought ;-)
From the ./bootstrap output:
You may need to use the following Makefile variables when linking.
Use them in <program>_LDADD when linking a program, or
in <library>_a_LDFLAGS or <library>_la_LDFLAGS when linking a library.
$(GETADDRINFO_LIB)
$(HOSTENT_LIB)
$(INET_NTOP_LIB)
$(LIBSOCKET)
$(LIB_CLOCK_GETTIME)
$(LIB_CRYPTO)
$(LIB_SELECT)
$(LTLIBICONV) when linking with libtool, $(LIBICONV) otherwise
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
$(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise
$(SERVENT_LIB)
It looks like we don't use libtool when compiling/linking 'tests'.
So add/append $(LIBINTL) in tests/Makefile.am to
LDADD = ../src/libunittest.a ../lib/libgnu.a $(LIBS) $(LIB_CLOCK_GETTIME)
and give it a try. If that works for you, I'll push the change.
Tim
signature.asc
Description: This is a digitally signed message part.
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, (continued)
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Tim Ruehsen, 2014/12/19
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Eli Zaretskii, 2014/12/19
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Eli Zaretskii, 2014/12/21
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Tim Rühsen, 2014/12/21
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Eli Zaretskii, 2014/12/22
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Tim Rühsen, 2014/12/23
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Tim Rühsen, 2014/12/25
- Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Eli Zaretskii, 2014/12/25
Re: [Bug-wget] Building and testing wget 1.16.1 on MinGW, Eli Zaretskii, 2014/12/20