Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Another confusing PHP 5.4 compilation error: This time mcrypt_module_open
Saturday - May 4th 2013 - by - (0 comments)

As just posted a couple of minutes ago (PHP 5.4 compilation error: build with IMAP works... no), the confusing compilation errors continue. This time during the mcrypt checks:

checking for stdarg.h... (cached) yes
checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... no
checking for mcrypt_module_open in -lmcrypt... no
configure: error: Sorry, I was not able to diagnose which libmcrypt version you have installed.

By common sense, this would be a missing libmcrypt-devel package, but that exists. I took another look in the config.log:

configure:78094: checking for mcrypt_module_open in -lmcrypt
configure:78129: cc -o conftest -I/usr/include -g -O2 -fvisibility=hidden  -L/usr/lib64  -lltdl conftest.c -lmcrypt  -lstdc++ -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lcurl -lbz2 -lz -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -lssl -lcrypto -lcurl -lxml2 -lz -lm -lssl -lcrypto -lssl -lcrypto -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio >&5
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lltdl
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
configure:78136: $? = 1

I've tried to look for ltdl packages in the repository, but couldn't find any libltdl*-devel packages. I continued with lstdc++ as the check might look for either ltdl or stdc++ libraries. I found the devel package for stdc++:

zypper in libstdc++47-devel

And this time it worked:

checking for mcrypt support... yes
checking for libmcrypt version... >= 2.5.6
checking for mcrypt_module_open in -lmcrypt... yes

 

Add a comment

Show form to leave a comment

Comments (newest first):

No comments yet.

Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

7422 Days
until Death of Computers
Why?