Build problems in libgpg-error 1.4

Simon Josefsson jas at extundo.com
Thu Sep 14 18:28:25 CEST 2006


Hi!  Cross-compiling libgpg-error using mingw fails:

make[2]: Entering directory `/home/jas/libgpg-error-1.4/tests'
...
if i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src    -g -O2 -MT t-syserror.o -MD -MP -MF ".deps/t-syserror.Tpo" -c -o t-syserror.o t-syserror.c; \
        then mv -f ".deps/t-syserror.Tpo" ".deps/t-syserror.Po"; else rm -f ".deps/t-syserror.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i586-mingw32msvc-gcc  -g -O2   -o t-syserror.exe  t-syserror.o ../src/libgpg-error.la
i586-mingw32msvc-gcc -g -O2 -o .libs/t-syserror.exe t-syserror.o  ../src/.libs/libgpg-error.dll.a -Wl,--rpath -Wl,/usr/local/libt-syserror.o: In function `main':/home/jas/libgpg-error-1.4/tests/t-syserror.c:54: undefined reference to `_gpg_err_code_from_syserror'
:/home/jas/libgpg-error-1.4/tests/t-syserror.c:69: undefined reference to `_gpg_err_code_from_syserror'
collect2: ld returned 1 exit status
make[2]: *** [t-syserror.exe] Error 1
make[2]: Leaving directory `/home/jas/libgpg-error-1.4/tests'

The problem appear to be a missing export, adding:

 gpg_err_code_from_syserror @7

to src/gpg-error.def make it work again.

Thanks,
Simon



More information about the Gcrypt-devel mailing list