I have two AIX 5.2 servers; one for development and one for production. My development box has various GNU tools installed such as gcc, autoconf, libtool, binutils, etc, and no IBM compiler. I can successfully build (not-statically) on this box (with gcc obviously). My production box doesn't have any of these tools though, and I am not allowed to install them due to security concerns. When I copy the compiled product to the production server and try to run it I get an error because the gcc libs aren't available on this box. For this reason it seems that I need to compile a static version. (Someone correct me if there is another option.) I'm having some issues doing so though. First I compile a static version of openldap 2.3.27 with the following config. env CPPFLAGS="-I$base_dir/usr/local/include -I$base_dir/include" LDFLAGS="-L$bas e_dir/usr/local/lib -L$base_dir/lib" \ ./configure \ --prefix=$base_dir \ --enable-bdb=no \ --enable-slapd=no \ --enable-static=yes \ --enable-shared=no make make install This works without problem. Then I unsuccessfully attempt to configure apache 2.2.3. The error is at the end of this list. I'm including all of my output in case it is useful. svnadm /svn/build/httpd-2.2.3>./configure \
--prefix=$base_dir/apache2.2 \ --without-berkeley-db \ --enable-ssl=static \ --with-ssl=$base_dir \ --enable-dav=static \ --enable-dav-fs=static \ --enable-dav-lock=static \ --with-ldap=yes \ --with-ldap-include=$base_dir/include \ --with-ldap-lib=$base_dir/lib \ --enable-ldap=static \ --enable-auth_ldap=static \ --enable-authnz-ldap=static \ --enable-rewrite=static
checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... powerpc-ibm-aix5.3.0.0 checking host system type... powerpc-ibm-aix5.3.0.0 checking target system type... powerpc-ibm-aix5.3.0.0 Configuring Apache Portable Runtime library ... checking for APR... reconfig configuring package in srclib/apr now checking build system type... powerpc-ibm-aix5.3.0.0 checking host system type... powerpc-ibm-aix5.3.0.0 checking target system type... powerpc-ibm-aix5.3.0.0 Configuring APR library Platform: powerpc-ibm-aix5.3.0.0 checking for working mkdir -p... yes APR Version: 1.2.7 checking for chosen layout... apr 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-ibm-aix5.3.0.0 setting CPPFLAGS to "-U__STR__ -D_THREAD_SAFE" adding "-D_USE_IRS" to CPPFLAGS setting apr_sysvsem_is_global to "yes" setting apr_lock_method to "USE_SYSVSEM_SERIALIZE" setting LDFLAGS to "-Wl,-brtl" (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... nawk checking whether ln -s works... yes checking for ranlib... ranlib checking for a BSD-compatible install... build/install.sh -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... yes checking for library containing strerror... none required checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes 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... /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... /opt/freeware/bin/nm -B checking how to recognise dependent libraries... pass_all checking dlfcn.h usability... yes checking dlfcn.h presence... yes 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... 8192 checking command to parse /opt/freeware/bin/nm -B 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... 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... aix5.3.0.0 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no 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... 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... aix5.3.0.0 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no appending configuration tag "F77" to libtool Check for compiler flags... checking whether to enable -D_LARGEFILE64_SOURCE... yes adding "-D_LARGEFILE64_SOURCE" to CPPFLAGS 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... none required Checking for Threads... checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for CFLAGS needed for pthreads... -pthread adding "-pthread" to CFLAGS checking for LIBS needed for pthreads... -lpthread setting LIBS to "-lpthread" 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... yes checking for pthread_key_delete... yes checking for pthread_rwlock_init... yes checking for pthread_attr_setguardsize... yes checking for pthread_rwlock_t... yes APR will use threads checking for readdir in -lc_r... yes checking for gethostbyname in -lc_r... yes checking for gethostbyaddr in -lc_r... yes checking for gethostbyname_r... yes checking for gethostbyaddr_r... yes checking for sigsuspend... yes checking for sigwait... yes checking for poll... yes checking for kqueue... no checking for port_create... no checking for epoll support... no checking for getpwnam_r... yes checking for getpwuid_r... yes checking for getgrnam_r... yes checking for getgrgid_r... yes Checking for Shared Memory Support... checking for library containing shm_open... none required checking for sys/types.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes 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... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes 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... yes checking for munmap... yes checking for shm_open... yes checking for shm_unlink... yes checking for shmget... yes checking for shmat... yes checking for shmdt... yes checking for shmctl... yes checking for create_area... no checking for MAP_ANON in sys/mman.h... yes checking for /dev/zero... yes checking for mmap that can map /dev/zero... yes decision on anonymous shared memory allocation method... 4.4BSD-style mmap() via MAP_ANON decision on namebased memory allocation method... SysV IPC shmget() checking for alloca... no checking for calloc... yes checking for setsid... yes checking for isinf... yes checking for isnan... no checking for getenv... yes checking for putenv... yes checking for setenv... yes checking for unsetenv... yes checking for writev... yes checking for getifaddrs... no checking for utime... yes checking for utimes... yes checking for setrlimit... yes checking for getrlimit... yes checking for sendfilev in -lsendfile... no checking for sendfile... no checking for send_file... yes checking for sendfilev... no checking for void*... yes checking size of void*... 4 checking for sigaction... yes checking whether sys_siglist is declared... no checking for fork... yes checking for inet_addr... yes checking for inet_network... yes checking for _getch... no checking for strerror_r... yes checking for type of return code from strerror_r... int checking for mmap... (cached) yes checking for memmove... yes checking for getpass... yes checking for getpassphrase... no checking for gmtime_r... yes checking for localtime_r... yes checking for mkstemp... yes checking whether sigwait takes one argument... no checking for inode member of struct dirent... d_ino checking for file type member of struct dirent... no checking for ANSI C header files... (cached) yes checking alloca.h usability... yes checking alloca.h presence... yes checking for alloca.h... yes checking ByteOrder.h usability... no checking ByteOrder.h presence... no checking for ByteOrder.h... no checking conio.h usability... no checking conio.h presence... no checking for conio.h... no checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dir.h usability... no checking dir.h presence... no checking for dir.h... no checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking for dlfcn.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking io.h usability... no checking io.h presence... no checking for io.h... no checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking mach-o/dyld.h usability... no checking mach-o/dyld.h presence... no checking for mach-o/dyld.h... no checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for memory.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking osreldate.h usability... no checking osreldate.h presence... no checking for osreldate.h... no checking poll.h usability... yes checking poll.h presence... yes checking for poll.h... yes checking process.h usability... no checking process.h presence... no checking for process.h... no checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking semaphore.h usability... yes checking semaphore.h presence... yes checking for semaphore.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sysapi.h usability... no checking sysapi.h presence... no checking for sysapi.h... no checking sysgtime.h usability... no checking sysgtime.h presence... no checking for sysgtime.h... no checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking tpfeq.h usability... no checking tpfeq.h presence... no checking for tpfeq.h... no checking tpfio.h usability... no checking tpfio.h presence... no checking for tpfio.h... no checking for unistd.h... (cached) yes checking unix.h usability... no checking unix.h presence... no checking for unix.h... no checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for kernel/OS.h... (cached) no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking netinet/sctp.h usability... no checking netinet/sctp.h presence... yes configure: WARNING: netinet/sctp.h: present but cannot be compiled configure: WARNING: netinet/sctp.h: check for missing prerequisite headers? configure: WARNING: netinet/sctp.h: see the Autoconf documentation configure: WARNING: netinet/sctp.h: section "Present But Cannot Be Compiled" configure: WARNING: netinet/sctp.h: proceeding with the preprocessor's result configure: WARNING: netinet/sctp.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 netinet/sctp.h... yes checking netinet/sctp_uio.h usability... no checking netinet/sctp_uio.h presence... no checking for netinet/sctp_uio.h... no checking for sys/file.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/mman.h... (cached) yes checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sem.h usability... yes checking sys/sem.h presence... yes checking for sys/sem.h... yes checking sys/sendfile.h usability... no checking sys/sendfile.h presence... no checking for sys/sendfile.h... no checking sys/signal.h usability... yes checking sys/signal.h presence... yes checking for sys/signal.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for sys/stat.h... (cached) yes checking sys/sysctl.h usability... no checking sys/sysctl.h presence... no checking for sys/sysctl.h... no checking sys/syslimits.h usability... no checking sys/syslimits.h presence... no checking for sys/syslimits.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking for netinet/tcp.h... yes checking for h_errno in netdb.h... yes checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for uid_t in sys/types.h... yes checking for ssize_t... yes checking for inline... inline checking for an ANSI C-conforming const... yes checking whether setpgrp takes no argument... yes checking for socklen_t... yes checking for void*... (cached) yes checking size of void*... (cached) 4 checking for char... yes checking size of char... 1 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4 checking for short... yes checking size of short... 2 checking for long long... yes checking size of long long... 8 checking for INT64_C... yes checking size of ssize_t... 4 checking size of size_t... 4 checking size of off_t... 4 checking for mmap64... yes checking for sendfile64... no checking for sendfilev64... no checking for mkstemp64... yes checking which type to use for apr_off_t... off64_t checking size of pid_t... 4 checking whether byte ordering is bigendian... yes checking for strnicmp... no checking for strncasecmp... yes checking for stricmp... no checking for strcasecmp... yes checking for strdup... yes checking for strstr... yes checking for memchr... yes checking for strtoll... yes Checking for DSO... checking for NSLinkModule... no checking for shl_load in -ldld... no checking for dlopen... yes checking for dlsym... yes Checking for Processes... checking for waitpid... yes checking for Variable Length Arrays... yes checking struct rlimit... yes Checking for Locking... checking for semget... yes checking for semctl... yes checking for flock... no checking for semaphore.h... (cached) yes checking OS.h usability... no checking OS.h presence... no checking for OS.h... no checking for sem_close... yes checking for sem_unlink... yes checking for sem_post... yes checking for sem_wait... yes checking for create_sem... no checking for working sem_open... yes checking for union semun in sys/sem.h... no checking for LOCK_EX in sys/file.h... yes checking for F_SETLK in fcntl.h... yes checking for SEM_UNDO in sys/sem.h... yes checking for POLLIN in poll.h sys/poll.h... yes checking for PTHREAD_PROCESS_SHARED in pthread.h... yes checking for pthread_mutexattr_setpshared... yes checking for working PROCESS_SHARED locks... yes checking for robust cross-process mutex support... no decision on apr_lock implementation method... SysV IPC semget() checking if all interprocess locks affect threads... no checking if POSIX sems affect threads in the same process... no checking if SysV sems affect threads in the same process... yes checking if fcntl locks affect threads in the same process... no checking if flock locks affect threads in the same process... no checking for entropy source... /dev/random Checking for OS UUID Support... checking uuid.h usability... no checking uuid.h presence... no checking for uuid.h... no checking uuid/uuid.h usability... no checking uuid/uuid.h presence... no checking for uuid/uuid.h... no checking sys/uuid.h usability... no checking sys/uuid.h presence... no checking for sys/uuid.h... no checking for library containing uuid_create... no checking for library containing uuid_generate... no checking for uuid_create... no checking for uuid_generate... no checking for os uuid usability... no Checking for Time Support... checking for struct tm.tm_gmtoff... no checking for struct tm.__tm_gmtoff... no Checking for Networking support... checking for in_addr in netinet/in.h... yes checking if fd == socket on this platform... yes checking style of gethostbyname_r routine... none checking 3rd argument to the gethostbyname_r routines... hostent_data checking if TCP_NODELAY setting is inherited from listening sockets... yes checking if O_NONBLOCK setting is inherited from listening sockets... yes checking whether TCP_NODELAY and TCP_CORK can both be enabled... no checking for TCP_CORK in netinet/tcp.h... no checking for TCP_NOPUSH in netinet/tcp.h... no checking for SO_ACCEPTFILTER in sys/socket.h... no checking whether SCTP is supported... no checking for struct ip_mreq... yes checking for set_h_errno... no Checking for IPv6 Networking support... checking for library containing getaddrinfo... none required checking for library containing gai_strerror... none required checking for library containing getnameinfo... none required checking for gai_strerror... yes checking for working getaddrinfo... yes checking for negative error codes for getaddrinfo... no checking for working getnameinfo... yes checking for sockaddr_in6... yes checking for sockaddr_storage... no checking for working AI_ADDRCONFIG... yes checking if APR supports IPv6... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking for nl_langinfo... yes Restore user-defined environment settings... restoring CPPFLAGS to "" setting EXTRA_CPPFLAGS to "-U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE" restoring CFLAGS to "" setting EXTRA_CFLAGS to "-g -O2 -pthread" restoring LDFLAGS to "" setting EXTRA_LDFLAGS to "-Wl,-brtl" restoring LIBS to "" setting EXTRA_LIBS to "-lpthread" restoring INCLUDES to "" setting EXTRA_INCLUDES to "" configure: creating ./config.status config.status: creating Makefile config.status: creating include/apr.h config.status: creating build/apr_rules.mk config.status: creating build/pkg/pkginfo config.status: creating apr-1-config config.status: creating apr.pc config.status: creating test/Makefile config.status: creating test/internal/Makefile config.status: creating include/arch/unix/apr_private.h config.status: executing default commands config.status: include/apr.h is unchanged config.status: include/arch/unix/apr_private.h is unchanged srclib/apr configured properly setting CC to "gcc" setting CPP to "gcc -E" setting CFLAGS to " -g -O2 -pthread" setting CPPFLAGS to " -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE" setting LDFLAGS to " -Wl,-brtl" Configuring Apache Portable Runtime Utility library... checking for APR-util... reconfig configuring package in srclib/apr-util now checking build system type... powerpc-ibm-aix5.3.0.0 checking host system type... powerpc-ibm-aix5.3.0.0 checking target system type... powerpc-ibm-aix5.3.0.0 checking for a BSD-compatible install... build/install.sh -c checking for working mkdir -p... yes APR-util Version: 1.2.7 checking for chosen layout... apr-util Applying apr-util hints file rules for powerpc-ibm-aix5.3.0.0 checking for APR... yes setting CC to "gcc" setting CPP to "gcc -E" setting CFLAGS to " -g -O2 -pthread" setting CPPFLAGS to " -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE" 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 checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for ldap support... setting APRUTIL_INCLUDES to "-I/svn/include" setting APRUTIL_LDFLAGS to "-L/svn/lib" checking for ldap_init in -lldap50... no checking for ldap_init in -lldapssl41... no checking for ldap_init in -lldapssl40... no checking for ldap_init in -lldapssl30... no checking for ldap_init in -lldapssl20... no checking for ldap_init in -lldapsdk... no checking for ldap_init in -lldapsdk... no checking for ldap_init in -lldap... no checking for ldap_init in -lldap... no checking for ldap_init in -lldap... no checking for ldap_init in -lldap... no configure: error: could not find an LDAP library configure failed for srclib/apr-util The ldap headers exist in $base_dir/include so I'm not sure why it can't find ldap_init. Can anyone explain to me why this is failing? Is there an easier way for me to achieve my desired goal of having a working version compiled on one box and running on the other without having to install GCC and friends on the production box? Thank you, Justin --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx