aterrien / forp-PHP-profiler

A PHP profiler written in C. forp is a lightweight PHP extension which provides the full call stack of your script, with CPU and memory usage, in a plain PHP Array or JSON output.
http://anthonyterrien.com/forp/
MIT License
336 stars 28 forks source link

Fails to build on OS X #18

Open gazsp opened 11 years ago

gazsp commented 11 years ago

Not sure if you're planning on supporting OS X, but I get the following error during make (on OS X 10.8.5):

bin/sh /Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/libtool --mode=link cc -DPHP_ATOM_INC -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/include -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/main -I/Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1 -I/usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o forp.la -export-dynamic -avoid-version -prefer-pic -module -rpath /Users/garypearman/Documents/Development/opensource/forp-PHP-profiler-1.0.1/modules  php_forp.lo forp.lo
cc ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/forp.so -bundle  .libs/php_forp.o .libs/forp.o
duplicate symbol _forp_globals in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_execute in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_compile_file in:
    .libs/php_forp.o
    .libs/forp.o
duplicate symbol _old_execute_internal in:
    .libs/php_forp.o
    .libs/forp.o
ld: 4 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [forp.la] Error 1
wojons commented 11 years ago

Can you try to build this with gcc or something other then clang

ichiriac commented 10 years ago

@gazsp any news ?

birhanu-eshete commented 9 years ago

Ran to the same issue on OS X. Would appreciate if someone has figured out a workaround.