By teotao
Hello,
I am fairly new to Solaris so please be gentle ;). I am trying to install apache 2.4.3 adapting a script one of my colleagues wrote for version 2.2.23. The problem lies in the fact that I am aiming at creating a 64bit package hence I’ve already amended the script to reflect that. I understand this is the way to go about it, right? However, I get an error every single time I run the script.
Code:
ld: fatal: file /usr/local/lib/libldap.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to ldap/.libs/apr_ldap-1.so
collect2: ld returned 1 exit status
gmake[3]: *** [ldap/apr_ldap.la] Error 1
gmake[3]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib/apr-util'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib/apr-util'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/apps/pkg/src/httpd-2.4.3/srclib'
gmake: *** [all-recursive] Error 1
I understand that the file libldap.so is a 32bit file, but am clueless what to do next.
Here are my exports:
Code:
export LDFLAGS="-L/usr/sfw/lib/amd64"
export CPPFLAGS="-m64"
export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib
export LD_LIBRARY_PATH_64=/usr/lib/64:/usr/sfw/lib/64
export CXXFLAGS="-m64 -fPIC"
export PATH=/usr/sfw/bin/:/usr/ccs/bin/sparcv9:/usr/sbin:/usr/bin:/usr/sfw/sbin:/usr/ccs/bin
export CXX="/usr/sfw/bin/gcc -m64"
export CFLAGS="-m64"
export CPP_FLAGS="-m64"
export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
export CC="gcc -m64"
Could anyone point me in the right direction, please?
…read more
Source: FULL ARTICLE at The UNIX and Linux Forums