Anyone else run into PHP build issues?

Blake Swensen blake at
Mon May 19 15:28:02 PDT 2003

(see below for all version and system information)

When running configure on php-4.3.1 (cvs'd fresh) I get the error that 
/usr/libexec/elf/ld cannot find -lmysqlclient.  The client libraries are 
in /usr/local/lib/mysql as per instructions and ldconfig -r sees them in 
the hints file.

I could get the system to configure under 4.2.2, but the make would 
crash with the same error.  Read some message about editing and adding "-L/usr/local/lib/mysql" to the EXTRA_LIBS 
line.  This seemed to work but Apache crashed... was something to do 
with a missing symbol in the gd library.

In the hope of not having to go clear to 4.1.0, I was wondering if 
someone had found similar problems.


Configure command:
./configure \
--prefix=/usr/local \
--with-mysql=/usr/local \
--with-gdbm \
--with-gd=shared \
--with-apxs=/usr/local/sbin/apxs \
--with-zlib-dir=/usr/include \
--with-png-dir=/usr/local \
--with-tiff=/usr/local \
--with-jpeg=/usr/local \
--with-openssl \
--without-oracle \
--without-oci8 \
--includedir=/usr/local/include \

LIBTOOL: 1.3.4-freebsd-ports
MYSQL: Distrib 3.23.56
AUTOCONF: autoconf (GNU Autoconf) 2.53
LD: ld version 2.12.1
APACHE: Server version: Apache/1.3.26
gd: gd-1.8.4_4
The Internet Rescue Company -
Blake R. Swensen         Pyramus Online, Inc.
President                2080 SE Oak Grove Blvd. Suite 11
                          Milwaukie, Oregon 97267
"We measure success by the success of our clients"

More information about the freebsd-isp mailing list