php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64505 Compile error with Mysqln
Submitted: 2013-03-24 16:07 UTC Modified: 2013-03-25 03:42 UTC
From: chefuri at gmail dot com Assigned:
Status: Duplicate Package: Compile Failure
PHP Version: 5.5.0beta1 OS: CENTOS x86_64
Private report: No CVE-ID: None
 [2013-03-24 16:07 UTC] chefuri at gmail dot com
Description:
------------
I can't compile the PHP 5.5.0 beta1 with this options:

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-mysqlnd' '--
enable-inline-optimization' '--disable-debug' '--with-mysql=mysqlnd' '--with-
pdo-mysql=shared' '--enable-mysqlnd-compression-support' '--with-zlib' '--with-
gd=shared'

This configuration works correctly with alpha versions.

Thanks!
NOTE: With PHP 5.5.0alpha6 i obtained this error : https://bugs.php.net/bug.php?
id=64373


Test script:
---------------


'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-mysqlnd' '--
enable-inline-optimization' '--disable-debug' '--with-mysql=mysqlnd' '--with-
pdo-mysql=shared' '--enable-mysqlnd-compression-support' '--with-zlib' '--with-
gd=shared'

./make

ext/mysqlnd/.libs/mysqlnd_ps.o: In function `mysqlnd_stmt_fetch_row_buffered':
/root/desc/php-5.5.0beta1/ext/mysqlnd/mysqlnd_ps.c:794: undefined reference to 
`tsrm_mutex_lock'
/root/desc/php-5.5.0beta1/ext/mysqlnd/mysqlnd_ps.c:794: undefined reference to 
`tsrm_mutex_unlock'
/root/desc/php-5.5.0beta1/ext/mysqlnd/mysqlnd_ps.c:794: undefined reference to 
`tsrm_mutex_lock'
/root/desc/php-5.5.0beta1/ext/mysqlnd/mysqlnd_ps.c:794: undefined reference to 
`tsrm_mutex_unlock'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

-----

php-5.5.0alpha6/meta_ccld  -Iext/standard/ -I/root/desc/php-5.5.0alpha6/ext/standard/ -DPHP_ATOM_INC -I/root/desc/php-5.5.0alpha6/include -I/root/desc/php-5.5.0alpha6/main -I/root/desc/php-5.5.0alpha6 -I/root/desc/php-5.5.0alpha6/ext/date/lib -I/root/desc/php-5.5.0alpha6/ext/ereg/regex -I/usr/include/libxml2 -I/root/desc/php-5.5.0alpha6/ext/sqlite3/libsqlite -I/root/desc/php-5.5.0alpha6/TSRM -I/root/desc/php-5.5.0alpha6/Zend  -D_REENTRANT  -I/usr/include -g -O2 -fvisibility=hidden -pthread -DZTS  -c /root/desc/php-5.5.0alpha6/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo 
In file included from /root/desc/php-5.5.0alpha6/ext/standard/basic_functions.c:48:
/root/desc/php-5.5.0alpha6/Zend/zend_language_parser.h:331: error: conflicting types for 'zendparse'
/root/desc/php-5.5.0alpha6/Zend/zend_globals_macros.h:35: note: previous declaration of 'zendparse' was here
make: *** [ext/standard/basic_functions.lo] Error 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-25 03:42 UTC] laruence@php.net
-Status: Open +Status: Duplicate
 [2013-03-25 03:42 UTC] laruence@php.net
dup to #64503
 [2013-03-25 03:42 UTC] laruence@php.net
dup to #64503
 [2014-06-12 16:37 UTC] mario dot granados at mnet dot com dot mx
I'm having the same issue with the 5.5.13 stable version in CentOS

/php-5.5.13/ext/mysqlnd/mysqlnd_ps.c:795: undefined reference to `tsrm_mutex_lock'
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC