You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Mark <ma...@giddieup.net> on 2004/09/22 21:32:29 UTC

apr compiling errors

Hi,
I'm not sure if this is the appropriate mailing list to ask questions about compiling errors.. 

I'm having problem compiling apr that comes with the apache pkg...i believe its version 0.95

i use 
./configure --with-gnu-ld


and i get 

checking for MAP_ANON in sys/mman.h... yes
checking for /dev/zero... yes
./configure:Error: decision on anonymous shared memory allocation method failed


i tried google around for this error and found some cases of people encountering this problem but no solutions.


my gcc output 

gcc -v
Reading specs from /usr/depot/gcc/3.3.4/lib/gcc-lib/sparc-sun-solaris2.8/3.3.4/specs
Configured with: ./configure --prefix=/usr/depot/gcc/3.3.4 --enable-threads --with-as=/usr/sw/bin/as --with-gnu-as --with-ld=/usr/sw/bin/ld --with-gnu-ld --with-gnu-ar --with-ar=/usr/sw/bin/ar --disable-nls --enable-languages=c,c++,objc --disable-libgcj --disable-shared
Thread model: posix
gcc version 3.3.4

and this is on a solaris 8 v440 server..

i have the config.log as well, but its a bit long so i won't post it... i'll give it to you if you want a look.

any insights would be appreciated.
thanx
m

Re: apr compiling errors

Posted by Mark <ma...@giddieup.net>.
any other ideas? 
gcc seems to be working for all my other apps..yesterday i just compiled bdb for something else and it didn't complain about ld or gcc


On Sep22, 14:35, Mark wrote:
> On Sep22, 22:00, Joe Orton wrote:
> > On Wed, Sep 22, 2004 at 09:30:15PM +0100, Joe Orton wrote:
> > > On Wed, Sep 22, 2004 at 12:32:29PM -0700, Mark wrote:
> > > > checking for MAP_ANON in sys/mman.h... yes
> > > > checking for /dev/zero... yes
> > > > ./configure:Error: decision on anonymous shared memory allocation method failed
> > > 
> > > If you are using apr from an httpd tarball, then what version?  Please
> > > upload the config.log somewhere so we can have a look at it.
> > 
> > The config.log Mark sent me had:
> > 
> > configure:16382: checking for mmap
> > configure:16432: gcc -o conftest -g -O2 -pthreads -DSOLARIS2=8 
> > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  conftest.c -lm
> > +-lsocket -lns
> > l -lresolv  -lpthread >&5
> > collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
> > configure:16435: $? = 1
> > 
> > is there a reason you passed --with-gnu-ld to configure?  I'd try it
> > without.  Otherwise, it looks like you have a broken GCC installation. 
> > Can you compile simple programs with it?
> > 
> > joe
> 
> i tried without the tag as well..but didnt work....
> 
> gcc does compile other programs without problems......

Re: apr compiling errors

Posted by Mark Toung <ma...@giddieup.net>.
On Sep22, 22:00, Joe Orton wrote:
> On Wed, Sep 22, 2004 at 09:30:15PM +0100, Joe Orton wrote:
> > On Wed, Sep 22, 2004 at 12:32:29PM -0700, Mark wrote:
> > > checking for MAP_ANON in sys/mman.h... yes
> > > checking for /dev/zero... yes
> > > ./configure:Error: decision on anonymous shared memory allocation method failed
> > 
> > If you are using apr from an httpd tarball, then what version?  Please
> > upload the config.log somewhere so we can have a look at it.
> 
> The config.log Mark sent me had:
> 
> configure:16382: checking for mmap
> configure:16432: gcc -o conftest -g -O2 -pthreads -DSOLARIS2=8 
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  conftest.c -lm
> +-lsocket -lns
> l -lresolv  -lpthread >&5
> collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
> configure:16435: $? = 1
> 
> is there a reason you passed --with-gnu-ld to configure?  I'd try it
> without.  Otherwise, it looks like you have a broken GCC installation. 
> Can you compile simple programs with it?
> 
> joe

i tried without the tag as well..but didnt work....

gcc does compile other programs without problems......

Re: apr compiling errors

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Sep 22, 2004 at 09:30:15PM +0100, Joe Orton wrote:
> On Wed, Sep 22, 2004 at 12:32:29PM -0700, Mark wrote:
> > checking for MAP_ANON in sys/mman.h... yes
> > checking for /dev/zero... yes
> > ./configure:Error: decision on anonymous shared memory allocation method failed
> 
> If you are using apr from an httpd tarball, then what version?  Please
> upload the config.log somewhere so we can have a look at it.

The config.log Mark sent me had:

configure:16382: checking for mmap
configure:16432: gcc -o conftest -g -O2 -pthreads -DSOLARIS2=8 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  conftest.c -lm
+-lsocket -lns
l -lresolv  -lpthread >&5
collect2: ld terminated with signal 11 [Segmentation Fault], core dumped
configure:16435: $? = 1

is there a reason you passed --with-gnu-ld to configure?  I'd try it
without.  Otherwise, it looks like you have a broken GCC installation. 
Can you compile simple programs with it?

joe

Re: apr compiling errors

Posted by Joe Orton <jo...@redhat.com>.
On Wed, Sep 22, 2004 at 12:32:29PM -0700, Mark wrote:
> checking for MAP_ANON in sys/mman.h... yes
> checking for /dev/zero... yes
> ./configure:Error: decision on anonymous shared memory allocation method failed

If you are using apr from an httpd tarball, then what version?  Please
upload the config.log somewhere so we can have a look at it.

joe