[MacPorts] #18892: Compiling PHP mcrypt extension against libmcrypt has issues
MacPorts
noreply at macports.org
Wed Mar 18 08:07:46 PDT 2009
#18892: Compiling PHP mcrypt extension against libmcrypt has issues
---------------------------------------+------------------------------------
Reporter: perl.programmer@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Low | Milestone: Port Bugs
Component: ports | Version: 1.7.0
Keywords: | Port: libmcrypt
---------------------------------------+------------------------------------
Following the steps detailed [http://michaelgracie.com/2008/12/26
/plugging-mcrypt-into-php-on-leopard-10.5.6/ here], I tried to install the
php mcrypt extension so I wouldn't have to re-compile all of php. However,
if a replace the libmcrypt installation steps with a macports install of
libmcrypt, when PHP is loaded through Apache, the mcrypt extension fails
to load. However, it does load when I run php from the command line. I had
to modify the {{{./configure}}} command a little bit to point to where
libmcrypt is and to remove some of the unsupported archs. However, when I
install libmcrypt from source, I don't have any of these problems and I
don't have to change php.ini either. It may be that my machine is
configured oddly, but I figured I would report the issue anyways in case
it can be replicated.
The configure command:
{{{
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS='-O2 -fno-common -arch i386'
LDFLAGS='-L/opt/local/lib -L/usr/local/lib' CXXFLAGS='-O2 -fno-common
-arch i386' \
./configure --with-php-config=/Developer/SDKs/MacOSX10.5.sdk/usr/bin/php-
config --with-mcrypt=/opt/local
}}}
--
Ticket URL: <http://trac.macports.org/ticket/18892>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list