Title: make problem - HP-UX 11i, amanda 2.4.2p2

Hi All,
    I'm having trouble with running make with Amanda. The configure occurs to run fine, then when I run make I get the following errors:

<command line>: warning: "__STDC_EXT__" redefined
<command line>: warning: this is the location of the previous definition
In file included from amanda.h:224,
                 from alloc.c:33:
/usr/include/sys/socket.h:439: parse error before "sendfile"
/usr/include/sys/socket.h:439: parse error before "bsize_t"
/usr/include/sys/socket.h:441: parse error before "sendpath"
/usr/include/sys/socket.h:441: parse error before "bsize_t"
/usr/include/sys/socket.h:456: parse error before "__sendfile64"
/usr/include/sys/socket.h:456: parse error before "bsize_t"
/usr/include/sys/socket.h:457: parse error before "__sendpath64"
/usr/include/sys/socket.h:457: parse error before "bsize_t"
/usr/include/sys/socket.h:459: parse error before "sendfile"
/usr/include/sys/socket.h: In function `sendfile':
/usr/include/sys/socket.h:459: parse error before "bsize_t"
/usr/include/sys/socket.h: At top level:
/usr/include/sys/socket.h:460: parse error before "sendpath"
/usr/include/sys/socket.h: In function `sendpath':
/usr/include/sys/socket.h:460: parse error before "bsize_t"
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


I checked the socket.h file and these are the offending lines:
   439     extern sbsize_t sendfile __((int, int, off_t, bsize_t,
   440                                 const struct iovec *, int));
   441     extern sbsize_t sendpath __((int, char *, off_t, bsize_t,
   442                                 const struct iovec *, int));
   443  #if defined(_LARGEFILE64_SOURCE)
   444  #ifdef __LP64__
   445  #define sendfile64 sendfile
   446  #define sendpath64 sendpath
   447  #else /* __LP64__ */
   448  extern sbsize64_t sendfile64 __((int, int, off64_t, bsize64_t,
   449                       const struct iovec *, int));
   450  extern sbsize64_t sendpath64 __((int, char *, off64_t, bsize64_t,
   451                       const struct iovec *, int));
   452  #endif /* __LP64 */
   453  #endif /* _LARGEFILE64_SOURCE */
   454
   455  #ifdef _APP32_64BIT_OFF_T
   456  extern sbsize64_t __sendfile64 __((int,int,off_t,bsize_t, const struct iovec *, int));
   457  extern sbsize64_t __sendpath64 __((int,char *,off_t,bsize_t,const struct iovec *,int));
   458  #ifndef __cplusplus
   459  static sbsize_t sendfile(a,b,c,d,e,f) int a,b,f; off_t c; bsize_t d; const struct iovec * e; { return __sendfile64(a,b,c,d,e

,f); }
   460  static sbsize_t sendpath(a,b,c,d,e,f) int a,f; char *b; off_t c; bsize_t d; const struct iovec * e; { return __sendpath64(a,

b,c,d,e,f); }

Any ideas on how I can fix this? My C is way rusty....


As a side note: I received the following warning during configure. Is this something that I need to be worried about?

configure: warning: *** Run amhpfixdevs on HP-UX systems using /dev/vg??.


Thanks for any and all help!!


Gary Hines
Systems Analyst
SHC Direct, L.L.C.
[EMAIL PROTECTED]

Reply via email to