20081114 building openldap from source on x86_64 - plembo/onemoretech GitHub Wiki

title: Building OpenLDAP from Source on x86_64 link: https://onemoretech.wordpress.com/2008/11/14/building-openldap-from-source-on-x86_64/ author: lembobro description: post_id: 431 created: 2008/11/14 20:02:38 created_gmt: 2008/11/14 20:02:38 comment_status: open post_name: building-openldap-from-source-on-x86_64 status: publish post_type: post

Building OpenLDAP from Source on x86_64

I will be brief.

The key to getting OpenLDAP, and many other things, to build from source on an x86_64 machine (like my CentOS 5.2 box) is to, wherever possible, lose the 32-bit versions of any development packages the build will access.

For OpenLDAP the culprit in question, the thing that kept leaving me with various ugly error messages at the end of a “make”, like this:

/usr/lib/libdb-4.3.so: could not read symbols: File in wrong format

– was the 32-bit version of the BerkeleyDB development package, db4-devel-4.3.29-9.fc6.i386.rpm. Putting aside for a moment the odd fact that this particular package from the upstream provider (they of a certain colored hat) is from Fedora Core 6, what I’ve learned about the tangled web of x86_64 32-bit compatibility should have tipped me off that this might be a problem. Instead, because my real job keeps interrupting the purity of my important systems development work I foundered around all day until I happened on this message on the OpenLDAP list archives.

Removing the 32-bit version of the -devel package was easy with yum. Just a yum erase db4-devel-4.3.29-9.fc6.i386 did the trick. After that doing a clean “make” was a snap.

Copyright 2004-2019 Phil Lembo