Closed trivoallan closed 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
?
OS : CentOS 5
$ ldd /usr/lib/php/modules/pinba.so linux-gate.so.1 => (0xb7fb6000) libprotobuf.so.6 => /usr/local/lib/libprotobuf.so.6 (0xb7eb9000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7dca000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7dbe000) libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0xb7c74000) libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0xb7c4d000) /lib/ld-linux.so.2 (0x80000000)
cd /dir/with/pinba_extension_src
and show me the output of cat config.log | grep pthread
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'
Please try this patch: http://dev.daylessday.org/diff/pinba_pthread.diff
I still get the same error.
Apply the patch, then re-run phpize, ./configure && make.
Oops i did not re-run phpize. Your patch fixes the problem :) Thanks !
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! =)
Ok, the patch seems to work, indeed.
Hi,
Trying to use Pinba extension with a version of libprotobuf > 2.0.3 throws the following error :
regards.