-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu compile problem. #15
Comments
Try -lcrypto -lz It worked for me. You need th change src/ Makefile.in from: sbin_PROGRAMS = viewssld to: sbin_PROGRAMS = viewssld It compiled for me in that case. |
Thanks @cryptotiger ! Works great on Ubuntu 16.04. It makes sense to push this change into git as, at the end of the day, viewssld does depend on libcrypto/libz. I wonder how did it compile in the past w/o these options. |
[ 1%] Built target sqlite3 i am using ubuntu 16.04 |
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 to
inflateInit_'//usr/local/lib/libdssl.a(compression.o): In function
dssl_compr_deinit': compression.c:(.text+0xb8): undefined reference to
inflateEnd'//usr/local/lib/libdssl.a(compression.o): In function
dssl_decompress': compression.c:(.text+0x126): undefined reference to
inflate'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.
The text was updated successfully, but these errors were encountered: