droe / sslsplit

Transparent SSL/TLS interception
https://www.roe.ch/SSLsplit
BSD 2-Clause "Simplified" License
1.73k stars 327 forks source link

Doesn't compile with openssl 1.1.0g on Ubuntu #245

Closed LeosSire closed 4 years ago

LeosSire commented 5 years ago

Evening,

Trying to compile on a fresh version of Ubuntu,

Getting the below issue, it seems to compile all the individual objects but on the overall final compile seems to fault.


Via pkg-config: openssl libevent libevent_openssl libevent_pthreads LIBPCAP_BASE: /usr LIBNET_BASE: /usr Build options: -DHAVE_NETFILTER Build info: V:DIR N:06fdafa uname -a: Linux joe-Inspiron-N5030 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cachetgcrt.o cachetgcrt.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o logbuf.o logbuf.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o ssl.o ssl.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o logpkt.o logpkt.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cert.o cert.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o log.o log.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cachefkcrt.o cachefkcrt.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o pxysslshut.o pxysslshut.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o opts.o opts.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o sys.o sys.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o thrqueue.o thrqueue.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o proc.o proc.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -D"BUILD_PKGNAME=\"sslsplit\"" -D"BUILD_VERSION=\"master\"" -D"BUILD_DATE=\"2019-02-01\"" -D"BUILD_INFO=\"V:DIR N:06fdafa\"" -D"BUILD_FEATURES=\"-DHAVE_NETFILTER\"" -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o build.o build.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o privsep.o privsep.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o nat.o nat.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cachemgr.o cachemgr.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o base64.o base64.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cachedsess.o cachedsess.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o main.o main.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o url.o url.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o util.o util.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cache.o cache.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o pxythrmgr.o pxythrmgr.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o logger.o logger.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o pxyconn.o pxyconn.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o proxy.o proxy.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o dynbuf.o dynbuf.c cc -c -isystem/usr/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_NETFILTER -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -O -o cachessess.o cachessess.c cc -L/usr/lib -L/usr/lib -pthread -o sslsplit cachetgcrt.o logbuf.o ssl.o logpkt.o cert.o log.o cachefkcrt.o pxysslshut.o opts.o sys.o thrqueue.o proc.o build.o privsep.o nat.o cachemgr.o base64.o cachedsess.o main.o url.o util.o cache.o pxythrmgr.o logger.o pxyconn.o proxy.o dynbuf.o cachessess.o -lnet -lpcap -lssl -lcrypto -levent_openssl -levent_pthreads -levent /usr/bin/ld: warning: libssl.so.1.1, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libevent_openssl.so, may conflict with libssl.so.1.0.0 /usr/bin/ld: warning: libcrypto.so.1.1, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libevent_openssl.so, may conflict with libcrypto.so.1.0.0 sed -e 's,/usr/local,/usr/local,' -e 's,@@VERSION@@,master,' -e 's,@@DATE@@,2019-02-01,' sslsplit.conf sed -e 's,/usr/local,/usr/local,' -e 's,@@VERSION@@,master,' -e 's,@@DATE@@,2019-02-01,' sslsplit.1 sed -e 's,/usr/local,/usr/local,' -e 's,@@VERSION@@,master,' -e 's,@@DATE@@,2019-02-01,' sslsplit.conf.5

For build problems, please supply:

Linux joe-Inspiron-N5030 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

LeosSire commented 5 years ago

Solved with

sudo apt-get install libssl-dev

run make clean before the recompile