Robert Scheck <[email protected]> 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

_______________________________________________
Help-libidn mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-libidn

Reply via email to