[Date Prev][Date Next] [Chronological] [Thread] [Top]

can't compile 2.1.16 on Redhat 9. More info.



I'm still unable to compile 2.1.16 on Redhat 9.  Below is my configure line 
and config.log after the failure.  By the way, this happens either with the 
Redhat-supplied openssl or one built from scratch.  

Any pointers would be greatly appreciated, as I don't claim expert status in 
the area of debugging gcc and libtool errors and the like.  

In short, the 'configure' process can't find the ssl header files, no matter 
where I put them!  This also happens if I add a '-I/usr/include' or a 
'-I/usr/include/openssl' to the CPPFLAGS.  I've also tried using 
'--with-tls=openssl' instead of having it detected automatically.  I've tried 
a bunch of semantical changes, all with similar results.  I've also tried 
configuring without the --with-tls flag, which then (of course) disables tls 
altogether, and I've tried compiling with nothing else *but* the --with-tls 
flag - with the same result. 

[jonesy@pengo openldap]# env CPPFLAGS="-I/usr/local/BerkeleyDB.4.1/include" 
./configure --enable-crypt --enable-bdb --enable-ldap --enable-rewrite 
--enable-rlookups --enable-phonetic --enable-syslog --with-tls 
--enable-wrappers  ---with-cyrus-sasl
Copyright 1998-2003 The OpenLDAP Foundation,  All Rights Reserved.
        Restrictions apply, see COPYRIGHT and LICENSE files.
Configuring OpenLDAP 2.1.16-Release ...
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
......
checking types of arguments for select()... int,fd_set *,struct timeval *
checking for regex.h... yes
checking for library containing regfree... none required
checking for compatible POSIX regex... yes
checking for sys/uuid.h... no
checking to see if -lrpcrt4 is needed for win32 UUID support... no
checking for res_query... no
checking for __res_query... no
checking for res_query in -lbind... no
checking for __res_query in -lbind... no
checking for res_query in -lresolv... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking for gai_strerror... yes
checking for inet_ntop... yes
checking INET6_ADDRSTRLEN... yes
checking struct sockaddr_storage... yes
checking for sys/un.h... yes
checking for openssl/ssl.h... no
checking for ssl.h... no
configure: error: Could not locate TLS/SSL package

I made sure to run 'updatedb' before I did this to make sure things were where 
I thought they were:

[jonesy@pengo openldap]# locate ssl.h
/usr/share/doc/pyOpenSSL-0.5.1/html/openssl-ssl.html
/usr/share/doc/pyOpenSSL-0.5.1/html/openssl.html
/usr/share/gtk-doc/html/gnome-vfs/gnome-vfs-ssl.html
/usr/include/ssl.h
/usr/include/openssl/kssl.h
/usr/include/openssl/ssl.h
/usr/local/openssl-0.9.7a/include/openssl/kssl.h
/usr/local/openssl-0.9.7a/include/openssl/ssl.h
/usr/local/openssl-0.9.7a/ssl/kssl.h
/usr/local/openssl-0.9.7a/ssl/ssl.h
/usr/local/ssl/include/openssl/ssl.h
/usr/local/ssl/include/openssl/kssl.h

Why are these things not being found?

Here's my config.log:

.....
configure:3077: checking for Cygwin environment
configure:3093: cc -c  -I/usr/local/BerkeleyDB.4.1/include conftest.c 1>&5
configure: In function `main':
configure:3089: `__CYGWIN32__' undeclared (first use in this function)
configure:3089: (Each undeclared identifier is reported only once
configure:3089: for each function it appears in.)
configure: failed program was:
#line 3082 "configure"
#include "confdefs.h"
                                                                                                                                                             
.......
                                                                                                                                                             
; return 0; }
configure:6700: checking for shl_load in -ldld
configure:6719: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -ldld   1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 6708 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char shl_load();
                                                                                                                                                             
