Mailing List Archive

Libgcrypt Anomalies
Hello GNU crypto developers. I know you are working for free, so I will not be upset if you don't have time to respond to me. I'm working on a small project that needs some 3DES routines. I'm hoping I will find them in Libcrypt. The environment is SunOS 5.6.

I downloaded libgcrypt-1.1.7.tar and expanded it to create the libgcrypt-1.1.7 directory. I began following the instructions in INSTALL. Configure seemed to run OK. I had two problems in Make:

1. The first pass failed because the ar command wasn't found. I dodged this one by copying /usr/ccs/bin/ar to /usr/local/bin/ar.

2. The second pass failed with this error:

gcc -g -O2 -Wall -o .libs/testapi testapi.o ./.libs/libgcrypt.so -lnsl -lsocket -R/usr/local/lib
Undefined first referenced
symbol in file
_gcry_rndunix_constructor ./.libs/libgcrypt.so
ld: fatal: Symbol referencing errors. No output written to .libs/testapi
collect2: ld returned 1 exit status

I found that _gcry_rndunix_constructor is a function in ./cipher/construct.c, which is automatically generated by Configure.

I don't see any way to fix this problem. If you have time, any help will be appreciated.

Steven Teeter
Director, Information Technology
Symyx Technologies, Inc.
steeter@symyx.com
408-764-2067
Re: Libgcrypt Anomalies [ In reply to ]
On Thu, 19 Sep 2002 15:39:16 -0700, Steven Teeter said:

> hoping I will find them in Libcrypt. The environment is SunOS 5.6.

> 1. The first pass failed because the ar command wasn't found. I
> dodged this one by copying /usr/ccs/bin/ar to /usr/local/bin/ar.

That should not happend. litool shoudl take care of this. In the
meantime we have changed some minor things and updated the libtool, so
a newer version of libgcrypt might solve your problem. The current
one is 1.1.9. Today or tomorrow I will release 1.1.10 which fixes a
problem with shared libraries under i386 and Sparc.

> _gcry_rndunix_constructor ./.libs/libgcrypt.so
> ld: fatal: Symbol referencing errors. No output written to .libs/testapi
> collect2: ld returned 1 exit status

If you have still problems please post a build log incluing the
configure and make run.


> I found that _gcry_rndunix_constructor is a function in ./cipher/construct.c, which is automatically generated by Configure.

> I don't see any way to fix this problem. If you have time, any help will be appreciated.

> Steven Teeter
> Director, Information Technology
> Symyx Technologies, Inc.
> steeter@symyx.com
> 408-764-2067

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