Hi all.
When I complied viewssld on ubuntu with option '-lcrypto' I had problem:
utils.c: In function ‘errorlog’:
utils.c:47:3: warning: format not a string literal and no format arguments [-Wformat-security]
syslog(LOG_DAEMON|LOG_ERR, message);
^
utils.c:50:3: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, message);
^
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -g -O2 -o viewssld viewssld.o utils.o -lpcap -lssl -lnet -ldssl -lcrypto
//usr/local/lib/libdssl.a(compression.o): In function dssl_compr_init': compression.c:(.text+0x66): undefined reference toinflateInit_'
//usr/local/lib/libdssl.a(compression.o): In function dssl_compr_deinit': compression.c:(.text+0xb8): undefined reference toinflateEnd'
//usr/local/lib/libdssl.a(compression.o): In function dssl_decompress': compression.c:(.text+0x126): undefined reference toinflate'
collect2: error: ld returned 1 exit status
without option -lcrypto, I had another problem :(
utils.c:47:3: warning: format not a string literal and no format arguments [-Wformat-security]
syslog(LOG_DAEMON|LOG_ERR, message);
^
utils.c:50:3: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, message);
^
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -g -O2 -o viewssld viewssld.o utils.o -lpcap -lssl -lnet -ldssl
/usr/bin/ld: //usr/local/lib/libdssl.a(ssl_decode_hs.o): undefined reference to symbol 'X509_free@@OPENSSL_1.0.0'
//lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [viewssld] Error 1
I used Ubuntu Server 14.04
Any help would be appreciated.
Thanks.
UIT.
Hi all.
When I complied viewssld on ubuntu with option '-lcrypto' I had problem:
utils.c: In function ‘errorlog’:
utils.c:47:3: warning: format not a string literal and no format arguments [-Wformat-security]
syslog(LOG_DAEMON|LOG_ERR, message);
^
utils.c:50:3: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, message);
^
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -g -O2 -o viewssld viewssld.o utils.o -lpcap -lssl -lnet -ldssl -lcrypto
//usr/local/lib/libdssl.a(compression.o): In function
dssl_compr_init': compression.c:(.text+0x66): undefined reference toinflateInit_'//usr/local/lib/libdssl.a(compression.o): In function
dssl_compr_deinit': compression.c:(.text+0xb8): undefined reference toinflateEnd'//usr/local/lib/libdssl.a(compression.o): In function
dssl_decompress': compression.c:(.text+0x126): undefined reference toinflate'collect2: error: ld returned 1 exit status
without option -lcrypto, I had another problem :(
utils.c:47:3: warning: format not a string literal and no format arguments [-Wformat-security]
syslog(LOG_DAEMON|LOG_ERR, message);
^
utils.c:50:3: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stderr, message);
^
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -g -O2 -o viewssld viewssld.o utils.o -lpcap -lssl -lnet -ldssl
/usr/bin/ld: //usr/local/lib/libdssl.a(ssl_decode_hs.o): undefined reference to symbol 'X509_free@@OPENSSL_1.0.0'
//lib/x86_64-linux-gnu/libcrypto.so.1.0.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [viewssld] Error 1
I used Ubuntu Server 14.04
Any help would be appreciated.
Thanks.
UIT.