#42549 [Com]: undefined reference to `mysql_server_init' and `mysql_server_end'
| From: | forumsysop at imaging-resource dot com | Date: | Wed, 05 Sep 2007 16:30:16 +0000 |
| Subject: | #42549 [Com]: undefined reference to `mysql_server_init' and `mysql_server_end' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-117188@lists.php.net to get a copy of this message | ||
ID: 42549
Comment by: forumsysop at imaging-resource dot com
Reported By: silver at sprintserve dot net
Status: Assigned
Bug Type: MySQL related
Operating System: RHEL 3 Taroon 8
PHP Version: 5.2.4
Assigned To: scottmac
New Comment:
Another vote for this as an issue.
Given that RHEL3 is still in circulation quite a bit and a fair number
of users use the default OS packages for compatibility reasons, is there
an ETA on a fix and/or patch to resolve this?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2007-09-05 13:20:56] jani@php.net
Apparently these don't exist in such old mysql versions. Assigned to
the "guilty" one. :)
------------------------------------------------------------------------
[2007-09-05 07:37:18] silver at sprintserve dot net
This is the exact version:
mysql Ver 11.18 Distrib 3.23.58, for redhat-linux-gnu (i386)
------------------------------------------------------------------------
[2007-09-04 22:32:33] jani@php.net
Exactly what mysql version is the one that comes with the ancient
RHEL3? (You really should upgrade..)
------------------------------------------------------------------------
[2007-09-04 20:22:46] silver at sprintserve dot net
Description:
------------
Compile fails with the following error:
ext/mysql/.libs/php_mysql.o(.text+0x2e9): In function
`zm_startup_mysql':
/usr/local/src/php-5.2.4/ext/mysql/php_mysql.c:404: undefined reference
to `mysql_server_init'
ext/mysql/.libs/php_mysql.o(.text+0x307): In function
`zm_shutdown_mysql':
/usr/local/src/php-5.2.4/ext/mysql/php_mysql.c:423: undefined reference
to `mysql_server_end'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
This is the configure line:
./configure --program-prefix= --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --with-libdir=/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --cache-file=../config.cache
--enable-force-cgi-redirect --disable-debug --disable-rpath
--enable-inline-optimization --with-bz2 --with-curl
--with-exec-dir=/usr/bin --with-png-dir=/usr --with-gd
--enable-gd-native-ttf --with-ttf --with-gettext --with-ncurses
--with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl
--with-pspell --with-regex=system --with-zlib --with-layout=GNU
--enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes
--enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-discard-path --enable-wddx --enable-mbstring --enable-mbregex
--with-pear=/usr/share/pear --with-kerberos=/usr/kerberos
--with-ldap=shared --with-mysql=/usr/bin/mysql_config --enable-calendar
--with-apxs2filter=/usr/sbin/apxs
Mysql is the stock Redhat Enterprise 3 RPMs version 3. Prior versions
worked fine.
Thank you.
Reproduce code:
---------------
NA
Expected result:
----------------
NA
Actual result:
--------------
NA
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42549&edit=1