php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42549 undefined reference to `mysql_server_init' and `mysql_server_end'
Submitted: 2007-09-04 20:22 UTC Modified: 2007-09-09 16:13 UTC
Votes:7
Avg. Score:4.7 ± 0.5
Reproduced:7 of 7 (100.0%)
Same Version:4 (57.1%)
Same OS:1 (14.3%)
From: silver at sprintserve dot net Assigned: scottmac (profile)
Status: Closed Package: MySQL related
PHP Version: 5.2.4 OS: RHEL 3 Taroon 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: silver at sprintserve dot net
New email:
PHP Version: OS:

 

 [2007-09-04 20:22 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-04 22:32 UTC] jani@php.net
Exactly what mysql version is the one that comes with the ancient RHEL3? (You really should upgrade..)
 [2007-09-05 07:37 UTC] 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-05 13:20 UTC] jani@php.net
Apparently these don't exist in such old mysql versions. Assigned to the "guilty" one. :)
 [2007-09-05 16:30 UTC] forumsysop at imaging-resource dot com
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.
 [2007-09-09 16:13 UTC] scottmac@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

This should be corrected now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC