build apache 2.4 with ldap support on aix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I recently send a post on "http://www.apachelounge.com";. I had no solution, but someone told me that the best solution was tihs users's list.

So I try !

I search in the FAQ, but it didn't help me....

Subject :

I try to build apache 2.4.9 with ldap support on AIX 7.1

Without ldap support, this is OK, I can "make" and "make install".

with ldap support, I can "configure" but make is on ERROR.

....
/appli3/sid/rpm/httpd-2.4.9/srclib/apr/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -Wl,-brtl -o httpd modules.lo buildmark.o -export-dynamic -Wl,-uXML_Parse -Wl,-bE:/appli3/sid/rpm/httpd-2.4.9/server/httpd.exp server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la server/mpm/worker/libworker.la os/unix/libos.la -L/opt/freeware/lib -lpcre /appli3/sid/rpm/httpd-2.4.9/srclib/apr-util/libaprutil-1.la /appli3/sid/rpm/httpd-2.4.9/srclib/apr-util/xml/expat/libexpat.la -liconv /appli3/sid/rpm/httpd-2.4.9/srclib/apr/libapr-1.la -lpthread
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_url_parse
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_url_parse_ext
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_is_ldapi_url
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_is_ldaps_url
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_is_ldap_url
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_rebind_remove
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_rebind_add
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_rebind_init
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_set_option
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_get_option
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_info
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_init
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_ssl_deinit
ld: 0711-317 ERROR: Undefined symbol: apr_ldap_ssl_init
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
make : 1254-004 Code d'erreur de la dernière commande : 1.


Arrêt.
make : 1254-004 Code d'erreur de la dernière commande : 1.

...........................................

My installation steps :
# GCC compil
rpm -U expat-2.1.0-1.aix5.1.ppc.rpm
rpm -U gettext-0.17-1.aix5.1.ppc.rpm --nodeps
rpm -U zlib-1.2.8-1.aix5.1.ppc.rpm
rpm -U libgcc-4.8.2-1.aix7.1.ppc.rpm
rpm -U libffi-3.0.13-1.aix5.1.ppc.rpm
rpm -U libiconv-1.14-2.aix5.1.ppc.rpm
rpm -U glib2-2.38.2-1.aix5.1.ppc.rpm
rpm -U bash_64-4.2-12.aix5.1.ppc.rpm
rpm -U info-5.2-1.aix5.1.ppc.rpm
rpm -U gcc-cpp-4.8.2-1.aix7.1.ppc.rpm gcc-4.8.2-1.aix7.1.ppc.rpm gmp-5.1.3-1.aix5.1.ppc.rpm mpfr-3.1.2-1.aix5.1.ppc.rpm libmpc-1.0.2-1.aix5.1.ppc.rpm libstdc++-4.8.2-1.aix7.1.ppc.rpm

# PCRE install
rpm -U pcre-8.34-1.aix5.1.ppc.rpm bzip2-1.0.6-1.aix5.1.ppc.rpm readline-6.2-5.aix5.1.ppc.rpm
rpm -U pcre-devel-8.34-1.aix5.1.ppc.rpm


# OpenLDAP installation
rpm -U openssl-1.0.1g-1.aix5.1.ppc.rpm openldap-2.4.23-0.3.aix5.1.ppc.rpm
rpm -U openssl-devel-1.0.1g-1.aix5.1.ppc.rpm openldap-devel-2.4.23-0.3.aix5.1.ppc.rpm


# APR IN apache/srclib (récup de apr-1.5.1.tar.gz et apr-util-1.5.3.tar.gz)

# httpd install

./configure --prefix=/appli3/sid/apache --with-ldap --enable-ldap=shared --enable-authnz-ldap=shared --with-included-apr
make
export PATH=/opt/freeware/bin:$PATH
make install

-------------------------
I try with apr and apr-util install via RPM, the "configure" is on error (it cant find APR !)
-------------------------
I try with "devel package" :
I installed "apr-devel...rpm" and "apr-util-ldap...rpm" -> OK
but when I launch "configure" he can't find "apr-util". So i tried installed apr-util-devel, but there is a lots of dependencies.

