This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem compiling apache 2.0.63, libiconv.so: wrong ELF class: ELFCLASS32


Hello

I'm having problem when making apache 2.0.63. 

Im using the configure command like this:

CC="gcc" CFLAGS=" -O2 -mcpu=v9 -m64" CPPFLAGS=" -m64 -I/usr/sfw/include" LDFLAGS="-m64" \
./configure --prefix=/usr/apache2 --enable-mods-shared=most --with-mpm=prefork

And the problem I got looks like this:

/usr/tmp/httpd-2.0.63/srclib/apr/libtool --silent --mode=link gcc    -O2 -mcpu=v9 -m64  -m64 -I/usr/sfw/include -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER -m64 -I/usr/sfw/include  -I/usr/tmp/httpd-2.0.63/srclib/apr/include -I/usr/tmp/httpd-2.0.63/srclib/apr-util/include -I/usr/tmp/httpd-2.0.63/srclib/apr-util/xml/expat/lib -I. -I/usr/tmp/httpd-2.0.63/os/unix -I/usr/tmp/httpd-2.0.63/server/mpm/prefork -I/usr/tmp/httpd-2.0.63/modules/http -I/usr/tmp/httpd-2.0.63/modules/filters -I/usr/tmp/httpd-2.0.63/modules/proxy -I/usr/tmp/httpd-2.0.63/include -I/usr/tmp/httpd-2.0.63/modules/generators -I/usr/tmp/httpd-2.0.63/modules/dav/main -export-dynamic -L/usr/tmp/httpd-2.0.63/srclib/apr-util/xml/expat/lib  -m64 -o htpasswd  htpasswd.lo    /usr/tmp/httpd-2.0.63/srclib/pcre/libpcre.la /usr/tmp/httpd-2.0.63/srclib/apr-util/libaprutil-0.la /usr/tmp/httpd-2.0.63/srclib/apr-util/xml/expat/lib/libexpat.la -liconv /usr/tmp/httpd-2.0.63/srclib/apr/libapr-0.la -lsendfile -lrt -lm -lsocket -lnsl -lresolv -lpthread
ld: fatal: file /usr/local/lib/libiconv.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to .libs/htpasswd
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/tmp/httpd-2.0.63/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/tmp/httpd-2.0.63/support'
make: *** [all-recursive] Error 1


Any ideas why the gcc compiler not finds the 64-bit variant of libiconv.so??

file /usr/local/lib.64/libiconv.so
/usr/local/lib.64/libiconv.so:  ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped





Best regards
Håkan Persson


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]