Neil P Davis - 2007-11-20

First, thx for the FOSS encryption library, great stuff!!! I've been using it to encrypt things for a while now with more than just php.

I'm getting a strange issue with php compilation.
1. I compile libmcrypt, run ldconfig: ok
2. I compile mcrypt pointed to /usr/local: ok
3. I configure php and point it to /usr/local: ok
(./configure --with-mcrypt=/usr/local)
4. I run make clean && make and it ends while building sapi/cli/php (command line client)
it dies with the following.

[big long final library compilation command]
/usr/bin/ld: cannot find -lgcrypt
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I've isolated this to mcrypt and the CLI. If I compile without the cli, everything works, including mcrypt with available cyphers showing up in phpinfo. If I compile without mcrypt everything works. But if I compile php with mcrypt and let it build the CLI it fails.

I actually have a much longer configure line than what's above, but cut it short to filter out the noise. I've been using the same configure command for a long time, passed down through versions via config.status. I've also been using php and mcrypt for a long time.

Is this likely to be a php issue, or mcrypt?

I'm starting here because I'd like to rule out any possible gotchas with mcrypt before submitting the bug to the php folks. They tend to dismiss a lot of bug reports, but if I do my homework first, it has a better chance of getting reviewed.

-Neil