tony2001 / pinba_extension

Pinba PHP extension
http://pinba.org
GNU Lesser General Public License v2.1
83 stars 22 forks source link

Pinba extension is not compatible with libprotobuf > 2.0.3 #2

Closed trivoallan closed 14 years ago

trivoallan commented 14 years ago

Hi,

Trying to use Pinba extension with a version of libprotobuf > 2.0.3 throws the following error :

Failed loading /usr/lib/php/modules/pinba.so:  /usr/lib/libprotobuf.so.6: undefined symbol: pthread_once

regards.

tony2001 commented 14 years ago

See this commit: http://github.com/tony2001/pinba_extension/commit/c53e8e6dd7542335392d26db308193f9fd10de3a What's your version of Pinba extension? OS? What do you get with ldd /usr/lib/php/modules/pinba.so ?

trivoallan commented 14 years ago
tony2001 commented 14 years ago

cd /dir/with/pinba_extension_src and show me the output of cat config.log | grep pthread

trivoallan commented 14 years ago
configure:3553: checking for pthread_once
configure:3610: cc -o conftest -g -O2   conftest.c -lpthread >&5
configure:5788: cc -o conftest -g -O2   conftest.c  -lpthread >&5
ac_cv_func_pthread_once=yes
LIBS=' -lpthread'
tony2001 commented 14 years ago

Please try this patch: http://dev.daylessday.org/diff/pinba_pthread.diff

trivoallan commented 14 years ago

I still get the same error.

tony2001 commented 14 years ago

Apply the patch, then re-run phpize, ./configure && make.

trivoallan commented 14 years ago

Oops i did not re-run phpize. Your patch fixes the problem :) Thanks !

tony2001 commented 14 years ago

I'm not completely sure it also fixes the problem the initial patch was SUPPOSED to fix, so please stay in touch, I might need you to check another version of the patch.. And thanks! =)

tony2001 commented 14 years ago

Ok, the patch seems to work, indeed.