Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 50905 invoked by uid 500); 25 Jul 2001 15:36:13 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 50883 invoked from network); 25 Jul 2001 15:36:12 -0000 Date: Wed, 25 Jul 2001 08:35:47 -0700 From: Justin Erenkrantz To: tomcat-dev@jakarta.apache.org Cc: dev@apr.apache.org Subject: Re: Problems Compiling mod_webapp and APR on Solaris Message-ID: <20010725083547.J18499@ebuilt.com> References: <5.0.2.1.0.20010724234620.0b1e5490@65.84.28.95> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from pier@betaversion.org on Wed, Jul 25, 2001 at 03:56:58PM +0100 X-AntiVirus: scanned for viruses by AMaViS 0.2.1-pre3 (http://amavis.org/) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N [ CCing dev@apr ] On Wed, Jul 25, 2001 at 03:56:58PM +0100, Pier P. Fumagalli wrote: > Klaus Sonnenleiter at klaus@m-machine.com wrote: > > > Has anybody successfully compiled mod_webapp and/or the APR library on > > Solaris? I was able to compile everything without any trouble on a RedHat > > 7.1 system. But when I tried the same version of the sources (tonight's > > CVS) on Solaris, it failed miserably (some output below). The errors seem > > to be related to the APR library and I've tried to use a more recent one > > which compiles without problems, but it creates conflicts when compiling > > the mod_webapp module (it requires a different number of parameters and I > > remember from a discussion here that it was considered safer to stay with > > the older library). > > > > TIA > > > > ---------------------------------- snip --------------------------------- > > > > Compiling sources in /home/klaus/jakarta-tomcat-connectors/webapp/apr... > > make[1]: Entering directory `/home/klaus/jakarta-tomcat-connectors/webapp/apr' > > Making all in strings > > make[2]: Entering directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[3]: Entering directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > /bin/sh /home/klaus/jakarta-tomcat-connectors/webapp/apr/libtool --silent > > --mode > > =compile gcc -DHAVE_CONFIG_H -DSOLARIS2=7 -D_POSIX_PTHREAD_SEMANTICS > > -D_REENT > > RANT -I../include -I../include/arch/unix -c apr_cpystrn.c && touch > > apr_cpystrn.lo > > In file included from apr_cpystrn.c:55: > > ../include/apr.h:187: #error Can not determine the proper size for apr_int64_t > > ../include/apr.h:242: #error Can not determine the proper size for ssize_t > > ../include/apr.h:245: #error Can not determine the proper size for size_t > > ../include/apr.h:254: #error Can not determine the proper size for apr_int64_t > > make[3]: *** [apr_cpystrn.lo] Error 1 > > make[3]: Leaving directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/klaus/jakarta-tomcat-connectors/webapp/apr' > > make: *** [apr-all] Error 2 > > What version of APR does generate this error? > > > Compiling sources in /home/klaus/jakarta-tomcat-connectors/webapp/apr... > > make[1]: Entering directory `/home/klaus/jakarta-tomcat-connectors/webapp/apr' > > Making all in strings > > make[2]: Entering directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[3]: Entering directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > /bin/sh /home/klaus/jakarta-tomcat-connectors/webapp/apr/libtool --silent > > --mode=compile gcc -DHAVE_CONFIG_H -DSOLARIS2=7 > > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../include > > -I../include/arch/unix -c apr_cpystrn.c && touch apr_cpystrn.lo > > In file included from apr_cpystrn.c:64: > > /usr/include/string.h:43: warning: conflicting types for built-in function > > `memcpy' > > /usr/include/string.h:45: warning: conflicting types for built-in function > > `strcpy' > > /usr/include/string.h:51: warning: conflicting types for built-in function > > `memcmp' > > /usr/include/string.h:52: warning: conflicting types for built-in function > > `strcmp' > > apr_cpystrn.c:84: conflicting types for `apr_cpystrn' > > ../include/apr_strings.h:203: previous declaration of `apr_cpystrn' > > apr_cpystrn.c:126: conflicting types for `apr_tokenize_to_argv' > > ../include/apr_strings.h:224: previous declaration of `apr_tokenize_to_argv' > > apr_cpystrn.c:235: conflicting types for `apr_collapse_spaces' > > ../include/apr_strings.h:212: previous declaration of `apr_collapse_spaces' > > make[3]: *** [apr_cpystrn.lo] Error 1 > > make[3]: Leaving directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[2]: *** [all-recursive] Error 1 > > make[2]: Leaving directory > > `/home/klaus/jakarta-tomcat-connectors/webapp/apr/strings' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/home/klaus/jakarta-tomcat-connectors/webapp/apr' > > make: *** [apr-all] Error 2 > > And this? > > Did you try with the "safe" sources of APR I posted on > http://www.apache.org/~pier/ FWIW, I'm definitely not seeing these sorts of errors on Solaris or Linux. Odd. This is with an updated (as of last night or this morning) CVS copy of APR? Did you use the same sources for building with Linux and Solaris? "make clean" was run? These errors just don't make any sense. -- justin