Newbie help

Craig Graham craig at twolips-translations.co.uk
Wed Apr 14 10:00:19 CEST 2004


Craig Graham wrote:
> I'm using Borland CBuilderX and it compiles fine, but on linking I
> get many errors. By doing the linking step manually I can reproduce
> the problem in a more portable way;

I remembered that I had to make some code changes to get things to compile-
mainly because I'm unfamiliar with all the "dialect" options and was getting
errors about illegal typecasting (I first started playing with this a couple
of weeks ago and have been trying things on and off). So I've gone back to
the original directory and tried doing simply "make basic" and "make
keygen"; the results are the same

[root at splosh tests]# make basic
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall   -o basic  basic.o
../src/libgcrypt.la -lnsl  -lnsl
gcc -g -O2 -Wall -o .libs/basic basic.o
 ../src/.libs/libgcrypt.so -lnsl -Wl,--rpath -Wl,/usr/local/lib
basic.o(.text+0x2a0): In function `check_cbc_mac_cipher':
/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:120: undefined
reference to `gpg_strerror'
basic.o(.text+0x30d):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:
154: undefined reference to `gpg_strerror'
basic.o(.text+0x32f):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:
145: undefined reference to `gpg_strerror'
basic.o(.text+0x351):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:
168: undefined reference to `gpg_strerror'
basic.o(.text+0x3e3): In function `check_aes128_cbc_cts_cipher':
/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:235: undefined
reference to `gpg_strerror'
basic.o(.text+0x56d):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/basic.c:
242: more undefined references to `gpg_strerror' follow
../src/.libs/libgcrypt.so: undefined reference to `gpg_err_code_from_errno'
../src/.libs/libgcrypt.so: undefined reference to `gpg_strsource'
collect2: ld returned 1 exit status
make: *** [basic] Error 1
[root at splosh tests]# make keygen
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall   -o keygen  keygen.o
../src/libgcrypt.la -lnsl  -lnsl
gcc -g -O2 -Wall -o .libs/keygen keygen.o
 ../src/.libs/libgcrypt.so -lnsl -Wl,--rpath -Wl,/usr/local/lib
keygen.o(.text+0x85): In function `print_mpi':
/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.c:64: undefined
reference to `gpg_strerror'
keygen.o(.text+0x1da): In function `check_generated_rsa_key':
/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.c:111: undefined
reference to `gpg_strerror'
keygen.o(.text+0x3e5): In function `check_rsa_keys':
/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.c:131: undefined
reference to `gpg_strerror'
keygen.o(.text+0x425):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.
c:135: undefined reference to `gpg_strerror'
keygen.o(.text+0x445):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.
c:171: undefined reference to `gpg_strerror'
keygen.o(.text+0x47d):/usr/NETDRIVE/Inbox/PGP/libgcrypt-1.1.42/tests/keygen.
c:167: more undefined references to `gpg_strerror' follow
../src/.libs/libgcrypt.so: undefined reference to `gpg_err_code_from_errno'
../src/.libs/libgcrypt.so: undefined reference to `gpg_strsource'
collect2: ld returned 1 exit status
make: *** [keygen] Error 1

Can't get simpler than this. Any suggestions as to what is going wrong?

-- 
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/






More information about the Gcrypt-devel mailing list