Compilation report

Anand Kumria wildfire at progsoc.uts.edu.au
Thu Jan 22 14:10:41 CET 1998


On Wed, 21 Jan 1998, Werner Koch wrote:

> Anand Kumria <wildfire at progsoc.uts.edu.au> writes:
> 
> > checking size of unsigned short... 0
> > checking size of unsigned int... 0
> > checking size of unsigned long... 0
> 
> Hmmm, configure should test this with this program
> 
> #include <stdio.h>
> main()
> {
>   FILE *f=fopen("conftestval", "w");
>   if (!f) exit(1);
>   fprintf(f, "%d\n", sizeof($1));
>   exit(0);
> }
> 
> can you please look into config.log to see why this program failed.
> (zlib does not appear here).  

I didn't explain myself well, the program itself works but if you compile
with the line 'gcc -o conftest -g -O2 conftest.c -lz' Solaris ld.so (best
described as strange) can't find the zlib library at run-time. Hence my
suggestion to defer the test for zlib until later, or perhaps you can have
it in the same place but instead NLIB and at the end of configure then
update LIB.

> > SunOS doesn't have RAND_MAX defined, you should probably check for rand()
> > and if found check for RAND_MAX and '#define RAND_MAX 32767' if RAND_MAX
> > wasn't found.
> 
> Using rand() is just a kludge to let it compile until we have a RNG; but
> I can check for it.
> 
> > * configure assumes everything is in '.', doesn't support multiple
> > architectures. (VPATH) - the attached patch fixes configure, mpi/config.links
> > needs some work though.
> 
> I'm new to autoconf; I used another make scheme in the past, which worked
> quite different.   Hmmm, I don't see a attachment ... 

Opps, attached now.

Oh you may also want to test for strtoul and if not found test for strtol
and if that is found '#define strtoul(a,b,c) (unsigned long)
strtol(a,b,c))'

I'm new to autoconf too ... I've only just started reading the info docs.

Regards,
Anand.

-- 
 `When any government, or any church for that matter, undertakes to say to
  its subjects, "This you may not read, this you must not see, this you are
  forbidden to know," the end result is tyranny and oppression no matter how
  holy the motives' -- Robert A Heinlein, "If this goes on --"
-------------- next part --------------
--- configure.in	Thu Jan  8 06:13:25 1998
+++ configure.in.new	Thu Jan 22 03:36:23 1998
@@ -8,7 +8,7 @@
 AC_CONFIG_HEADER(config.h)
 
 
-VERSION=`cat ./VERSION`
+VERSION=`cat $srcdir/VERSION`
 PACKAGE=g10
 AC_SUBST(VERSION)
 AC_SUBST(PACKAGE)
@@ -175,8 +175,8 @@
     AC_MSG_RESULT(done)
 else
 ac_cv_mpi_config_done=""
-if test -f ./mpi/config.links ; then
-    . ./mpi/config.links
+if test -f $srcdir/mpi/config.links ; then
+    . $srcdir/mpi/config.links
     ac_cv_mpi_extra_asm_modules="$mpi_extra_modules"
     AC_LINK_FILES( ${mpi_ln_src}, ${mpi_ln_dst} )
     ac_cv_mpi_config_done="yes"
@@ -202,7 +202,7 @@
 CIPHER_EXTRA_OBJS=""
 CIPHER_EXTRA_DIST=""
 AC_CACHE_CHECK(for extra cipher modules, ac_cv_have_rsa_cipher,
-[if test -f cipher/rsa.c && test -f cipher/rsa.h; then
+[if test -f $srcdir/cipher/rsa.c && test -f $srcdir/cipher/rsa.h; then
   ac_cv_have_rsa_cipher=yes; else ac_cv_have_rsa_cipher=no; fi])
 if test $ac_cv_have_rsa_cipher = yes; then
     AC_DEFINE(HAVE_RSA_CIPHER)
-------------- next part --------------
Script started on Thu Jan 22 12:36:58 1998
wildfire at geryon [~] 262 $gcc rm conftest

wildfire at geryon [~] 263 $gcc -o conftest -g -O2 conftest.c -lz

wildfire at geryon [~] 264 $./conftest

ld.so.1: ./conftest: fatal: libz.so.1.0.4: can't open file: errno=2

Killed

wildfire at geryon [~] 265 $ldd conftest

        libz.so.1.0.4 =>         (not found)

        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1

wildfire at geryon [~] 266 $rm conftest

wildfire at geryon [~] 267 $gcc -o conftest -g -O2 -R/usr/local/lib conftest.c -lz

wildfire at geryon [~] 268 $./conftest

wildfire at geryon [~] 269 $ldd conftest

        libz.so.1.0.4 =>         /usr/local/lib/libz.so.1.0.4

        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1

wildfire at geryon [~] 270 $rm conftest

wildfire at geryon [~] 271 $gcc -o conftest -g -O2 - conftest.c

wildfire at geryon [~] 272 $./conftest

wildfire at geryon [~] 273 $ldd cn onftest

        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1

wildfire at geryon [~] 274 $rm conftest

wildfire at geryon [~] 275 $gcc -o conftest -g -O2 conftest.c -lz

wildfire at geryon [~] 276 $./conftest

ld.so.1: ./conftest: fatal: libz.so.1.0.4: can't open file: errno=2

Killed

wildfire at geryon [~] 277 $LD_LIBRARY_PATH=/usr/local/lin b; export LD_LIBRARY_PATH

wildfire at geryon [~] 278 $./conftest

wildfire at geryon [~] 279 $ldd conftest

        libz.so.1.0.4 =>         /usr/local/lib/libz.so.1.0.4

        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1

wildfire at geryon [~] 280 $LD_LIBRARY_PATH=; export LD_LIBRARY_PATH

wildfire at geryon [~] 281 $ldd conftest

        libz.so.1.0.4 =>         (not found)

        libc.so.1 =>     /usr/lib/libc.so.1

        libdl.so.1 =>    /usr/lib/libdl.so.1

wildfire at geryon [~] 282 $
script done on Thu Jan 22 12:41:10 1998


More information about the Gnupg-devel mailing list