httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8452] New: - perchild doesn't compile on Solaris 8
Date Wed, 24 Apr 2002 08:20:51 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8452>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8452

perchild doesn't compile on Solaris 8

           Summary: perchild doesn't compile on Solaris 8
           Product: Apache httpd-2.0
           Version: 2.0.35
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: perchild
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: jonathan@onegoodidea.com


Apache 2.0.35 configured as:

% ./configure --prefix=/._ark-deploy/apache--2.0.35 --enable-so --enable-
ssl --with-ssl=/._ark-deploy/openssl--0.9.6c --disable-status --disable-
info --enable-rewrite --with-mpm=perchild 
LDFLAGS= CXXFLAGS=-O2 -fstrict-aliasing CFLAGS=-O2 -fstrict-aliasing 
CPPFLAGS= CXX=/ark/bin/g++ CC=/ark/bin/gcc

% /ark/bin/gcc --version
3.0.4

Compile fails with:

Making all in perchild
/bin/sh /item/ark-builds/apache--2.0.35/sparc-solaris/srclib/apr/libtool --
silent --mode=compile /ark/bin/gcc  -pthreads -DNO_DBM_REWRITEMAP  
-O2 -fstrict-aliasing  -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -
D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I. -I/item/ark-
builds/apache--2.0.35/sparc-solaris/os/unix -I/item/ark-builds/apache--
2.0.35/sparc-solaris/server/mpm/perchild -I/item/ark-builds/apache--
2.0.35/sparc-solaris/modules/http -I/item/ark-builds/apache--2.0.35/
sparc-solaris/modules/proxy -I/item/ark-builds/apache--2.0.35/sparc-
solaris/include -I/item/ark-builds/apache--2.0.35/sparc-solaris/srclib/apr/
include -I/item/ark-builds/apache--2.0.35/sparc-solaris/srclib/apr-util/
include -I/._ark-deploy/openssl--0.9.6c/include/openssl -I/._ark-deploy/
openssl--0.9.6c/include -I/item/ark-builds/apache--2.0.35/sparc-solaris/
modules/dav/main -I/item/ark-builds/apache--2.0.35/sparc-solaris/srclib/
apr-util/include -I/item/ark-builds/apache--2.0.35/sparc-solaris/srclib/apr-
util/xml/expat/lib  -c perchild.c && touch perchild.lo
perchild.c: In function `receive_from_other_child':
perchild.c:668: structure has no member named `msg_control'
perchild.c:669: structure has no member named `msg_controllen'
perchild.c:670: structure has no member named `msg_flags'
perchild.c:674: warning: passing arg 2 of `memcpy' makes pointer from 
integer without a cast
perchild.c: In function `pass_request':
perchild.c:1573: warning: passing arg 1 of `memcpy' makes pointer from 
integer without a cast
perchild.c:1575: structure has no member named `msg_control'
perchild.c:1576: structure has no member named `msg_controllen'
perchild.c:1577: structure has no member named `msg_flags'
*** Error code 1
make: Fatal error: Command failed for target `perchild.lo'

The missing members appear in '/usr/include/socket.h' as:

struct msghdr {
        void            *msg_name;              /* optional address */
        socklen_t       msg_namelen;            /* size of address */
        struct iovec    *msg_iov;               /* scatter/gather array */
        int             msg_iovlen;             /* # elements in msg_iov */

#if defined(_XPG4_2) || defined(_KERNEL)
        void            *msg_control;           /* ancillary data */
        socklen_t       msg_controllen;         /* ancillary data buffer len */
        int             msg_flags;              /* flags on received message */
#else
        caddr_t         msg_accrights;  /* access rights sent/received */
        int             msg_accrightslen;
#endif  /* defined(_XPG4_2) || defined(_KERNEL) */
};

from which I presume that some compatibility define is not being set.

I tried re-configuring with 'CFLAGS=-O2 -fstrict-aliasing -D_XPG4_2', but 
this just made the compile die with:

/bin/sh /item/ark-builds/apache--2.0.35/sparc-solaris/srclib/apr/libtool --
silent --mode=compile /ark/bin/gcc -pthreads  -O2 -fstrict-aliasing -
D_XPG4_2 -DHAVE_CONFIG_H -DSOLARIS2=8 -
D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include -I../
include/arch/unix  -c apr_strings.c && touch apr_strings.lo
In file included from ../include/apr_general.h:66,
                 from apr_s
trings.c:57:
/usr/include/signal.h:77: parse error 
before '*' token
*** Error code 1
make: 
Fatal error: Command failed for target `apr_strings.lo'

So I guess the problem is more complex than that.

[I thought I'd seen this bug come up before, but I can't find anything on it 
searching the database.]

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message