Mailing List Archive

Build problems in libgpg-error 1.4
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

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: Build problems in libgpg-error 1.4 [ In reply to ]
On Thu, 14 Sep 2006 18:28, Simon Josefsson said:

> 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. Time to think about extending make distcheck to include the
pretty common w32 case.


Shalom-Salam,

Werner


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel