gpg 1.0.3 won't compile on HPUX 10.20

James W Walden jamesw@ichips.intel.com
Fri, 22 Sep 2000 10:08:38 -0700 (PDT)


I am unable to compile gpg 1.0.3 on HPUX 10.20 with gcc 2.95.1 because
of an error compiling util/iobuf.c.  It appears the problem is with the
stat64 struct which is supported on this OS, but apparently the correct
defines are not set to include the definition.  When I define
_LARGEFILE64_SOURCE to attempt to include the definition of stat64, I
receive this error about not supporting large files in strict ANSI mode:

/usr/include/sys/stdsyms.h:249: #error "Large File interfaces not supported in strict ANSI mode."

Please let me know if you have been able to build gpg 1.0.3 successfully
on HPUX 10.20.  The configure line I used and the errors from iobuf.c are
included below.

James Walden (jamesw@ichips.intel.com)

Configure line:

CC=gcc CFLAGS='-O3 -I/usr/intel/pkgs/zlib/1.1.3/include -I/usr/intel/pkgs/gdbm/1.8.0/include' LDFLAGS='-L/usr/intel/pkgs/zlib/1.1.3/lib -L/usr/intel/pkgs/gdbm/1.8.0/lib' ../gnupg-1.0.3/configure --prefix=/usr/intel/00r1 --disable-nls

Error results from compile:

gcc -DHAVE_CONFIG_H -I. -I../../gnupg-1.0.3/util -I.. -I../../gnupg-1.0.3/include -I../../gnupg-1.0.3/intl    -O3 -I/usr/intel/pkgs/zlib/1.1.3/include -I/usr/intel/pkgs/gdbm/1.8.0/include -Wall -c ../../gnupg-1.0.3/util/iobuf.c
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_open':
../../gnupg-1.0.3/util/iobuf.c:598: warning: implicit declaration of function `fopen64'
../../gnupg-1.0.3/util/iobuf.c:598: warning: assignment makes pointer from integer without a cast
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_create':
../../gnupg-1.0.3/util/iobuf.c:667: warning: assignment makes pointer from integer without a cast
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_append':
../../gnupg-1.0.3/util/iobuf.c:700: warning: assignment makes pointer from integer without a cast
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_openrw':
../../gnupg-1.0.3/util/iobuf.c:727: warning: assignment makes pointer from integer without a cast
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_fopen':
../../gnupg-1.0.3/util/iobuf.c:766: warning: assignment makes pointer from integer without a cast
../../gnupg-1.0.3/util/iobuf.c: In function `iobuf_get_filelength':
../../gnupg-1.0.3/util/iobuf.c:1321: storage size of `st' isn't known
../../gnupg-1.0.3/util/iobuf.c:1329: warning: implicit declaration of function `fstat64'
../../gnupg-1.0.3/util/iobuf.c:1321: warning: unused variable `st'
gmake[2]: *** [iobuf.o] Error 1
gmake[2]: Leaving directory `/tmp_mnt/fs3/comp.apps_build.1/gpg/hp700_ux_10.20/util'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp_mnt/fs3/comp.apps_build.1/gpg/hp700_ux_10.20'
gmake: *** [all-recursive-am] Error 2 


-- 
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of  "unsubscribe"  to gnupg-users-request@gnupg.org