Ticket #18892 (new defect)
Compiling PHP mcrypt extension against libmcrypt has issues
| Reported by: | perl.programmer@… | Owned by: | ryandesign@… |
|---|---|---|---|
| Priority: | Low | Milestone: | |
| Component: | ports | Version: | 1.7.0 |
| Keywords: | Cc: | ||
| Port: | libmcrypt |
Description
Following the steps detailed 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

