Derek Nicholls wrote:
gcc -g -O2 -Wall -Wshadow -Wcast-align -Wpointer-arith -I/opt/freeware/include -o stunnel file.o client.o log.o options.o protocol.o network.o resolver.o ssl.o ctx.o verify.o sthreads.o stunnel.o pty.o libwrap.o -lz -ldl -L/opt/freeware/lib -lssl -lcrypto ld: 0711-317 ERROR: Undefined symbol: .SSL_CTX_set_info_callback ld: 0711-317 ERROR: Undefined symbol: .SSL_CTX_sess_set_new_cb ld: 0711-317 ERROR: Undefined symbol: .SSL_CTX_sess_set_get_cb ld: 0711-317 ERROR: Undefined symbol: .SSL_CTX_sess_set_remove_cb ld: 0711-317 ERROR: Undefined symbol: .BIO_set_flags ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1.
What it means is that the linker has found on its path another version of libssl, older than your headers in /opt/freeware/include.
Mike