PHP 4.3.2, Solaris 5.9 64 BIT, MySQL, Apache 2 Latest SUNFREEWARE
| From: | Lancashire, Pete | Date: | Mon, 28 Jul 2003 23:51:40 +0000 |
| Subject: | PHP 4.3.2, Solaris 5.9 64 BIT, MySQL, Apache 2 Latest SUNFREEWARE | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-11356@lists.php.net to get a copy of this message | ||
Does anyone have a HOW-TO ?
Where I'm running into problems is with modules not being 64 bit. Using
the latest
packages from SunFreeWare, Gcc 3.3, etc.
I added the following to my environment, but some modules just don't
want to work.
export CFLAGS="-des -Duse64bitall"
export CPPFLAGS=$CFLAGS
export CXXFLAGS=$CPPFLAGS
export LDFLAGS="-mcpu=v9 -m64"
export LDDLFLAGS="-mcpu=v9 -m64 -G"
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--disable-zlib \
--disable-ctype \
--enable-track-vars \
--enable-ftp \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets
make examples
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(libmysql.o):
wrong ELF class: ELFCLASS64
ld: fatal: file ext/ftp/php_ftp.lo: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'
bash-2.05#
I dont mind if everything is compiled as 32 but dont know how to.
thanks !!!!!
-pete