int main() {
shl_load()
; return 0; }
configure:6738: checking for dlopen
configure:6767: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c  1>&5
/tmp/ccu7rkJp.o(.text+0xf): In function `main':
/usr/local/openldap/configure:6761: undefined reference to `dlopen'
collect2: ld returned 1 exit status
configure: failed program was:
#line 6743 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char dlopen(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dlopen();
char (*f)();
                                                                                                                                                             
........                                        
int main() {
afopen()
; return 0; }
configure:8429: checking for EBCDIC
configure:8444: cc -E -I/usr/local/BerkeleyDB.4.1/include conftest.c 
>/dev/null 2>conftest.out
configure:8438:38: __ASCII__/generate_error.h: No such file or directory
configure: failed program was:
#line 8435 "configure"
#include "confdefs.h"
                                                                                                                                                             
..........
                                    
int main() {
sigset()
; return 0; }
configure:9084: checking for winsock
configure:9106: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -ldl  -lws2_32 1>&5
configure:9091: syntax error at '@' token
configure:9091: parse error before numeric constant
configure:9092: syntax error at '@' token
configure:9092: parse error before numeric constant
configure:9093: syntax error at '@' token
configure:9093: parse error before numeric constant
configure:9094: syntax error at '@' token
configure:9094: parse error before numeric constant
configure: In function `main':
configure:9098: syntax error at '@' token
configure:9098: `socket' undeclared (first use in this function)
configure:9098: (Each undeclared identifier is reported only once
configure:9098: for each function it appears in.)
configure:9098: parse error before numeric constant
configure:9099: syntax error at '@' token
configure:9099: `select' undeclared (first use in this function)
configure:9100: syntax error at '@' token
configure:9100: `closesocket' undeclared (first use in this function)
configure:9101: syntax error at '@' token
configure:9101: `gethostname' undeclared (first use in this function)
configure: failed program was:
#line 9089 "configure"
#include "confdefs.h"
                                                                                                                                                             
                        char socket@12();
                        char select@20();
                        char closesocket@4();
                        char gethostname@8();
                                                                                                                                                             
int main() {
                                                                                                                                                             
                        socket@12();
                        select@20();
                        closesocket@4();
                        gethostname@8();
                                                                                                                                                             
; return 0; }

.................

configure:10106: checking for res_query in -lresolv
configure:10125: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -lresolv  -ldl  1>&5
configure:10224: checking for getaddrinfo
configure:10253: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -lresolv -ldl  1>&5
configure:10224: checking for getnameinfo
configure:10253: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -lresolv -ldl  1>&5
configure:10224: checking for gai_strerror
configure:10253: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -lresolv -ldl  1>&5
configure:10224: checking for inet_ntop
configure:10253: cc -o conftest -g -O2 -I/usr/local/BerkeleyDB.4.1/include  
conftest.c -lresolv -ldl  1>&5
configure:10285: checking INET6_ADDRSTRLEN
configure:10316: checking struct sockaddr_storage
configure:10334: cc -c -g -O2 -I/usr/local/BerkeleyDB.4.1/include conftest.c 
1>&5
configure:10365: checking for sys/un.h
configure:10375: cc -E -I/usr/local/BerkeleyDB.4.1/include conftest.c 
>/dev/null 2>conftest.out
configure:11023: checking for openssl/ssl.h
configure:11033: cc -E -I/usr/local/BerkeleyDB.4.1/include conftest.c 
>/dev/null 2>conftest.out
In file included from /usr/include/openssl/ssl.h:179,
                 from configure:11029:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
configure: failed program was:
#line 11028 "configure"
#include "confdefs.h"
#include <openssl/ssl.h>
configure:11023: checking for ssl.h
configure:11033: cc -E -I/usr/local/BerkeleyDB.4.1/include conftest.c 
>/dev/null 2>conftest.out
In file included from /usr/include/ssl.h:179,
                 from configure:11029:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
configure: failed program was:
#line 11028 "configure"
#include "confdefs.h"
#include <ssl.h>