Operating System - HP-UX
1829345 Members
1554 Online
109991 Solutions
New Discussion

Compiling Kermit with OpenSSL on HP-UX 11.11

 
George Gallant
New Member

Compiling Kermit with OpenSSL on HP-UX 11.11

I have been trying to compile C-Kermit (8.0.209) with SSL (openssl 0.9.7d) on HP-UX 11.11 using HP ANSI C, but without much success.

Kermit complies without a problem as long as I don't try to link SSL. When I try to recompile and link with SSL I receive errors indicating there are unresolved symbols. OpenSSL compiled and installed with no issues to /usr/local/ssl. This is the output I receive:

# make hpux1100o+openssl
MFLAGS='+ESlit +ESsfc' ; \
KFLAGS="-DCK_AUTHENTICATION -DCK_SSL -I/opt/zlib/include \
-DZLIB -DOPENSSL_097 -I/usr/local/ssl/include \
-DHPUX1100 -D__HP_CURSES \
-Ae -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH +O2 -Wl,-Fw $MFLAGS" ; \
LIBS="-L/usr/local/ssl/lib -lssl -lcrypto \
-L/opt/zlib/lib -lz " \
make "SHELL=/usr/bin/sh" "PATH=/opt/ansic/bin:$PATH" xermit \
KTARGET=${KTARGET:-hpux1100o+openssl} \
"CFLAGS = -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP \
-DCK_CURSES -DCK_WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT \
$KFLAGS $OFLAGS" \
"LNKFLAGS=-s " "LIBS = -lm -lcurses -L/usr/local/ssl/lib \
-lcrypto -lssl "
./wart ckcpro.w ckcpro.c
16 states, 73 actions
cc -DHPUX10 -DDIRENT -DSTERMIOX -DCK_DSYSINI -DHDBUUCP -DCK_CURSES -DCK_
WREFRESH -DTCPSOCKET -DCK_REDIR -DRENAME -DFNFLOAT -DCK_AUTHENTICATION -DCK_SSL
-I/opt/zlib/include -DZLIB -DOPENSSL_097 -I/usr/local/ssl/include -DHPUX1100 -D
__HP_CURSES -Ae -D_HPUX_SOURCE -DCK_ANSIC -DUTIMEH +O2 -Wl,-Fw +ESlit +ESsfc -D
KTARGET=\"hpux1100o+openssl\" -c ckcpro.c
cc -s -o wermit \
ckcmai.o ckclib.o ckutio.o ckufio.o \
ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o \
ckcpro.o ckucmd.o ckuus2.o ckuus3.o \
ckuus4.o ckuus5.o ckuus6.o ckuus7.o \
ckuusx.o ckuusy.o ckuusr.o ckucns.o \
ckudia.o ckuscr.o ckcnet.o ckusig.o \
ckctel.o ckcuni.o ckupty.o ckcftp.o \
ckuath.o ck_crp.o ck_ssl.o -lm -lcurses -L/usr/local/ssl/lib -l
crypto -lssl
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (ckcmai.o) was detect
ed. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unsatisfied symbols:
EVP_rc4 (code)
COMP_CTX_new (code)
HMAC_Init_ex (code)
HMAC_CTX_cleanup (code)
COMP_compress_block (code)
EVP_aes_192_cbc (code)
EVP_rc2_cbc (code)
HMAC_Final (code)
EVP_aes_128_cbc (code)
HMAC_CTX_init (code)
BIO_s_socket (code)
COMP_expand_block (code)
EVP_dss1 (code)
DSA_verify (code)
ERR_load_crypto_strings (code)
EVP_md2 (code)
BIO_f_buffer (code)
EVP_aes_256_cbc (code)
EVP_enc_null (code)
EVP_des_cbc (code)
X509_certificate_type (code)
EVP_des_ede3_cbc (code)
COMP_CTX_free (code)
HMAC_Update (code)
EVP_idea_cbc (code)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

I do strings on the libraries in /usr/local/ssl/lib, I see references to the functions supposedly unresolved.

Any suggestions would be greatly appreciated.


Thanks,

George Gallant

e-mail: george.gallant@dc-uoit.ca

2 REPLIES 2
George Gallant
New Member

Re: Compiling Kermit with OpenSSL on HP-UX 11.11

Please disregard this post. The problem compiling C-Kermit with OpenSSL has been resolved. It turned out that two of the compiler options (-lcrypto -lssl) needed to be switched. Thanks.
Bruno Ganino
Honored Contributor

Re: Compiling Kermit with OpenSSL on HP-UX 11.11

.
Torino (Turin) +2H