Compiling 64 bit php on sun4u 2.10

From: Jace Freeman (jace.freeman_at_iinet.net.au)
Date: 01/31/05


Date: 31 Jan 2005 02:44:05 -0800

Hi there,

Trying ever so diligently to get the last segment of my webserver
working - PHP. I have compiled everything; apache2, mysql, perl, DBI
connectors with m64 arch=v9 flags, but am struggeling to get php to
make.

My libraries:
LD_LIBRARY_PATH=/lib/sparcv9:/usr/local/ssl/lib:/usr/local/mysql/lib:usr/local/lib/gcc-lib/
sparc-sun solaris2.10/3.3.2/sparcv9/:

My configure:

/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/
CC=gcc CFLAGS="-mcpu=v9 -m64 -fno-omit-frame-pointer" \
LDFLAGS="-lsocket -lresolv -lnsl" \
./configure \
--prefix=/usr/local/php \
--bindir=/usr/local/bin \

--sbindir=/usr/local/sbin \
--with-apxs2=/usr/local/sbin/apxs \

--disable-cgi \
--with-openssl=/usr/local/ssl \
--with-mysql=/usr/local/mysql \
--with-pear

My make error:

main/internal_functions_cli.lo -lm -lgcc -lxml2 -lz -lm -lsocket -lnsl
-lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz
-lm -lsocket -lnsl -o sapi/cli/php
Undefined first referenced
symbol in file
dn_skipname ext/standard/dns.lo
res_nmkquery ext/standard/dns.lo
dn_expand ext/standard/dns.lo
res_nclose ext/standard/dns.lo
res_search ext/standard/dns.lo
res_ninit ext/standard/dns.lo
res_nsend ext/standard/dns.lo
inet_aton main/network.lo
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Apparently this could be something to do with automake not prepending
the symbols probably - well that is the most intelligent thing I have
drawn from my investigations. Any help would be good. I have tried
altering my path and libraries - including not setting LD~ as a global.
Thanks,

Jace



Relevant Pages

  • Re: error: syntax error before "_X_SENTINEL"
    ... freefont-ttf-20060126 Free UCS Outline Fonts ... libmcrypt-2.5.7_2 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.2_2 The bcmath shared extension for php ... pkg-config-0.20_2 A utility to retrieve information about installed libraries ...
    (freebsd-stable)
  • Fwd: php extensions compile error
    ... Subject: php extensions compile error ... checking for C compiler default output file name... ... checking for PHP extension directory... ... libgnome-2.10.0_1 Libraries for GNOME, a GNU desktop environment ...
    (freebsd-hackers)
  • Fwd: php extensions compile error
    ... Subject: php extensions compile error ... checking for C compiler default output file name... ... checking for PHP extension directory... ... libgnome-2.10.0_1 Libraries for GNOME, a GNU desktop environment ...
    (freebsd-questions)
  • Upgrading 5.3 > 6.0 buildworld failure in libkrb5
    ... gnomelibs-1.4.2_3 Libraries for GNOME, a GNU desktop environment ... kdeaccessibility-3.4.3 Accessibility applications for KDE ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... php4-bcmath-4.4.1_3 The bcmath shared extension for php ...
    (freebsd-stable)
  • RE: apache13_modssl + mod_php4 + php4-extenstions +mysql323-*+myphpadmin = ...
    ... XFree86-libraries-4.4.0_3 XFree86-4 libraries and headers ... libmcrypt-2.5.7_1 Multi-cipher cryptographic library (used in PHP) ... pear-Archive_Tar-1.2 PEAR tar file management class ... php4-domxml-4.3.10_2 The domxml shared extension for php ...
    (freebsd-questions)