So I installed ;
apr-util-ldap-1.5.2-1.aix5.1.ppc.rpm
apr-devel-1.5.1-1.aix5.2.ppc.rpm
apr-util-1.5.2-1.aix5.1.ppc.rpm
apr-1.5.1-1.aix5.2.ppc.rpm
pkg-config-0.28-1.aix5.1.ppc.rpm
apr-util-devel-1.5.2-1.aix5.1.ppc.rpm
db4-devel-4.7.25-2.aix5.1.ppc.rpm
expat-devel-2.1.0-1.aix5.1.ppc.rpm
freetds-devel-0.92.79-1.aix5.1.ppc.rpm
unixODBC-devel-2.3.2-1.aix5.1.ppc.rpm
sqlite-devel-3.8.1-1.aix5.1.ppc.rpm
sqlite-3.8.1-1.aix5.1.ppc.rpm
unixODBC-2.3.2-1.aix5.1.ppc.rpm
freetds-0.92.79-1.aix5.1.ppc.rpm
gnutls-2.12.20-1.aix5.1.ppc.rpm
db4-4.7.25-2.aix5.1.ppc.rpm
gdbm-1.11-1.aix5.1.ppc.rpm
gdbm-devel-1.11-1.aix5.1.ppc.rpm
lzo-2.06-1.aix5.1.ppc.rpm
p11-kit-0.14-1.aix5.1.ppc.rpm
libgcrypt-1.5.3-1.aix5.1.ppc.rpm
libgpg-error-1.12-1.aix5.1.ppc.rpm
libtasn1-3.4-1.aix5.1.ppc.rpm
nettle-2.7.1-1.aix5.1.ppc.rpm

now when i launch configure this is OK for apr-util but gcc is KO !!! :
./configure --prefix=/appli3/sid/apache --with-ldap --enable-ldap=shared --enable-authnz-ldap=shared
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking build system type... powerpc-ibm-aix7.1.0.0
checking host system type... powerpc-ibm-aix7.1.0.0
checking target system type... powerpc-ibm-aix7.1.0.0
configure:
configure: Configuring Apache Portable Runtime library...
configure:
checking for APR... yes
adding "-qHALT=E" to CFLAGS
setting CPPFLAGS to " -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE"
adding "-Wl,-brtl" to LDFLAGS
configure:
configure: Configuring Apache Portable Runtime Utility library...
configure:
checking for APR-util... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/appli3/sid/rpm/httpd-2.4.9':
configure: error: C compiler cannot create executables
See `config.log' for more details


............................
Flags before ./configure :
export CONFIG_SHELL=/opt/freeware/bin/bash
export CONFIG_ENV_ARGS=/opt/freeware/bin/bash
export CC=gcc
export CFLAGS="-DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include"
export CXX=g++
export CXXFLAGS=$CFLAGS
export F77=xlf
export FFLAGS="-O -I/opt/freeware/include"
export LD=ld
# for 32-bit applications
# export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000"
# for 64-bit applications
export LDFLAGS="-L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000"


In config.log, this is strange :
configure:4199: checking for APR
configure:4344: result: yes
configure:4604:
configure:4606: Configuring Apache Portable Runtime Utility library...
configure:4608:
configure:4645: checking for APR-util
configure:4724: result: yes
configure:4985: checking for gcc
configure:5012: result: gcc
configure:5241: checking for C compiler version
configure:5250: gcc --version >&5
gcc (GCC) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:5261: $? = 0
configure:5250: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.8.2/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ../gcc-4.8.2/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --mandir=/
opt/freeware/man --infodir=/opt/freeware/info --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix7.
1.0.0
Thread model: aix
gcc version 4.8.2 (GCC)
configure:5261: $? = 0
configure:5250: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5261: $? = 1
configure:5250: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:5261: $? = 1
configure:5281: checking whether the C compiler works
configure:5303: gcc -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freew
are/include -qHALT=E -U__STR__ -D_THREAD_SAFE -D_USE_IRS -D_LARGEFILE64_SOURCE -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,
-bmaxdata:0x80000000 -Wl,-brtl conftest.c >&5
gcc: error: unrecognized command line option '-qHALT=E'
configure:5307: $? = 1
configure:5345: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5350: error: in `/appli3/sid/rpm/httpd-2.4.9':
configure:5352: error: C compiler cannot create executables
See `config.log' for more details


-------------------------
Thanks to take time for me.... I hope the solution is not so far...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux