<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Amanda compile error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130924#M152996</link>
    <description>We have more servers than back-up units, so I figured I would give Amanda a go and back-up the unprotected systems to the Ultrium-drive of one of our HP-UX 11.00 boxes. Unfortunately, I got a error within a few seconds after executing make. Because Amanda doesn't officially run on 11.x, I tried to compile it on a 10.20 box instead (which should work according to the README and INSTALL files. I got the exact same error. I did the following:&lt;BR /&gt;==============================================&lt;BR /&gt;# ./configure --with-user=amanda --with-user=backup&lt;BR /&gt;&lt;BR /&gt;# make&lt;BR /&gt;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&lt;BR /&gt;cc: "amanda.h", line 895: error 1711: Inconsistent parameter list declaration for "gettimeofday".&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;==============================================&lt;BR /&gt;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.</description>
    <pubDate>Fri, 28 Nov 2003 04:14:11 GMT</pubDate>
    <dc:creator>John Gerritse</dc:creator>
    <dc:date>2003-11-28T04:14:11Z</dc:date>
    <item>
      <title>Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130924#M152996</link>
      <description>We have more servers than back-up units, so I figured I would give Amanda a go and back-up the unprotected systems to the Ultrium-drive of one of our HP-UX 11.00 boxes. Unfortunately, I got a error within a few seconds after executing make. Because Amanda doesn't officially run on 11.x, I tried to compile it on a 10.20 box instead (which should work according to the README and INSTALL files. I got the exact same error. I did the following:&lt;BR /&gt;==============================================&lt;BR /&gt;# ./configure --with-user=amanda --with-user=backup&lt;BR /&gt;&lt;BR /&gt;# make&lt;BR /&gt;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&lt;BR /&gt;cc: "amanda.h", line 895: error 1711: Inconsistent parameter list declaration for "gettimeofday".&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;==============================================&lt;BR /&gt;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.</description>
      <pubDate>Fri, 28 Nov 2003 04:14:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130924#M152996</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T04:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130925#M152997</link>
      <description>Hi john,&lt;BR /&gt;&lt;BR /&gt;What's your compiler version ?&lt;BR /&gt;what's the list of parameter for gettimeofday at line 895 .&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jerome</description>
      <pubDate>Fri, 28 Nov 2003 04:26:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130925#M152997</guid>
      <dc:creator>Jerome Baron</dc:creator>
      <dc:date>2003-11-28T04:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130926#M152998</link>
      <description>I think you need to take a look at the amanda.h include file (line 895) and compare it with the gettimeofday definition in the other include files (time.h could be it, don't know it by head).&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 04:38:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130926#M152998</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T04:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130927#M152999</link>
      <description>&amp;gt;&amp;gt;&amp;gt;What's your compiler version ?&lt;BR /&gt;Depotfile installed:&lt;BR /&gt;B3900AA_APZ - B.10.20.02 - HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800)&lt;BR /&gt;&lt;BR /&gt;No idea what exact version that is...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;what's the list of parameter for gettimeofday at line 895 .&lt;BR /&gt;&lt;BR /&gt;893: #ifndef HAVE_GETTIMEOFDAY_DECL&lt;BR /&gt;894: # ifdef HAVE_TWO_ARG_GETTIMEOFDAY&lt;BR /&gt;895: extern int gettimeofday P((struct timeval *tp, struct timezone *tzp));&lt;BR /&gt;896: # else&lt;BR /&gt;897: extern int gettimeofday P((struct timeval *tp));&lt;BR /&gt;898: # endif&lt;BR /&gt;899: #endif&lt;BR /&gt;&lt;BR /&gt;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).</description>
      <pubDate>Fri, 28 Nov 2003 04:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130927#M152999</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T04:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130928#M153000</link>
      <description>Apparently the configure made a wrong decision. To make it work is quite simple I think. Define in your config.h the following:&lt;BR /&gt;#define HAVE_GETTIMEOFDAY_DECL 1&lt;BR /&gt;&lt;BR /&gt;(It is probably commented out right now)&lt;BR /&gt;You also need another define I think:&lt;BR /&gt;#define HAVE_TWO_ARG_GETTIMEOFDAY 0&lt;BR /&gt;&lt;BR /&gt;(I conclude this from the error you got. You could also just define the last and not the first).&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 05:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130928#M153000</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T05:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130929#M153001</link>
      <description>I have eddited the following in config/config.h :&lt;BR /&gt;&lt;BR /&gt;/* Define to 1 if you have the `gettimeofday' function. */&lt;BR /&gt;/* #undef HAVE_GETTIMEOFDAY */&lt;BR /&gt;(unchanged)&lt;BR /&gt;&lt;BR /&gt;/* Define if gettimeofday is declared. */&lt;BR /&gt;#define HAVE_GETTIMEOFDAY_DECL 1&lt;BR /&gt;&lt;BR /&gt;/* Define if gettimeofday takes two arguments. */&lt;BR /&gt;#define HAVE_TWO_ARG_GETTIMEOFDAY 0&lt;BR /&gt;&lt;BR /&gt;After hitting 'make', it compiles for a while (past previous error), but:&lt;BR /&gt;==============================================&lt;BR /&gt;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&lt;BR /&gt;cpp: "strftime.c", line 26: error 4036: Can't open include file 'tzfile.h'.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;*** Error exit code 1&lt;BR /&gt;&lt;BR /&gt;Stop.&lt;BR /&gt;==============================================&lt;BR /&gt;File "common-src/strftime.c":&lt;BR /&gt;24: #include &lt;SYS&gt;&lt;BR /&gt;25: #include &lt;SYS&gt;&lt;BR /&gt;26: #include &lt;TZFILE.H&gt;&lt;BR /&gt;27: #include &lt;STRING.H&gt;&lt;BR /&gt;&lt;BR /&gt;# find . -name "tzfile.h"&lt;BR /&gt;(no file found in the amanda directory)&lt;BR /&gt;&lt;BR /&gt;So first error seems to be resolved, but timezone stuff still stands in the way of a successful compile. :-(&lt;/STRING.H&gt;&lt;/TZFILE.H&gt;&lt;/SYS&gt;&lt;/SYS&gt;</description>
      <pubDate>Fri, 28 Nov 2003 05:56:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130929#M153001</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T05:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130930#M153002</link>
      <description>From the name of the file it seems it is seems this is a C-file containing the strftime function. I think that this already exists. So you need to look at the config.h further and I think something like HAVE_STRFTIME or something like that is defined or not, depending on whether that function already exists.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Nov 2003 07:23:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130930#M153002</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T07:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130931#M153003</link>
      <description>Setting&lt;BR /&gt;&lt;BR /&gt;/* Define to 1 if you have the `strftime' function. */&lt;BR /&gt;#define HAVE_STRFTIME 1&lt;BR /&gt;&lt;BR /&gt;/* Define if strftime is declared. */&lt;BR /&gt;#define HAVE_STRFTIME_DECL 1&lt;BR /&gt;&lt;BR /&gt;to 0 or 1 doesn't seem to have any effect at all (both were undefined by the way). :-(</description>
      <pubDate>Fri, 28 Nov 2003 07:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130931#M153003</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T07:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130932#M153004</link>
      <description>I don't have the means to test this myself, but this seems to need a lot of extra manual changes.&lt;BR /&gt;&lt;BR /&gt;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.</description>
      <pubDate>Fri, 28 Nov 2003 08:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130932#M153004</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T08:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130933#M153005</link>
      <description>Did you use those binary files for linux on a HP-UX?</description>
      <pubDate>Fri, 28 Nov 2003 08:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130933#M153005</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T08:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130934#M153006</link>
      <description>I'm afraid I didn't... Those were intel binaries... And I've looked at amanda's and HP's site, but cannot find the amanda binaries on those, just the sources on amanda.org. But perhaps someone on this forum has a working kit? But I would suggest opening a new thread for that, since this one already has a bunny, meaning it will be disregarded by some of the forummers...</description>
      <pubDate>Fri, 28 Nov 2003 08:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130934#M153006</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-11-28T08:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Amanda compile error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130935#M153007</link>
      <description>A co-worker just dug up following link: &lt;A href="http://groups.yahoo.com/group/amanda-users/message/48011" target="_blank"&gt;http://groups.yahoo.com/group/amanda-users/message/48011&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I am going to continue this endevour on monday, and will post any solutions I may stumble across in this thread. In the meantime; have a great weekend everyone and thanks for all the great help I received so far ;-)</description>
      <pubDate>Fri, 28 Nov 2003 08:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/amanda-compile-error/m-p/3130935#M153007</guid>
      <dc:creator>John Gerritse</dc:creator>
      <dc:date>2003-11-28T08:19:05Z</dc:date>
    </item>
  </channel>
</rss>

