Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
Configuring OpenLDAP 2.4.38-Release ... checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking configure arguments... done checking for ar... ar checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/opt/rpmbuild/BUILD/openldap-2.4.38': configure: error: C compiler cannot create executables See `config.log' for more details.
Using the following options with ./configure: $ ./configure --disable-dependency-tracking --enable-ldap --enable-debug --prefix=/usr/local/openldap --libdir=/usr/local/openldap/lib64 --with-tls --with-cyrus-sasl --enable-spasswd --enable-overlays --enable-modules --enable-dynamic=no --enable-slapi --enable-meta --enable-crypt
In the config.log seeing the following: configure:5744: $? = 127 configure:5764: checking whether the C compiler works configure:5786: gcc -DOPENLDAP_FD_SETSIZE=4096 -O2 -g -I/usr/local/berkeleydb/include -I/usr/kerberos/include -L/usr/local/berkeleydb/lib64 conftest.c -ldb -ldb-4.6 -ldb46 -ldb-4 -ldb-4-6 -lgcc_s >&5 ./configure: line 5788: gcc: command not found configure:5790: $? = 127 configure:5828: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define OPENLDAP_PACKAGE "OpenLDAP" | #define OPENLDAP_VERSION "2.4.38" | #define LDAP_VENDOR_VERSION 20438 | #define LDAP_VENDOR_VERSION_MAJOR 2 | #define LDAP_VENDOR_VERSION_MINOR 4 | #define LDAP_VENDOR_VERSION_PATCH 38 | #define HAVE_MKVERSION 1 | /* end confdefs.h. */ ... configure:5833: error: in `/opt/rpmbuild/BUILD/openldap-2.4.38': configure:5837: error: C compiler cannot create executables See `config.log' for more details.
Note: gcc is installed (/usr/bin/gcc) and is version 4.4.7
John D. Borresen (Dave) Linux/Unix Systems Administrator MIT Lincoln Laboratory Surveillance Systems Group 244 Wood St Lexington, MA 02420 Ph: (781) 981-1609 Email: john.borresen@ll.mit.edumailto:john.borresen@ll.mit.edu
--On Wednesday, December 11, 2013 12:57 PM -0500 "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu wrote:
Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
./configure: line 5788: gcc: command not found
Seems like it can't find gcc.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
I agree. But checked it is in my PATH.
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Quanah Gibson-Mount Sent: Wednesday, December 11, 2013 1:23 PM To: Borresen, John - 0442 - MITLL; openldap-technical@openldap.org Subject: Re: OPENLDAP BUILD/CONFIGURE
--On Wednesday, December 11, 2013 12:57 PM -0500 "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu wrote:
Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
./configure: line 5788: gcc: command not found
Seems like it can't find gcc.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On Wed, 11 Dec 2013, Borresen, John - 0442 - MITLL wrote:
I agree. But checked it is in my PATH.
Is it compiling outside of your rpmbuild attempt? Let's get that working first.
Once that does work, sounds like it's an issue with the rpm build environment, might be better off asking a rpm-specific list for gotchas you might be encountering (chroot, target architecture, specifying dependencies, whatever)?
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Quanah Gibson-Mount Sent: Wednesday, December 11, 2013 1:23 PM To: Borresen, John - 0442 - MITLL; openldap-technical@openldap.org Subject: Re: OPENLDAP BUILD/CONFIGURE
--On Wednesday, December 11, 2013 12:57 PM -0500 "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu wrote:
Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
./configure: line 5788: gcc: command not found
Seems like it can't find gcc.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra, Inc.
Zimbra :: the leader in open source messaging and collaboration
I may be speaking prematurely, but got it going now. For some reason, even though I built berkeleydb with 64 bit libraries, it created /usr/local/berkeleydb/lib directory (no lib64 directory). When reviewing the config.log for openldap-2.4.38, it showed the following:
LDFLAGS="-L/usr/local/berkeleydb/lib64"
All the *.so, la, a files in the /usr/local/berkeleydb/lib directory are 64-bit files. So, I created a symlink between lib and lib64, and reran it to completion.
That worked.
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Aaron Richton Sent: Wednesday, December 11, 2013 2:30 PM To: Borresen, John - 0442 - MITLL Cc: openldap-technical@openldap.org Subject: RE: OPENLDAP BUILD/CONFIGURE
On Wed, 11 Dec 2013, Borresen, John - 0442 - MITLL wrote:
I agree. But checked it is in my PATH.
Is it compiling outside of your rpmbuild attempt? Let's get that working first.
Once that does work, sounds like it's an issue with the rpm build environment, might be better off asking a rpm-specific list for gotchas you might be encountering (chroot, target architecture, specifying dependencies, whatever)?
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Quanah Gibson-Mount Sent: Wednesday, December 11, 2013 1:23 PM To: Borresen, John - 0442 - MITLL; openldap-technical@openldap.org Subject: Re: OPENLDAP BUILD/CONFIGURE
--On Wednesday, December 11, 2013 12:57 PM -0500 "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu wrote:
Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
./configure: line 5788: gcc: command not found
Seems like it can't find gcc.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra, Inc.
Zimbra :: the leader in open source messaging and collaboration
Playing around after discussing with one of our programmers, we discovered that someone had installed numerous Berkeley DB flavors both from source and rpm (installed in /usr/lib64 and /lib64)??!!
Modifying my LD_LIBRARY_PATH to look in the /usr/local/berkeleydb/lib folder first, I got further...now, it is bombing out with the following:
checking if Berkeley DB version supported by BDB/HDB backends... yes checking for Berkeley DB link (-ldb-4.6)... no checking for Berkeley DB link (-ldb46)... no checking for Berkeley DB link (-ldb-46)... no checking for Berkeley DB link (-ldb-4-6)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... no ...
I had the following set up: LIBS="-ldb -ldb-4.6 -ldb46 -ldb-4 -ldb-4-6 -lgcc_s" export LIBS
But, this was causing the gcc to not be found.
Any suggestions?
-----Original Message----- From: openldap-technical-bounces@OpenLDAP.org [mailto:openldap-technical-bounces@OpenLDAP.org] On Behalf Of Quanah Gibson-Mount Sent: Wednesday, December 11, 2013 1:23 PM To: Borresen, John - 0442 - MITLL; openldap-technical@openldap.org Subject: Re: OPENLDAP BUILD/CONFIGURE
--On Wednesday, December 11, 2013 12:57 PM -0500 "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu wrote:
Attempting to upgrade to OpenLDAP 2.4.38
Receiving the following output :
./configure: line 5788: gcc: command not found
Seems like it can't find gcc.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
Am Wed, 11 Dec 2013 14:22:55 -0500 schrieb "Borresen, John - 0442 - MITLL" John.Borresen@ll.mit.edu:
Playing around after discussing with one of our programmers, we discovered that someone had installed numerous Berkeley DB flavors both from source and rpm (installed in /usr/lib64 and /lib64)??!!
Modifying my LD_LIBRARY_PATH to look in the /usr/local/berkeleydb/lib folder first, I got further...now, it is bombing out with the following:
checking if Berkeley DB version supported by BDB/HDB backends... yes checking for Berkeley DB link (-ldb-4.6)... no checking for Berkeley DB link (-ldb46)... no checking for Berkeley DB link (-ldb-46)... no checking for Berkeley DB link (-ldb-4-6)... no checking for Berkeley DB link (-ldb-4)... no checking for Berkeley DB link (-ldb4)... no checking for Berkeley DB link (-ldb)... no ...
I had the following set up: LIBS="-ldb -ldb-4.6 -ldb46 -ldb-4 -ldb-4-6 -lgcc_s" export LIBS
But, this was causing the gcc to not be found.
Any suggestions?
[...]
Find the correct db.h file. In order to compile with different berkdb versions, i created a /usr/include/db/ directory and a symlink to /usr/include/db.h
-Dieter
openldap-technical@openldap.org