php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35354 php 5.0.5 does'nt compile after configure
Submitted: 2005-11-23 19:26 UTC Modified: 2005-11-24 17:13 UTC
From: danielecosta at tiscali dot it Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.5 OS: Red hat 9 linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielecosta at tiscali dot it
New email:
PHP Version: OS:

 

 [2005-11-23 19:26 UTC] danielecosta at tiscali dot it
Description:
------------
Hello ,
I've the same problem reported in bug #34487,when compiling php 5.0.5 with --with-mysql option.

I've removed any old header file related to mysql and then reinstalled MySQL-devel-5.x libraries via RPM.
I've disabled also all the extension .

Here's the full configure command:
./configure --with-apxs2=/usr/local/apache2/bin/apxs  --disable-all --with-mysql

this command runs with no problem
but after the make command I got this:

ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db':
/root/software/php-5.0.5/ext/mysql/php_mysql.c:1169: undefined reference to `mysql_create_db'
ext/mysql/php_mysql.lo(.text+0x2279): In function `zif_mysql_drop_db':
/root/software/php-5.0.5/ext/mysql/php_mysql.c:1211: undefined reference to `mysql_drop_db'
main/SAPI.lo(.text+0xe15): In function `sapi_header_op':
/root/software/php-5.0.5/main/SAPI.c:625: undefined reference to `php_pcre_replace'
main/SAPI.lo(.text+0xebb):/root/software/php-5.0.5/main/SAPI.c:633: undefined reference to `php_pcre_replace'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Please help me!






Reproduce code:
---------------
Here's the full configure command:
./configure --with-apxs2=/usr/local/apache2/bin/apxs  --disable-all --with-mysql

this goes well

then with make i got: 

Expected result:
----------------
all compile with no errors

Actual result:
--------------
ext/mysql/php_mysql.lo(.text+0x2076): In function `zif_mysql_create_db':
/root/software/php-5.0.5/ext/mysql/php_mysql.c:1169: undefined reference to `mysql_create_db'
ext/mysql/php_mysql.lo(.text+0x2279): In function `zif_mysql_drop_db':
/root/software/php-5.0.5/ext/mysql/php_mysql.c:1211: undefined reference to `mysql_drop_db'
main/SAPI.lo(.text+0xe15): In function `sapi_header_op':
/root/software/php-5.0.5/main/SAPI.c:625: undefined reference to `php_pcre_replace'
main/SAPI.lo(.text+0xebb):/root/software/php-5.0.5/main/SAPI.c:633: undefined reference to `php_pcre_replace'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-23 20:04 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-11-24 17:13 UTC] danielecosta at tiscali dot it
Thank you very much tony2001.
This version compiled with no probs under REDHAT 9

Bye
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 16:00:02 2025 UTC