[lttng-dev] Problem using UST with PHP

Ettore Del Negro ettore at ettoredelnegro.me
Sat Mar 10 19:39:07 EST 2012


Hello,

i'm trying to add a tracepoint in PHP-5.3.8/Zend/zend.c and i'm getting this (linking) error:

gcc -I/usr/include -g -fvisibility=hidden -O0 -Wall ext/date/.libs/php_date.o 
[…]
 -lcrypt /usr/lib/liblttng-ust.so /usr/lib/liblttng-ust-tracepoint.so -lrt /usr/lib/liburcu-bp.so /usr/lib/liburcu-common.so -luuid -lpthread -ldl   
Zend/.libs/zend.o:(__tracepoints+0x18): undefined reference to `__tracepoint_provider_php_zend'
collect2: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1

I followed exactly the doc/examples/easy-ust example and added -llttng-ust in PHP's Makefile.
I'm using lttng-ust-2.0.0-rc2 and userspace-rcu-0.6.7 .

What am i missing?

Regards,
Ettore


More information about the lttng-dev mailing list