Hello, I'm having some difficulties compiling an application (well.. Apache 
2.2.16) on my box.

It seems to be configured to compile 32bits apps while my box is an amd64 and 
the OS runs a 64bits kernel :

some ./configure output :
checking for APR... yes
  setting CC to "cc -m32"
  setting CPP to "cc -m32 -E"
  setting CPPFLAGS to " -DSOLARIS2=11 -D_POSIX_PTHREAD_SEMANTICS -mt 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
  setting LDFLAGS to " "

even if I specified to go for 64bits:
 ./configure CFLAGS=-xarch=amd64 --prefix=/tools/apache2 (...)

Make will fail like this:
refork.la  os/unix/libos.la -lm /tools/httpd-2.2.16/srclib/pcre/libpcre.la 
-L/usr/apr-util/1.3/lib -R/usr/apr-util/1.3/lib -laprutil-1 -lexpat 
-L/usr/apr/1.3/lib -R/usr/apr/1.3/lib -lapr-1 -luuid -lsendfile -lsocket -lnsl 
-lpthread 
cc: Warning: -xarch=amd64 is deprecated, use -m64 to create 64-bit programs
ld: warning: file server/.libs/libmain.a(main.o): wrong ELF class: ELFCLASS32
ld: warning: file modules/http/.libs/libmod_http.a(http_core.o): wrong ELF 
class: ELFCLASS32
ld: warning: file modules/mappers/.libs/libmod_so.a(mod_so.o): wrong ELF class: 
ELFCLASS32
ld: warning: file server/mpm/prefork/.libs/libprefork.a(prefork.o): wrong ELF 
class: ELFCLASS32
ld: fatal: file /usr/apr-util/1.3/lib/libaprutil-1.so: wrong ELF class: 
ELFCLASS32

Also, and I don't know if this has an effect (I guess it does) on the 
preceding, when running crle I get this output :
[15:21:07|r...@oslo:httpd-2.2.16] crle

Configuration file [version 4]: /var/ld/ld.config  
  Platform:     32-bit LSB 80386
  Default Library Path (ELF):   /lib:/usr/lib:/opt/csw/lib
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/lib:/opt/csw/lib

isainfo does show I'm running a 64bits platform :
[15:22:51|r...@oslo:httpd-2.2.16] isainfo
amd64 i386

Any ideas on how to make sure I'm compiling/making 64bits apps ?

Jeff
(before you ask.. I've tried CFLAGS=-xarch=amd64 and CFLAGS=-m64; both end up 
the same way)
-- 
This message posted from opensolaris.org
_______________________________________________
tools-compilers mailing list
[email protected]

Reply via email to