|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-06-14 08:37 UTC] Franck at e-Dot dot nl
Description: ------------ Hi, I'm trying to build php5 with MySQLi support. But I was not able to do so. Tried PHP5.0.0RC2, PHP5.0.0RC3 and PHP5-200406140430 with MySQL 4.1.1alpha & 4.1.2alpha. All give me the same error's. MySQL install: I've build my own rpm's from the source rpm. and installed client, devel, server and shared packages. PHP Configuration: ./configure \ --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-config-file-path=/etc/httpd \ --with-zlib \ --enable-magic-quotes \ --with-regex=system \ --enable-track-vars \ --with-iconv \ --enable-xml \ --disable-debug \ --with-gd \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-interbase=shared \ --with-mysql=/usr \ --with-mysqli=/usr/bin/mysql_config \ --with-ldap \ --with-openssl=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-calender \ --with-curl \ --enable-bcmath \ --with-dom \ --with-dom-xslt \ --enable-exit \ --enable-ftp \ --with-gettext \ --enable-mbregex \ --with-mcrypt \ --with-pear \ --enable-sockets \ --with-freetype-dir \ --enable-soap \ --enable-simplexml \ --with-inifile \ --enable-wddx \ --enable-pcntl This all goes fine, then it all stops on the 'make'. It seems that compiling is not the problem, only when linking the whole stuff it goes wrong. Error message: /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): multiple definition of `net_buffer_length' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple definition of `max_allowed_packet' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple definition of `net_read_timeout' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): multiple definition of `net_write_timeout' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_server_init': libmysql.o(.text+0x0): multiple definition of `mysql_server_init' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_debug': libmysql.o(.text+0x1d0): multiple definition of `mysql_debug' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1d0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_server_end': libmysql.o(.text+0xf0): multiple definition of `mysql_server_end' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xf0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_thread_end': libmysql.o(.text+0x150): multiple definition of `mysql_thread_end' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x150): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_get_parameters': libmysql.o(.text+0x130): multiple definition of `mysql_get_parameters' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x130): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_thread_init': libmysql.o(.text+0x140): multiple definition of `mysql_thread_init' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x140): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `pipe_sig_handler': libmysql.o(.text+0x1e0): multiple definition of `pipe_sig_handler' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1e0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_master_query': libmysql.o(.text+0x200): multiple definition of `mysql_master_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x200): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_master_send_query': libmysql.o(.text+0x250): multiple definition of `mysql_master_send_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x250): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_slave_query': libmysql.o(.text+0x2c0): multiple definition of `mysql_slave_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2c0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_slave_send_query': libmysql.o(.text+0x310): multiple definition of `mysql_slave_send_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x310): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_enable_rpl_parse': libmysql.o(.text+0x3a0): multiple definition of `mysql_enable_rpl_parse' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3a0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o): In function `mysql_disable_rpl_parse': libmysql.o(.text+0x3c0): multiple definition of `mysql_disable_rpl_parse' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3c0): first defined here The above is just the first part of the message. The real message is much bigger! If you need the full message or the full link command, then just say so. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 29 21:00:01 2026 UTC |
I know this is really evil but this is something I did, and it got past that 1 problem, but has other link time errors with unresolvable symbols now. Anywyas, here you go, but I don't exactly recommend this. I did a grep -r for the usage of the constant and it is only located in the mysqli module in php5rc3, and not in any other module or mysql4.1.1alpha. other than that, I have no idea what the constant should really be, so just take this as a, hmm, that's interesting kinda point. -- $Id: php_mysqli.h,v 1.37 2004/06/06 08:52:19 georg Exp $ ... #define LOCAL_INFILE_ERROR_LEN 2048 typedef struct { char error_msg[LOCAL_INFILE_ERROR_LEN]; void *userdata; } mysqli_local_infile;I know this is really evil but this is something I did, and it got past that 1 problem, but has other link time errors with unresolvable symbols now. Anywyas, here you go, but I don't exactly recommend this. I did a grep -r for the usage of the constant and it is only located in the mysqli module in php5rc3, and not in any other module or mysql4.1.1alpha. other than that, I have no idea what the constant should really be, so just take this as a, hmm, that's interesting kinda point. -- $Id: php_mysqli.h,v 1.37 2004/06/06 08:52:19 georg Exp $ ... #define LOCAL_INFILE_ERROR_LEN 2048 typedef struct { char error_msg[LOCAL_INFILE_ERROR_LEN]; void *userdata; } mysqli_local_infile;