You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Justin Erenkrantz <je...@ebuilt.com> on 2001/07/25 17:35:47 UTC

Re: Problems Compiling mod_webapp and APR on Solaris

[ 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


Re: Problems Compiling mod_webapp and APR on Solaris

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Justin Erenkrantz at jerenkrantz@ebuilt.com wrote:
> 
> 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.

... Same thought... He might have picked up something in between-commits,
but, I don't recall apr_strings to be modified recently...

    Pier


Re: Problems Compiling mod_webapp and APR on Solaris

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Justin Erenkrantz at jerenkrantz@ebuilt.com wrote:
> 
> 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.

... Same thought... He might have picked up something in between-commits,
but, I don't recall apr_strings to be modified recently...

    Pier