Loha
I was compling on redhat 9
SSL=OpenSSL 0.9.7 31 Dec 2002
Pcap installed:
./configure
loading cache ./config.cache
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 gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached)
/usr/bin/install -c
configuring for linux-gnu
checking for pow in -lm... (cached) yes
checking for PCAP include files... found in /usr/include
checking for PCAP library... found in /usr/lib
checking for OpenSSL include files... found in /usr/include
checking for OpenSSL libraries... found in /usr/lib
checking for pcap_open in -lpcap... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for sys/time.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be
included... (cached) yes
checking size of unsigned short... (cached) 2
checking size of unsigned int... (cached) 4
checking size of unsigned long... (cached) 4
checking size of unsigned long long... (cached) 8
checking for 8-bit clean memcmp... (cached) yes
checking return type of signal handlers... (cached) void
checking for vprintf... (cached) yes
checking for strdup... (cached) yes
creating ./config.status
creating Makefile
make
gcc -g -O2 -DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1
-DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1
-DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4
-DSIZEOF_UNSIGNED_LONG=4 -DSIZEOF_UNSIGNED_LONG_LONG=8
-DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_STRDUP=1 -c
-o ssl.enums.o ./ssl/ssl.enums.c -DOPENSSL
-D_BSD_SOURCE=1 -DLINUX -I./base/ -I./null/
-I./ssl/ -Icommon/include/ -I./null/ -I./ssl/
-I/usr/include
In file included from /usr/include/openssl/ssl.h:179,
from ssl/ssl.enums.c:6:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file
or directory
In file included from /usr/include/openssl/ssl.h:179,
from ssl/ssl.enums.c:6:
/usr/include/openssl/kssl.h:132: parse error before
"krb5_enctype"
/usr/include/openssl/kssl.h:134: parse error before "FAR"
/usr/include/openssl/kssl.h:135: parse error before '}'
token
/usr/include/openssl/kssl.h:147: parse error before
"kssl_ctx_setstring"
/usr/include/openssl/kssl.h:147: parse error before '*'
token
/usr/include/openssl/kssl.h:148: parse error before '*'
token
/usr/include/openssl/kssl.h:149: parse error before '*'
token
/usr/include/openssl/kssl.h:149: parse error before '*'
token
/usr/include/openssl/kssl.h:150: parse error before '*'
token
/usr/include/openssl/kssl.h:151: parse error before
"kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:151: parse error before '*'
token
/usr/include/openssl/kssl.h:153: parse error before
"kssl_cget_tkt"
/usr/include/openssl/kssl.h:153: parse error before '*'
token
/usr/include/openssl/kssl.h:155: parse error before
"kssl_sget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*'
token
/usr/include/openssl/kssl.h:157: parse error before
"kssl_ctx_setkey"
/usr/include/openssl/kssl.h:157: parse error before '*'
token
/usr/include/openssl/kssl.h:159: parse error before
"context"
/usr/include/openssl/kssl.h:160: parse error before
"kssl_build_principal_2"
/usr/include/openssl/kssl.h:160: parse error before
"context"
/usr/include/openssl/kssl.h:163: parse error before
"kssl_validate_times"
/usr/include/openssl/kssl.h:163: parse error before "atime"
/usr/include/openssl/kssl.h:165: parse error before
"kssl_check_authent"
/usr/include/openssl/kssl.h:165: parse error before '*'
token
/usr/include/openssl/kssl.h:167: parse error before
"enctype"
In file included from ssl/ssl.enums.c:6:
/usr/include/openssl/ssl.h:907: parse error before
"KSSL_CTX"
/usr/include/openssl/ssl.h:929: parse error before '}'
token
make: *** [ssl.enums.o] Error 1
Logged In: YES
user_id=936699
I am facing a similar problem on RedHat9 Kernel 2.4.20-24.9
I have these RedHat supplied RPMs installed:
mod_ssl-2.0.40-21.9
openssl-devel-0.9.7a-20
openssl-0.9.7a-20
pam_krb5-1.60-1
krb5-devel-1.2.7-14
krb5-libs-1.2.7-14
libpcap-0.7.2-1
tcpdump-3.7.2-1.9.1
[root@xxxx ssldump-0.9b3]# ./configure
loading cache ./config.cache
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 gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler...
no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install...
(cached) /usr/bin/install -c
configuring for linux-gnu
checking for pow in -lm... (cached) yes
checking for PCAP include files... found in /usr/include
checking for PCAP library... found in /usr/lib
checking for OpenSSL include files... found in /usr/include
checking for OpenSSL libraries... found in /usr/lib
checking for pcap_open in -lpcap... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for sys/time.h... (cached) yes
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking whether time.h and sys/time.h may both be
included... (cached) yes
checking size of unsigned short... (cached) 2
checking size of unsigned int... (cached) 4
checking size of unsigned long... (cached) 4
checking size of unsigned long long... (cached) 8
checking for 8-bit clean memcmp... (cached) yes
checking return type of signal handlers... (cached) void
checking for vprintf... (cached) yes
checking for strdup... (cached) yes
creating ./config.status
creating Makefile
[root@xxxx ssldump-0.9b3]# make
gcc -g -O2 -DHAVE_LIBM=1 -DHAVE_SYS_TIME_H=1 -
DSTDC_HEADERS=1 -DTIME_WITH_SYS_TIME=1 -
DSIZEOF_UNSIGNED_SHORT=2 -DSIZEOF_UNSIGNED_INT=4 -
DSIZEOF_UNSIGNED_LONG=4 -
DSIZEOF_UNSIGNED_LONG_LONG=8 -DRETSIGTYPE=void -
DHAVE_VPRINTF=1 -DHAVE_STRDUP=1 -c -o
ssl.enums.o ./ssl/ssl.enums.c -DOPENSSL -
D_BSD_SOURCE=1 -DLINUX -I./base/ -I./null/ -I./ssl/ -
Icommon/include/ -I./null/ -I./ssl/ -I/usr/include
In file included from /usr/include/openssl/ssl.h:179,
from ssl/ssl.enums.c:6:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or
directory
In file included from /usr/include/openssl/ssl.h:179,
from ssl/ssl.enums.c:6:
/usr/include/openssl/kssl.h:134: parse error
before "krb5_enctype"
/usr/include/openssl/kssl.h:136: parse error before '*' token
/usr/include/openssl/kssl.h:137: parse error before '}' token
/usr/include/openssl/kssl.h:149: parse error
before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:152: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error
before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error
before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error
before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error
before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: parse error before '*' token
/usr/include/openssl/kssl.h:161: parse error before "context"
/usr/include/openssl/kssl.h:162: parse error
before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: parse error before "context"
/usr/include/openssl/kssl.h:165: parse error
before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: parse error before "atime"
/usr/include/openssl/kssl.h:167: parse error
before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: parse error before '*' token
/usr/include/openssl/kssl.h:169: parse error before "enctype"
In file included from ssl/ssl.enums.c:6:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [ssl.enums.o] Error 1
Logged In: YES
user_id=936699
A bit of googling and poking about led me to do this:
export CPPFLAGS=-I/usr/kerberos/include
export LDFLAGS=-L/usr/kerberos/lib
and with this it seems to compile ;-)