For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > August 2004 > PHP5 compilation problems with MySQL and MySQLi support.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP5 compilation problems with MySQL and MySQLi support.
Rodolfo Gonzalez Gonzalez

2004-07-23, 3:56 pm

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.
Rich Janson

2004-08-20, 8:55 pm

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.
Rich Janson

2004-08-24, 11:04 pm

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'm seeing similar errors, but noone seems to have a solution.

Anyone?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com