Amanda-Users

Problems building under HPUX

2004-03-15 21:49:23
Subject: Problems building under HPUX
From: "David Trusty" <dwtrusty AT hotmail DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 15 Mar 2004 20:38:27 -0600
Hi,

I'm trying to build version 2.4.4p2 under HP/UX 11i with gcc 3.2
and am having some problems.

The first problem is this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(output from configure)
checking for gettimeofday... no
checking for gettimeofday number of arguments... 2
(output from make)
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -D_FILE_OFFSET_BITS=64 -D__STDC_EXT__ -D_FILE_OFFSET_BITS=64 -g -O2 -c alloc.c -MT all
oc.lo -MD -MP -MF .deps/alloc.TPlo  -fPIC -DPIC
<command line>:39:1: warning: "__STDC_EXT__" redefined
<command line>:35:1: warning: this is the location of the previous definition
In file included from alloc.c:33:
amanda.h:895: error: conflicting types for `gettimeofday'
/usr/include/sys/time.h:503: error: previous declaration of `gettimeofday'
make[1]: *** [alloc.lo] Error 1
make[1]: Leaving directory `/home/amanda/amanda-2.4.4p2/common-src'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I can fix this problem by adding
  #define HAVE_GETTIMEOFDAY_DECL 1
to config.h

After I fix the problem above, I get this error:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -D_FILE_OFFSET_BITS=64 -D__STDC_EXT__ -D_FILE_OFFSET_BITS=64 -g -O2 -c strftime.c -MT
strftime.lo -MD -MP -MF .deps/strftime.TPlo  -fPIC -DPIC
<command line>:39:1: warning: "__STDC_EXT__" redefined
<command line>:35:1: warning: this is the location of the previous definition
strftime.c:26:20: tzfile.h: No such file or directory
strftime.c: In function `strftime':
strftime.c:54: error: argument `format' doesn't match prototype
/usr/include/sys/time.h:254: error: prototype declaration
strftime.c:54: error: argument `t' doesn't match prototype
/usr/include/sys/time.h:254: error: prototype declaration
strftime.c: At top level:
strftime.c:69: warning: `_fmt' was declared `extern' and later `static'
strftime.c: In function `_fmt':
strftime.c:202: error: `TM_YEAR_BASE' undeclared (first use in this function)
strftime.c:202: error: (Each undeclared identifier is reported only once
strftime.c:202: error: for each function it appears in.)
strftime.c:211: error: structure has no member named `tm_zone'
strftime.c:211: error: structure has no member named `tm_zone'
strftime.c: At top level:
strftime.c:232: warning: `_conv' was declared implicitly `extern' and later `static'
strftime.c:112: warning: previous declaration of `_conv'
strftime.c:247: warning: `_add' was declared implicitly `extern' and later `static'
strftime.c:242: warning: previous declaration of `_add'
make[1]: *** [strftime.lo] Error 1
make[1]: Leaving directory `/home/amanda/amanda-2.4.4p2/common-src'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There doesn't seem to be a tzfile.h on the system.

Any ideas?

Thanks!!

David

_________________________________________________________________
Store more e-mails with MSN Hotmail Extra Storage ? 4 plans to choose from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/


<Prev in Thread] Current Thread [Next in Thread>