php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59957 build issue with memcached and lib64
Submitted: 2011-09-18 04:32 UTC Modified: 2012-05-04 13:13 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: Fedora at FamilleCollet dot com Assigned: mysql (profile)
Status: Closed Package: mysqlnd_qc (PECL)
PHP Version: 5.3.6 OS: GNU/Linux (Fedora 15)
Private report: No CVE-ID: None
 [2011-09-18 04:32 UTC] Fedora at FamilleCollet dot com
Description:
------------
When building with --enable-mysqlnd-qc-memcache, libmemcached is not add to linker option.

lib is hardcoded, when it should be PHP_LIBDIR to be able to use lib64.


Reproduce code:
---------------
./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-libdir=lib64 --enable-mysqlnd-qc --enable-mysqlnd-qc-memcache --enable-mysqlnd-qc-sqlite --with-sqlite-dir=/usr --with-php-config=/usr/bin/php-config

AND

php -n -q -d extension_dir=modules -d extension=mysqlnd.so -d extension=sqlite3.so -d extension=mysqlnd_qc.so --modules | grep mysqlnd_qc

Expected result:
----------------
## Link with -lmemcached and lsqlite3
libtool: link: cc -shared  -fPIC -DPIC  .libs/php_mysqlnd_qc.o .libs/mysqlnd_qc.o .libs/mysqlnd_qc_ps.o .libs/mysqlnd_qc_logs.o .libs/mysqlnd_qc_zval_util.o .libs/mysqlnd_qc_user_handler.o .libs/mysqlnd_qc_std_handler.o .libs/mysqlnd_qc_classes.o .libs/mysqlnd_qc_object_handler.o .libs/mysqlnd_qc_nop_handler.o .libs/mysqlnd_qc_tokenize.o .libs/mysqlnd_qc_memcache_handler.o .libs/mysqlnd_qc_sqlite_handler.o   -lsqlite3 -lmemcached  -O2 -m64 -mtune=generic   -Wl,-soname -Wl,mysqlnd_qc.so -o .libs/mysqlnd_qc.so

## Load succeed
mysqlnd_qc



Actual result:
--------------
## Link without -lmemcached
libtool: link: cc -shared  -fPIC -DPIC  .libs/php_mysqlnd_qc.o .libs/mysqlnd_qc.o .libs/mysqlnd_qc_ps.o .libs/mysqlnd_qc_logs.o .libs/mysqlnd_qc_zval_util.o .libs/mysqlnd_qc_user_handler.o .libs/mysqlnd_qc_std_handler.o .libs/mysqlnd_qc_classes.o .libs/mysqlnd_qc_object_handler.o .libs/mysqlnd_qc_nop_handler.o .libs/mysqlnd_qc_tokenize.o .libs/mysqlnd_qc_memcache_handler.o .libs/mysqlnd_qc_sqlite_handler.o   -lsqlite3  -O2 -m64 -mtune=generic   -Wl,-soname -Wl,mysqlnd_qc.so -o .libs/mysqlnd_qc.so

## Can't load
PHP Warning:  PHP Startup: Unable to load dynamic library 'modules/mysqlnd_qc.so' - modules/mysqlnd_qc.so: undefined symbol: memcached_free in Unknown on line 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-18 04:34 UTC] fedora at famillecollet dot com
This patch fixes this issue:
https://github.com/remicollet/remirepo/blob/master/php-pecl-mysqlnd-qc/mysqlnd_qc-build.patch
 [2011-09-18 04:41 UTC] fedora at famillecollet dot com
I apologize for the spam.. this bug concerns mysqlnd_qc
Really sorry, please close this one.
 [2012-05-04 13:13 UTC] uw@php.net
-Status: Assigned +Status: Closed
 [2012-05-04 13:13 UTC] uw@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

We should have fixed this one Remi, thanks!

http://svn.php.net/viewvc?view=revision&revision=322930
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC