Missing stpcpy on Solaris 8

Werner Koch wk@gnupg.org
Mon, 18 Feb 2002 22:06:16 +0100


On Mon, 18 Feb 2002 19:56:06 +0100, Boban Acimovic said:

>  ./.libs/libgcrypt.so -ldl -lnsl -lsocket -Wl,--rpath -Wl,/usr/local/lib
> ./.libs/libgcrypt.so: undefined reference to `stpcpy'

Please grep for HAVE_STPCPY in config.h - it should be defined and
thus the version from jnlib/stringhelp should get used.

> ./.libs/libgcrypt.so: undefined reference to `_gcry_rndunix_constructor'
> ./.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'

I probably fixed this:

diff -u -r1.8 -r1.9
--- configure.ac	2002/02/07 19:15:51	1.8
+++ configure.ac	2002/02/18 11:52:31	1.9
@@ -36,6 +36,7 @@
 
 AC_CONFIG_SRCDIR([src/gcrypt.h])
 AC_CONFIG_AUX_DIR(scripts)
+AC_CANONICAL_TARGET()
 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
 AM_CONFIG_HEADER(config.h)
 
@@ -682,7 +683,7 @@
 if test "$ac_cv_mpi_extra_asm_modules" != ""; then
 for i in $ac_cv_mpi_extra_asm_modules; do
     show_extraasm="$show_extraasm $i"
-    MPI_EXTRA_ASM_OBJS="$MPI_EXTRA_ASM_OBJS $i.o"
+    MPI_EXTRA_ASM_OBJS="$MPI_EXTRA_ASM_OBJS $i.lo"
 done
 fi
 AC_SUBST(MPI_EXTRA_ASM_OBJS)

> But problem with _gcry_rndunix_constructor, __udiv_qrnnd and
> register_internal_cipher_extension remains. I saw some functions with

This should help:

RCS file: /cvs/gnupg/libgcrypt/cipher/rndunix.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- rndunix.c	2001/08/03 10:57:34	1.21
+++ rndunix.c	2002/02/18 11:52:42	1.22
@@ -853,7 +853,7 @@
 #ifndef IS_MODULE
 static
 #endif
-const char * const gnupgext_version = "RNDUNIX ($Revision: 1.21 $)";
+const char * const gnupgext_version = "RNDUNIX ($Revision: 1.22 $)";
 
 
 static struct {
@@ -909,8 +909,8 @@
 void
 rndunix_constructor(void)
 {
-    register_internal_cipher_extension( gnupgext_version,
-					gnupgext_enum_func );
+  _gcry_register_internal_cipher_extension (gnupgext_version,
+                                            gnupgext_enum_func);
 }
 #endif



-- 
Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus