"MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1)" <[EMAIL PROTECTED]> writes:
> 'never mind. It's a HP-UX specific stuff. The problem shows up because of > the following reason : > > On HP-UX, accept has the following syntax (by default) > int accept(int s, void *addr, int *addrlen); > > AND, socklen_t is also available. Thus, apache assumes the accept to be > something like : > int accept(int s, struct sockaddr *addr, socklen_t *addrlen); > > the problem should go away if I define _XOPEN_SOURCE_EXTENDED.. > Question : can I safely assume that apache is Unix98 / X-Open sockets > compatible ??. I just tested that on HP-UX 11 via this patch: Index: build/apr_hints.m4 =================================================================== RCS file: /home/cvspublic/apr/build/apr_hints.m4,v retrieving revision 1.36 diff -u -r1.36 apr_hints.m4 --- build/apr_hints.m4 7 Mar 2002 15:37:09 -0000 1.36 +++ build/apr_hints.m4 27 Mar 2002 15:07:05 -0000 @@ -79,7 +79,7 @@ APR_ADDTO(CPPFLAGS, [-DHIUX]) ;; *-hp-hpux11.*) - APR_ADDTO(CPPFLAGS, [-DHPUX11 -D_REENTRANT]) + APR_ADDTO(CPPFLAGS, [-DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED]) ;; *-hp-hpux10.*) case $host in Here was the change in warnings (all goodness!): 1,10d0 < cc: "sendrecv.c", line 207: warning 604: Pointers are not assignment-compatible. < cc: "sendrecv.c", line 207: warning 563: Argument #6 is not the correct type. < cc: "sendrecv.c", line 219: warning 604: Pointers are not assignment-compatible. < cc: "sendrecv.c", line 219: warning 563: Argument #6 is not the correct type. < cc: "sockets.c", line 216: warning 604: Pointers are not assignment-compatible. < cc: "sockets.c", line 216: warning 563: Argument #3 is not the correct type. < cc: "sockets.c", line 294: warning 604: Pointers are not assignment-compatible. < cc: "sockets.c", line 294: warning 563: Argument #5 is not the correct type. < cc: "sockaddr.c", line 61: warning 604: Pointers are not assignment-compatible. < cc: "sockaddr.c", line 61: warning 563: Argument #3 is not the correct type. 32,33d21 < cc: "mod_cgid.c", line 569: warning 604: Pointers are not assignment-compatible. < cc: "mod_cgid.c", line 569: warning 563: Argument #3 is not the correct type. Whatever you do for HP-UX on Itanium, see if the above fix can be worked into it. Otherwise, I'll eventually remember to handle it. Thanks, Jeff (oh, it seems to work fine with this patch) -- Jeff Trawick | [EMAIL PROTECTED] Born in Roswell... married an alien...