Rodolfo Gonzalez Gonzalez wrote:
Hello,

I'm trying to install PHP5 with --with-mysql and --with-mysqli in a Linux
box with MySQL 4.1.3. The relevant config options are:

--with-mysqli=/usr/bin/mysql_config \
--with-mysql=/usr \

The last errors are:

...
...
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x350): first defined here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0xa60): In function
`my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0xa60): first defined here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1


(all the errores are caused by "multiple definition"'s, just they're too many to include them in the e-mail :) ).

From the manual I understand that PHP5 can be installed with both MySQL
and MySQLi support... how can this be achieved?, any help is appreciated.

Regards,
Rodolfo.
I am having the same issue.

I am trying to install php5.0.1 on apache 2.50 with MySQL 4.1.3.

My config options are as follows:

--prefix=/usr -
-exec-prefix=/usr
--bindir=/usr/bin
--sbindir=/usr/sbin
--sysconfdir=etc
--datadir=/usr/share
--includedir=/usr/include
--libdir=/usr/lib
--libexecdir=/usr/libexec
 --localstatedir=/var
--sharedstatedir=/usr/com
--enable-inline-optimization
--with-exec-dir=/usr/bin
--with-layout=GNU
--enable-magic-quotes
--with-pear=/usr/share/pear
--with-mysql=/usr/bin/mysql_config
--with-mysqli=/usr/bin/mysql_config
--enable-versioning
--with-apxs2=/usr/sbin/apxs
--enable-sockets
--with-zlib-dir=/usr/local
--with-gd
--with-ldap
--without-sqlite

I can build either with either mysql or mysqli fine, but when I try to configure both, I get these 'multiple definition' errors. I've searched all over and can't seem to find an answer to this one.

Reply via email to