The pfpro extension requires version 2 or 3 of the SDK
Looking at the config.log I found that the config test code was failing to compile with these errors:
/usr/local/lib/libpfpro.so: undefined reference to `pthread_mutex_unlock' /usr/local/lib/libpfpro.so: undefined reference to `pthread_self' /usr/local/lib/libpfpro.so: undefined reference to `pthread_mutex_destroy' /usr/local/lib/libpfpro.so: undefined reference to `pthread_mutex_lock' /usr/local/lib/libpfpro.so: undefined reference to `pthread_mutex_init'
I searched on google and found a couple of posts on this list from people who ahd the same problem, but I never saw a solution. So, here it is:
With a little further digging, I determined the problem to be with the configure script. The configure script is smart enough to test for POSIX threads, and to add the appropriate compile flag when building the PHP distribution, but it isn't smart enough to use that flag when compiling the config test code. The pfp library requires the threads flag to be set.
This will kludge your configure script into working, so that you can get past the bogus error encountered by the configure tests:
perl -pi.bak -e \ 's/LIBS="-lpfpro/LIBS="-pthread -lpfpro/g' \ configure
I broke it into three lines so that it doesn't wrap unhappily in this email.
NOTE: This is the appropriate flag for FreeBSD 4.8. Your system may require a different flag.
It is a kludge fix, and I'm not proud of it, but I have to have this damn thing working by morning. :)
-Chris Knight
-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php