- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Amanda compile error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 08:14 PM
тАО11-27-2003 08:14 PM
==============================================
# ./configure --with-user=amanda --with-user=backup
# make
cc -Ae -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -g -Ae -c alloc.c -Wp,-M.deps/alloc.TPlo +Z -DPIC -o .libs/alloc.lo
cc: "amanda.h", line 895: error 1711: Inconsistent parameter list declaration for "gettimeofday".
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
==============================================
We (my coworkers and me) have been looking at the time.h file, TZ, enviromental settings, etc, but can't find anything which might get us past this compile error. Googling it didn't work either. We used the HP ANSI/C compiler, by the way.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 08:26 PM
тАО11-27-2003 08:26 PM
Re: Amanda compile error
What's your compiler version ?
what's the list of parameter for gettimeofday at line 895 .
Regards,
Jerome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 08:38 PM
тАО11-27-2003 08:38 PM
Re: Amanda compile error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 08:47 PM
тАО11-27-2003 08:47 PM
Re: Amanda compile error
Depotfile installed:
B3900AA_APZ - B.10.20.02 - HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800)
No idea what exact version that is...
>>>what's the list of parameter for gettimeofday at line 895 .
893: #ifndef HAVE_GETTIMEOFDAY_DECL
894: # ifdef HAVE_TWO_ARG_GETTIMEOFDAY
895: extern int gettimeofday P((struct timeval *tp, struct timezone *tzp));
896: # else
897: extern int gettimeofday P((struct timeval *tp));
898: # endif
899: #endif
We have taken a look at time.h by the way, but couldn't figure out how to get things working without massive source-hacking (which really shouldn't be necessary and can't be to good for a package you wanna run in a production enviroment).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 09:11 PM
тАО11-27-2003 09:11 PM
Solution#define HAVE_GETTIMEOFDAY_DECL 1
(It is probably commented out right now)
You also need another define I think:
#define HAVE_TWO_ARG_GETTIMEOFDAY 0
(I conclude this from the error you got. You could also just define the last and not the first).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 09:56 PM
тАО11-27-2003 09:56 PM
Re: Amanda compile error
/* Define to 1 if you have the `gettimeofday' function. */
/* #undef HAVE_GETTIMEOFDAY */
(unchanged)
/* Define if gettimeofday is declared. */
#define HAVE_GETTIMEOFDAY_DECL 1
/* Define if gettimeofday takes two arguments. */
#define HAVE_TWO_ARG_GETTIMEOFDAY 0
After hitting 'make', it compiles for a while (past previous error), but:
==============================================
cc -Ae -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -g -Ae -c strftime.c -Wp,-M.deps/strftime.TPlo +Z -DPIC -o .libs/strftime.lo
cpp: "strftime.c", line 26: error 4036: Can't open include file 'tzfile.h'.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
==============================================
File "common-src/strftime.c":
24: #include
25: #include
26: #include
27: #include
# find . -name "tzfile.h"
(no file found in the amanda directory)
So first error seems to be resolved, but timezone stuff still stands in the way of a successful compile. :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 11:23 PM
тАО11-27-2003 11:23 PM
Re: Amanda compile error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2003 11:42 PM
тАО11-27-2003 11:42 PM
Re: Amanda compile error
/* Define to 1 if you have the `strftime' function. */
#define HAVE_STRFTIME 1
/* Define if strftime is declared. */
#define HAVE_STRFTIME_DECL 1
to 0 or 1 doesn't seem to have any effect at all (both were undefined by the way). :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2003 12:05 AM
тАО11-28-2003 12:05 AM
Re: Amanda compile error
I would suggest looking for gcc and libgcc and then do a configure again (if there is a configure script in the package). I've only used binary packages (for linux) of Amanda. Then it should compile correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-28-2003 12:08 AM
тАО11-28-2003 12:08 AM