You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Thomas J. Buhr" <vi...@gmail.com> on 2007/03/04 02:16:47 UTC

Problem with configure on OS X

Apache APR,

I'm following the install article called "Install Subversion on Mac  
OS X 10.4 (Tiger) for Intel" at http://www.spotteddogsoftware.net/ 
Spotted%20Blog/89DAC0BC-4276-4986-9E01-65866FE47F4E.html and have ran  
into a problem with the APR step.

I'm doing the install on a PPC (Powerbook G4) with OS X 10.4.8. I  
also have the Xcode v2 tools installed along with the BSD SDK that  
came with the Xcode install CD. I get get an error when using the  
following configure command:

CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX.4u.sdk" \./ 
configure --enable-layout=classic

If I set the layout to "classic" or "Darwin" I still get the same "./ 
configure:Error: decision on anonymous shared memory allocation  
method failed" result.

I'm not very good at reading the error messages in the logs produced  
but it does look like something the configure tool needs is not being  
found, do I need to set another path or possible permissions?

Looking around on the web it seems that the "shared memory" problem  
is also experienced by other platforms. I thought that installing BSD  
SDK might solve the problem however it did not.

Best Regards,

Thomas Buhr

Below is the output from the terminal...

CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX.4u.sdk" \./ 
configure --enable-layout=classic
checking build system type... powerpc-apple-darwin8.8.0
checking host system type... powerpc-apple-darwin8.8.0
checking target system type... powerpc-apple-darwin8.8.0
Configuring APR library
Platform: powerpc-apple-darwin8.8.0
checking for working mkdir -p... yes
APR Version: 1.2.8
checking for chosen layout... classic
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying APR hints file rules for powerpc-apple-darwin8.8.0
   setting CPPFLAGS to "-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no- 
cpp-precomp"
   setting apr_posixsem_is_global to "yes"
   setting ac_cv_func_poll to "no"
   setting ac_cv_func_kqueue to "no"
(Default will be unix)
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... rm
checking for as... as
checking for cpp... cpp
checking for ar... ar
checking for egrep... grep -E
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether system uses EBCDIC... no
performing libtool configuration...
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h:     check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for objdir... .libs
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared  
libraries... yes
checking dynamic linker characteristics... darwin8.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared  
libraries... yes
checking dynamic linker characteristics... darwin8.8.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool

Check for compiler flags...
checking whether to enable -D_LARGEFILE64_SOURCE... no

Checking for libraries...
checking for library containing gethostbyname... none required
checking for library containing gethostname... none required
checking for library containing socket... none required
checking for library containing crypt... none required
checking for main in -ltruerand... no
checking for library containing modf... no

Checking for Threads...
checking pthread.h usability... no
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite  
headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: pthread.h: proceeding with the preprocessor's result
configure: WARNING: pthread.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for pthread.h... yes
checking for CFLAGS needed for pthreads...
checking for LIBS needed for pthreads...
checking for pthread.h... (cached) yes
checking whether pthread_getspecific takes two arguments... no
checking whether pthread_attr_getdetachstate takes one argument... no
checking for recursive mutex support... no
checking for pthread_key_delete... no
checking for pthread_rwlock_init... no
checking for pthread_attr_setguardsize... no
APR will use threads
checking for readdir in -lc_r... no
checking for gethostbyname in -lc_r... no
checking for gethostbyaddr in -lc_r... no
checking for gethostbyname_r... no
checking for gethostbyaddr_r... no
checking for sigsuspend... no
checking for sigwait... no
checking for poll... (cached) no
checking for kqueue... (cached) no
checking for port_create... no
checking for epoll support... no
checking for getpwnam_r... no
checking for getpwuid_r... no
checking for getgrnam_r... no
checking for getgrgid_r... no

Checking for Shared Memory Support...
checking for library containing shm_open... none required
checking for sys/types.h... (cached) no
checking sys/mman.h usability... no
checking sys/mman.h presence... yes
configure: WARNING: sys/mman.h: present but cannot be compiled
configure: WARNING: sys/mman.h:     check for missing prerequisite  
headers?
configure: WARNING: sys/mman.h: see the Autoconf documentation
configure: WARNING: sys/mman.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: sys/mman.h: proceeding with the preprocessor's  
result
configure: WARNING: sys/mman.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/mman.h... yes
checking sys/ipc.h usability... no
checking sys/ipc.h presence... yes
configure: WARNING: sys/ipc.h: present but cannot be compiled
configure: WARNING: sys/ipc.h:     check for missing prerequisite  
headers?
configure: WARNING: sys/ipc.h: see the Autoconf documentation
configure: WARNING: sys/ipc.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: sys/ipc.h: proceeding with the preprocessor's result
configure: WARNING: sys/ipc.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/ipc.h... yes
checking sys/mutex.h usability... no
checking sys/mutex.h presence... no
checking for sys/mutex.h... no
checking sys/shm.h usability... no
checking sys/shm.h presence... yes
configure: WARNING: sys/shm.h: present but cannot be compiled
configure: WARNING: sys/shm.h:     check for missing prerequisite  
headers?
configure: WARNING: sys/shm.h: see the Autoconf documentation
configure: WARNING: sys/shm.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: sys/shm.h: proceeding with the preprocessor's result
configure: WARNING: sys/shm.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/shm.h... yes
checking sys/file.h usability... no
checking sys/file.h presence... yes
configure: WARNING: sys/file.h: present but cannot be compiled
configure: WARNING: sys/file.h:     check for missing prerequisite  
headers?
configure: WARNING: sys/file.h: see the Autoconf documentation
configure: WARNING: sys/file.h:     section "Present But Cannot Be  
Compiled"
configure: WARNING: sys/file.h: proceeding with the preprocessor's  
result
configure: WARNING: sys/file.h: in the future, the compiler will take  
precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/file.h... yes
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking for mmap... no
checking for munmap... no
checking for shm_open... no
checking for shm_unlink... no
checking for shmget... no
checking for shmat... no
checking for shmdt... no
checking for shmctl... no
checking for create_area... no
checking for MAP_ANON in sys/mman.h... yes
checking for /dev/zero... yes
./configure:Error: decision on anonymous shared memory allocation  
method failed




Re: Problem with configure on OS X

Posted by Paul Querna <ch...@force-elite.com>.
Thomas J. Buhr wrote:
> Apache APR,
> 
> I'm following the install article called "Install Subversion on Mac OS X
> 10.4 (Tiger) for Intel" at
> http://www.spotteddogsoftware.net/Spotted%20Blog/89DAC0BC-4276-4986-9E01-65866FE47F4E.html
> and have ran into a problem with the APR step.
> 
> I'm doing the install on a PPC (Powerbook G4) with OS X 10.4.8. I also
> have the Xcode v2 tools installed along with the BSD SDK that came with
> the Xcode install CD. I get get an error when using the following
> configure command:
> 
> CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX.4u.sdk" \./configure
> --enable-layout=classic

Just run configure without the extra CFLAGS, it should work fine.

-Paul