Bug in 'libgpg-error' version 1.11

Fco. Javier M. C. fcojavmc at todo-redes.com
Mon Apr 1 21:58:58 CEST 2013


Hello from Spain.

Sorry for my English, it's not very good.

I think I found a bug in 'libgpg-error' version 1.11

The problem happens when try to compile using 'mxe' (http://mxe.cc/).
It's a cross compiler system. When I use it to compile from GNU/Linux to
Windows (with --enable-shared) I found that 'configure' inserts twice
the tag 'EXPORTS' in generated file
'libgpg-error-1.11/src/.libs/libgpg-error-0.dll.def' and fails to
compile with this message:



libtool: link: if test "x`/usr/bin/sed 1q .libs/libgpg-error.def`" =
xEXPORTS; then cp .libs/libgpg-error.def .libs/libgpg-error-0.dll.def;
else echo EXPORTS > .libs/libgpg-error-0.dll.def; cat
.libs/libgpg-error.def >> .libs/libgpg-error-0.dll.def; fi
libtool: link:  i686-pc-mingw32-gcc -shared
.libs/libgpg-error-0.dll.def  .libs/libgpg_error_la-w32-gettext.o
.libs/libgpg_error_la-init.o .libs/libgpg_error_la-version.o
.libs/libgpg_error_la-strsource.o .libs/libgpg_error_la-strerror.o
.libs/libgpg_error_la-code-to-errno.o
.libs/libgpg_error_la-code-from-errno.o .libs/versioninfo.o    -O2   -o
.libs/libgpg-error-0.dll -Wl,--enable-auto-image-base -Xlinker
--out-implib -Xlinker .libs/libgpg-error.dll.a
/mxe/usr/lib/gcc/i686-pc-mingw32/4.8.0/../../../../i686-pc-mingw32/bin/ld:
.libs/libgpg-error-0.dll.def:8: syntax error
/mxe/usr/lib/gcc/i686-pc-mingw32/4.8.0/../../../../i686-pc-mingw32/bin/ld:.libs/libgpg-error-0.dll.def:
file format not recognized; treating as linker script
/mxe/usr/lib/gcc/i686-pc-mingw32/4.8.0/../../../../i686-pc-mingw32/bin/ld:.libs/libgpg-error-0.dll.def:7:
syntax error


It's because this tag it's not found in the first line. The file begins
with some blanks lines:


libgpg-error-0.dll.def content:
*****************************************
EXPORTS





EXPORTS
 gpg_strerror @1
 gpg_strerror_r @2
 gpg_strsource @3
 gpg_err_code_from_errno @4
 gpg_err_code_to_errno @5
 gpg_err_init @6
 gpg_err_code_from_syserror @7
 gpg_err_set_errno @8





   _gpg_w32_bindtextdomain @11
   _gpg_w32_textdomain @12
   _gpg_w32_gettext @13
   _gpg_w32_dgettext @14
   _gpg_w32_dngettext @15
   _gpg_w32_gettext_localename @16
   _gpg_w32_gettext_use_utf8 @17

 gpg_err_deinit @18
 gpg_error_check_version @19
*****************************************



I make a patch (attached) to remove this blank lines before check and
now it compiles without error.

Thank you.
Best regards.

-- 
Fco. Javier M. C.
*************************
http://todo-redes.com
http://bulmagesplus.com
*************************

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgpg-error-1.11.patch
Type: text/x-patch
Size: 4125 bytes
Desc: not available
URL: </pipermail/attachments/20130401/5e98949b/attachment.bin>


More information about the Gnupg-devel mailing list