note 33755 deleted from ref.pfpro by danbrown

From: Date: Fri, 26 Sep 2008 15:20:23 +0000
Subject: note 33755 deleted from ref.pfpro by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-144776@lists.php.net to get a copy of this message
Note Submitter: bohemianadventurer at yahoo dot com ---- I have been trying to compile PHP with PayFlow Pro support on FreeBSD 4.8-STABLE and I kept receiving this error: 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' 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 pre-compile 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 form. 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

« previous php.notes (#144776) next »