#48 Need ssldump for slackware

open
nobody
None
5
2007-07-18
2007-07-18
Anonymous
No

I'm using Slackware. i try to compile ssldump but got this error.

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 ssldecode.o ./ssl/ssldecode.c -DOPENSSL -D_BSD_SOURCE=1 -DLINUX -I./base/ -I./null/ -I./ssl/ -Icommon/include/ -I./null/ -I./ssl/ -I/usr/include
./ssl/ssldecode.c: In function `ssl3_generate_export_iv':
./ssl/ssldecode.c:672: error: `MD5_CTX' undeclared (first use in this function)
./ssl/ssldecode.c:672: error: (Each undeclared identifier is reported only once
./ssl/ssldecode.c:672: error: for each function it appears in.)
./ssl/ssldecode.c:672: error: syntax error before "md5"
./ssl/ssldecode.c:675: error: `md5' undeclared (first use in this function)
./ssl/ssldecode.c: In function `ssl3_prf':
./ssl/ssldecode.c:693: error: `MD5_CTX' undeclared (first use in this function)
./ssl/ssldecode.c:693: error: syntax error before "md5"
./ssl/ssldecode.c:706: error: `md5' undeclared (first use in this function)
./ssl/ssldecode.c: In function `ssl_generate_keying_material':
./ssl/ssldecode.c:849: error: `MD5_CTX' undeclared (first use in this function)
./ssl/ssldecode.c:849: error: syntax error before "md5"
./ssl/ssldecode.c:851: error: `md5' undeclared (first use in this function)
make: *** [ssldecode.o] Error 1

so i don't know how to do it work
if u have some advice
reguard thx
note_the_dude@hotmail.com

Discussion

  • Logged In: NO

    I had this issue too on newer Fedora Core versions. To get around it, do
    a 'make clean' then run the configure script with the OpenSSL locations
    specified like this:

    ./configure --with-openssl=/usr/local/openssl-0.9.8e
    --with-openssl-inc=/usr/local/openssl-0.9.8e
    --with-openssl-lib=/usr/local/openssl-0.9.8e
    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... not found.
    configure: warning: compiling without OpenSSL
    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

    Then do your 'make'. You still get some implicit declaration warnings but
    ssldump will build now. I think some of the standard installs of OpenSSL
    on these packaged distros don't include the header files or libraries by
    default. The above example assumes you have downloaded the OpenSSL version
    you want from openssl.org and have extracted and built it. Good luck.