Solaris build problem for gcrypt 1.2.1 and 1.2.2
Mats Rojestal
mats.rojestal at bredband.net
Fri Nov 18 22:24:38 CET 2005
Hi,
I get this problem when trying to build libgcrypt on solaris 9 and 10
---------------
/bin/bash ../libtool --tag=CC --mode=link gcc -I/usr/local/include -g -O2 -Wall
-o ac ac.o ../src/libgcrypt.la -lnsl -lsocket
gcc -I/usr/local/include -g -O2 -Wall -o .libs/ac ac.o
../src/.libs/libgcrypt.so -L/usr/local/lib /usr/local/lib/libgpg-error.so -lnsl
-lsocket -R/usr/local/lib
Undefined first referenced
symbol in file
gcry_ac_data_verify ac.o
gcry_ac_open ac.o
gcry_ac_key_init ac.o
...
----------------
This is problem is from all objects in cipher not properly linked to libgcrypt
and file cipher/libcipher.la contain no information for libtool for correct linking.
The only way to get this to work seems to edit src/Makefile and add missing
objects for proper linking. This is a non portable and an ugly however this
bilds libgcrypt properly for me. Hope somone kan find a fix for this.
Regards,
Mats Röjestål
--- src/Makefile Fri Nov 18 21:52:45 2005
+++ src/Makefile.new Fri Nov 18 22:04:29 2005
@@ -86,6 +86,19 @@
libgcrypt_la-secmem.lo libgcrypt_la-missing-string.lo \
libgcrypt_la-module.lo libgcrypt_la-ath.lo
libgcrypt_la_OBJECTS = $(am_libgcrypt_la_OBJECTS)
+libcipher_OBJECTS = ../cipher/.libs/ac.o ../cipher/.libs/cipher.o \
+ ../cipher/.libs/elgamal.o ../cipher/.libs/md4.o \
+ ../cipher/.libs/random.o ../cipher/.libs/rndlinux.o \
+ ../cipher/.libs/sha256.o ../cipher/.libs/arcfour.o \
+ ../cipher/.libs/crc.o ../cipher/.libs/md5.o \
+ ../cipher/.libs/rfc2268.o ../cipher/.libs/rsa.o \
+ ../cipher/.libs/sha512.o ../cipher/.libs/blowfish.o \
+ ../cipher/.libs/des.o ../cipher/.libs/primegen.o \
+ ../cipher/.libs/rijndael.o ../cipher/.libs/serpent.o \
+ ../cipher/.libs/tiger.o ../cipher/.libs/cast5.o \
+ ../cipher/.libs/dsa.o ../cipher/.libs/md.o ../cipher/.libs/pubkey.o \
+ ../cipher/.libs/rmd160.o ../cipher/.libs/sha1.o \
+ ../cipher/.libs/twofish.o
binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
SCRIPTS = $(bin_SCRIPTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
@@ -259,7 +272,7 @@
libgcrypt_la_DEPENDENCIES = ../cipher/libcipher.la ../mpi/libmpi.la \
$(srcdir)/libgcrypt.vers
-libgcrypt_la_LIBADD = ../cipher/libcipher.la ../mpi/libmpi.la \
+libgcrypt_la_LIBADD = $(libcipher_OBJECTS) ../mpi/libmpi.la \
-L/usr/local/lib -lgpg-error
all: all-am
More information about the Gcrypt-devel
mailing list