Re: Statically linked CLI binary
| From: | Edin Kadribasic | Date: | Thu, 16 Dec 2004 23:24:27 +0000 |
| Subject: | Re: Statically linked CLI binary | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-14923@lists.php.net to get a copy of this message | ||
Hm, on the 2nd try it worked with xml and mysql too, so I guess everything
works fine :)
Edin
"Daniel L Bingham" <daniel.l.bingham@hp.com> wrote in message
news:5B936EB1197B8C46B85A0CB0C337CAE407FBC2A6@cceexc18.americas.cpqcorp.net...
I am attempting to statically link a CLI binary for PHP (5.0.2). The
configure and make steps proceed without so much as a warning, but the
final binary doesn't seem to be statically linked. Can anyone tell me
how to correctly statically link the libraries? When I move to a
different machine, I get an error that says "version 'GLIBC_2.3' not
found". ldd says that the binary has a number of shared library
dependencies:
$ ldd sapi/cli/php
libcrypt.so.1 => /lib/libcrypt.so.1 (0x005cf000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00c65000)
libm.so.6 => /lib/tls/libm.so.6 (0x00441000)
libdl.so.2 => /lib/libdl.so.2 (0x0062c000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00557000)
libz.so.1 => /usr/lib/libz.so.1 (0x00bb8000)
libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x00c1b000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x00905000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00817000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0078b000)
The build process I used was:
./configure --with-mysqli --disable-cgi
make LDFLAGS="--all-static"
Am I missing something?
Daniel Bingham
HP @ Research Park
979.691.4574
daniel.l.bingham@hp.com