Opened 10 years ago

Closed 10 years ago

#3754 closed defect (fixed)

libgcrypt-compile fails to link with libgpg-error

Reported by: dos@… Owned by: developers
Priority: normal Milestone:
Component: packages Version:
Keywords: libgcrypt libgpg-error Cc:


The tests/ subdirectory in libgcrypt, which is included in "make all", isn't cross-compilation friendly in terms of looking for libgpg-error, even when ./configure is called with the appropriate staging directory prefix. This results in an error similar to:

mkdir .libs
mipsel-linux-uclibc-gcc -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/kamikaze/staging_dir_mipsel/usr/include -I/kamikaze/staging_dir_mipsel/include -Wall -Wpointer-arith -o .libs/version version.o  -L/kamikaze/staging_dir_mipsel/usr/lib -L/kamikaze/staging_dir_mipsel/lib ../src/.libs/
/kamikaze/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.6/../../../../mipsel-linux-uclibc/bin/ld: warning:, needed by ../src/.libs/, not found (try using -rpath or -rpath-link)
../src/.libs/ undefined reference to `gpg_err_code_from_errno'
../src/.libs/ undefined reference to `gpg_strerror'
../src/.libs/ undefined reference to `gpg_strsource'
collect2: ld returned 1 exit status
make[5]: *** [version] Error 1
make[5]: Leaving directory `/kamikaze/build_mipsel/libgcrypt-1.4.1/tests'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/kamikaze/build_mipsel/libgcrypt-1.4.1'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/kamikaze/build_mipsel/libgcrypt-1.4.1'
make[2]: *** [/kamikaze/build_mipsel/libgcrypt-1.4.1/.built] Error 2
make[2]: Leaving directory `/kamikaze/package/libgcrypt'
make[1]: *** [libgcrypt-compile] Error 2
make[1]: Leaving directory `/kamikaze/package'
make: *** [package/libgcrypt-compile] Error 2

This has been fixed before in r1249's libgcrypt/patches/500-cross-compile.patch

The same patch fixes the problem in r11104 (which applies to libgcrypt-1.4.1).

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by florian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [11806]

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.