Another confusing PHP 5.4 compilation error: This time mcrypt_module_open

Written by - 0 comments

Published on - Listed in PHP Linux


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.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   OpenSearch   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder