linker error during compilation

Blake Matheny bmatheny@purdue.edu
Sun, 2 Feb 2003 15:30:29 -0500


--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I grabbed the cvs version of libgcrypt (the PACKAGE_VERSION from config.h is
noted as being 1.1.13-cvs) today and received the following error from the
linker:

....
/usr/bin/ld:./libgcrypt.vers:23: parse error in VERSION script
collect2: ld returned 1 exit status
make[2]: *** [libgcrypt.la] Error 1
make[2]: Leaving directory
....

According to the documentation that I have for my linker, it says that the
syntax for the VERSION command is:

VERSION { commands }

where VERSION should not be blank.

I have attached a tiny patch that fixes this problem on my system. You may
wish to alter the version identifier. Thanks for the great software.

-Blake

--
Blake Matheny           "... one of the main causes of the fall of the
bmatheny@purdue.edu      Roman Empire was that, lacking zero, they had
http://www.dbaseiv.net   no way to indicate successful termination of
http://ovmj.org/GNUnet/  their C programs." --Robert Firth

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="libgcrypt-linker.patch"

--- libgcrypt/src/libgcrypt.vers	Thu Jan  2 06:58:04 2003
+++ libgcrypt_tmp/src/libgcrypt.vers	Sun Feb  2 15:16:19 2003
@@ -20,7 +20,7 @@
 # WARNING: _gcry_generate_elg_prime is only a temporary solution for
 # GNUTLS and should not be used by any otehr program.  A new interface
 # for prime generation will be available RSN (wk 2003-01-02)
-{
+VERSION {
   global: gcry*; _gcry_generate_elg_prime;
   local: *;
 };

--dDRMvlgZJXvWKvBx--