Thanks for you help, I figured the lib64 thing out after awhile. 
Referencing PHP Bug #28150, status is "won't fix"
This means that PHP does not support, and has no intention to support
AMD 64 linux!!!

My general dissatisfaction with PHP grows ever larger inciting me to
move away from PHP with ever increasing vigor.

Alex Turner
netEconomist

On Apr 7, 2005 2:19 PM, Kul <[EMAIL PROTECTED]> wrote:
> Alex Turner wrote:
> 
> >I'm trying to install PHP on AMDx86-64 on SuSe 9.2 but I'm having
> >problems with the install picking up the 64 bit libraries in
> >/usr/lib64.
> >
> >Can anyone give me some hints on how to resolve this?
> >
> >Thanks,
> >
> >Alex Turner
> >netEconomist
> >
> >
> >
> You haven't mentioned which version of PHP, which will certainly be
> different for each :|
> I had some issues with the crappy configure script for php5 under 64bit
> on RHEL, and eventually ended up doing stuff like this:
> 
> grep -n lib64 configure
> 18498:      if test -r $i/lib64/libssl.a -o -r
> $i/lib64/libssl.$SHLIB_SUFFIX_NAME; then
> 21118:      if test -f "$i/lib64/libjpeg.$SHLIB_SUFFIX_NAME" -o -f
> "$i/lib64/libjpeg.a"; then
> 21365:      if test -f "$i/lib64/libtiff.$SHLIB_SUFFIX_NAME" -o -f
> "$i/lib64/libtiff.a"; then
> 30204:      test -f $i/lib64/libjpeg.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libjpeg.a && GD_JPEG_DIR=$i && break
> 30479:      test -f $i/lib64/libpng.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libpng.a && GD_PNG_DIR=$i && break
> 30859:      test -f $i/lib64/libXpm.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libXpm.a && GD_XPM_DIR=$i && break
> 31994:      test -f $i/lib64/libjpeg.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libjpeg.a && GD_JPEG_DIR=$i && break
> 32269:      test -f $i/lib64/libpng.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libpng.a && GD_PNG_DIR=$i && break
> 32649:      test -f $i/lib64/libXpm.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libXpm.a && GD_XPM_DIR=$i && break
> 41062:      if test -f $i/lib64/libkrb5.a || test -f
> $i/lib64/libkrb5.$SHLIB_SUFFIX_NAME; then
> 49249:      if test -r $i/lib64/libssl.a -o -r
> $i/lib64/libssl.$SHLIB_SUFFIX_NAME; then
> 51208:    if test -f $i/lib64/libming.$SHLIB_SUFFIX_NAME -o -f
> $i/lib64/libming.a; then
> 52255:                  if test -r $i/lib64/libphoenix.a; then
> 53990:  for i in lib64 lib64/mysql; do
> 66785:    elif test -r $i/lib64/$PFPRO_HDR; then
> 66793:    elif test -r $i/lib64/$PFPRO_LIB; then
> 73068:        test -f $i/lib64/libsnmp.a -o -f
> $i/lib64/libsnmp.$SHLIB_SUFFIX_NAME && SNMP_LIBDIR=$i/lib
> 73344:      if test -r $i/lib64/libssl.a -o -r
> $i/lib64/libssl.$SHLIB_SUFFIX_NAME; then
> 83695:      if test -f "$i/lib64/libexpat.a" -o -f
> "$i/lib64/libexpat.$SHLIB_SUFFIX_NAME"; then
> 84186:    if test -f $i/lib64/libexpat.a -o -f
> $i/lib64/libexpat.$SHLIB_SUFFIX_NAME; then
> 
> Then had to edit the Makefile and alter these:
> CLI version:
> EXTRA_LIBS = -L/usr/lib64/mysql/ -L/opt/libxml2-2.6.11/lib/ -lcrypt
> -lnsl -lcrypt -lpspell -lpanel -lncurses -lmysqlclient -lmcrypt -lltdl
> -lgmp -lgd -lfreetype -lpng -lz -ljpeg -ldb-4.1 -ldb-4.1 -lcurl -lbz2
> -lz -lresolv -lm -ldl -lnsl /opt/libxml2-2.6.11/lib/libxml2.a -lz -lm
> -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
> -lz -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
> -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5
> -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lz -lm -lz -lm -lz -lm
> -lcrypt -lz -lm -lcrypt
> INCLUDES = -I$(top_builddir)/Zend -I/opt/libxml2-2.6.11/include/libxml2
> -I/usr/kerberos/include -I/usr/include/freetype2 -I/usr/lib64/
> -I/home/sources/php-5.0.3_CLI/ext/mbstring/oniguruma
> -I/home/sources/php-5.0.3_CLI/ext/mbstring/libmbfl
> -I/home/sources/php-5.0.3_CLI/ext/mbstring/libmbfl/mbfl
> -I/usr/local/include -I/usr/include/mysql -I/usr/include/ncurses
> -I/usr/include/pspell
> 
> Apache Module:
> EXTRA_LDFLAGS = -export-symbols
> /home/sources/php-5.0.3_APACHEMODULE/sapi/apache2filter/php.sym
> -avoid-version -module -L/opt/libxml2-2.6.11/lib/ -L/usr/kerberos/lib
> -L/usr/kerberos/lib64 -L/usr/lib64/ -L/usr/local/lib -L/usr/lib64
> EXTRA_LDFLAGS_PROGRAM = -L/opt/libxml2-2.6.11/lib/ -L/usr/kerberos/lib
> -L/usr/kerberos/lib64 -L/usr/lib64/ -L/usr/local/lib -L/usr/lib64
> EXTRA_LIBS = -L/usr/lib/mysql/ -L/opt/libxml2-2.6.11/lib/ -lcrypt -lnsl
> -lcrypt -lpspell -lpanel -lncurses -lmysqlclient -lmcrypt -lltdl -lgmp
> -lgd -lfreetype -lpng -lz -ljpeg -ldb-4.1 -ldb-4.1 -lcurl -lbz2 -lz
> -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -lgssapi_krb5
> -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto
> -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl
> -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
> -lresolv -ldl -lz -lz -lz -lm -lz -lm -lz -lm -lcrypt -lz -lm -lcrypt -lxml2
> PHP_LDFLAGS = -L/opt/libxml2-2.6.11/lib/ -L/usr/kerberos/lib
> -L/usr/kerberos/lib64 -L/usr/lib64/ -L/usr/local/lib -L/usr/lib64
> 
> I found php5 very dissapointing in the amount of hacking needed to get a
> compile out of it :-|  Though I found the distinct lack of helpful info
> on the net more frustrating and ended getting this resolved myself after
> a couple of days of pissing about.
> 
> --
> Regards
> Kul
> 
> 
>

Reply via email to