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

2002-05-30 Thread Gary Hines
Title: make problem - HP-UX 11i, amanda 2.4.2p2





Hi All, 
 I'm having trouble with running make with Amanda. The configure appears 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] 


Gary Hines
Systems Analyst
SHC Direct, L.L.C.
[EMAIL PROTECTED]
(630)874-2439





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

2002-05-30 Thread Gary Hines
Title: RE: make problem - HP-UX 11i, amanda 2.4.2p2





Nope. That's supposed to be produced in the make and I'm not getting through the make. I don't think I need it due to the following quote from the SYSTEM.NOTES for hpux:

The use of `amhpfixdevs' is deprecated, since you can list
mount-points or full device names in the disklist. The script may be
removed in future releases of Amanda.


I'm just stuck trying to figure out why socket.h is not compiling


-Original Message-
From: Jon LaBadie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 11:14 AM
To: Jon LaBadie
Subject: Re: make problem - HP-UX 11i, amanda 2.4.2p2



On Thu, May 30, 2002 at 10:47:44AM -0500, Gary Hines wrote:
 Hi All, 
 I'm having trouble with running make with Amanda. The configure appears
 to run fine, then when I run make I get the following errors:
 
 [ lots of errors I think amhpfixdevs is supposed to fix deleted ]
 
 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??. 


Did you?


-- 
Jon H. LaBadie [EMAIL PROTECTED]
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)





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

2002-05-30 Thread Gary Hines
Title: RE: make problem - HP-UX 11i, amanda 2.4.2p2 





Hi Eric,
 I'm using gcc, and I just downloaded the new gcc3.1 from the hp porting site, but I still get the same error. Does gcc come with separate includes? The socket.h that came with the HP includes the header file that defines the types that I'm getting the errors on (sbsize_t, bsize_t, sbsize64_t, and bsize64_t), but for some reason they don't seem to be getting include'd in the compilation. I'm wondering if gcc has a different socket.h that would work?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 30, 2002 12:11 PM
To: Gary Hines
Cc: 'Amanda backup'
Subject: Re: make problem - HP-UX 11i, amanda 2.4.2p2 




Gary Hines writes:
- I'm just stuck trying to figure out why socket.h is not compiling


 It looks like you're attempting to use the bundled
compiler on HP-UX. Unfortunately, the bundled compiler is
only (barely) suited to building new kernels on HP-UX (and
occasionally bootstraping gcc.)


 You really need either the ANSI C suite, or gcc, to
build amanda.. Amanda uses a lot of ANSI C features, as do the
system include files.. (You might get away with making sure that
__STDC__ isn't defined during your configure and build, but I
doubt it..)


 If you like, I can put the HP-UX amanda client up for
ftp.


--
Eric Schnoebelen  [EMAIL PROTECTED]  http://www.cirr.com
 Any sufficiently advanced bureaucracy is indistinguishable from molasses.
  -- Unknown