[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test binary test-punycode of libidn2 is static linked?!
From: |
Simon Josefsson |
Subject: |
Re: Test binary test-punycode of libidn2 is static linked?! |
Date: |
Wed, 25 May 2011 11:21:58 +0200 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Robert Scheck <address@hidden> writes:
> Hello Simon,
>
> is it expected, that the test binary "test-punycode" of libidn2 is static
> linked?! If I run "./configure --disable-static", "make -C tests check" is
> going to fail with:
>
> gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -c test-punycode.c
> test-punycode.c: In function 'main':
> test-punycode.c:229:2: warning: format '%d' expects argument of type
> int', but argument 2 has type 'size_t' [-Wformat]
> /bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -static -o test-punycode
> test-punycode.o ../libidn2.la
> libtool: link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> -mtune=generic -o test-punycode test-punycode.o ../.libs/libidn2.so
> -Wl,-rpath -Wl,/builddir/build/BUILD/libidn2-0.5/.libs
> test-punycode.o: In function `main':
> /builddir/build/BUILD/libidn2-0.5/tests/test-punycode.c:238: undefined
> reference to `_idn2_punycode_encode'
> /builddir/build/BUILD/libidn2-0.5/tests/test-punycode.c:280: undefined
> reference to `_idn2_punycode_decode'
> collect2: ld returned 1 exit status
>
> Fedora is avoiding static linking and avoiding static libraries in the RPM
> packages. At the moment, I'm working around that by building the *.a file
> and deleting it afterwards. I can deal with that, but I don't know if this
> is expected at your side.
Hi Robert. Thanks for the report. I should have used -no-install
instead of -static, I'll prepare a new release.
/Simon
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Test binary test-punycode of libidn2 is static linked?!,
Simon Josefsson <=