droe / sslsplit

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

[solved] Problems to build sslsplit #306

Open Jmmx1237 opened 2 years ago

Jmmx1237 commented 2 years ago

Hi, I have some trouble to make and build sslsplit.

For build problems, please supply:

libevent | 2.1.12 | 2.23MiB | OPNsense | BSD3CLAUSE | API for executing callback functions on events or timeouts

OpenSSL OpenSSL 1.1.1m-freebsd 14 Dec 2021

uname -a FreeBSD OPNsense 13.0-STABLE FreeBSD 13.0-STABLE stable/22.1-n248071-cafeb6ce414 SMP amd64

root@OPNsense:~/sslsplit # make gmake[1]: Entering directory '/root/sslsplit' GNUmakefile:213: pkg-config not found - guessing paths/flags for dependencies

SSLsplit 0.5.5-12-ge17de84

Report bugs at https://github.com/droe/sslsplit/issues/new Please supply this header for diagnostics when reporting build issues Before reporting bugs, make sure to try the latest develop branch first: % git clone -b develop https://github.com/droe/sslsplit.git

Via pkg-config: OPENSSL_BASE: /usr/local LIBEVENT_BASE: /usr/local LIBPCAP_BASE: /usr LIBNET_BASE: /usr/local Build options: -DHAVE_IPFW -DHAVE_PF Build info: V:GIT uname -a: FreeBSD OPNsense13.0-STABLE FreeBSD 13.0-STABLE stable/22.1-n248071-cafeb6ce414 SMP amd64

cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o base64.o base64.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -D"BUILD_PKGNAME=\"sslsplit\"" -D"BUILD_VERSION=\"0.5.5-12-ge17de84\"" -D"BUILD_DATE=\"2022-05-12\"" -D"BUILD_INFO=\"V:GIT\"" -D"BUILD_FEATURES=\"-DHAVE_IPFW -DHAVE_PF\"" -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o build.o build.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cache.o cache.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachedsess.o cachedsess.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachefkcrt.o cachefkcrt.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachemgr.o cachemgr.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachessess.o cachessess.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachetgcrt.o cachetgcrt.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cert.o cert.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o dynbuf.o dynbuf.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o log.o log.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logbuf.o logbuf.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logger.o logger.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logpkt.o logpkt.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o main.o main.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o nat.o nat.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o opts.o opts.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o privsep.o privsep.c privsep.c:199:13: warning: '_Generic' is a C11 extension [-Wc11-extensions] filedir = dirname(fn2); /usr/include/libgen.h:62:20: note: expanded from macro 'dirname'

define dirname(x) generic(x, const char *, old_dirname, dirname)(x)

                    ^

/usr/include/sys/cdefs.h:321:2: note: expanded from macro '__generic' _Generic(expr, t: yes, default: no) ^ 1 warning generated. cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proc.o proc.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o proxy.o proxy.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxyconn.o pxyconn.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxythrmgr.o pxythrmgr.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o ssl.o ssl.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o sys.o sys.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o thrqueue.o thrqueue.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o url.o url.c cc -c -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/include -D_GNU_SOURCE -D"PKGLABEL=\"SSLsplit\"" -DHAVE_IPFW -DHAVE_PF -g -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o util.o util.c cc -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/lib -pthread -o sslsplit base64.o build.o cache.o cachedsess.o cachefkcrt.o cachemgr.o cachessess.o cachetgcrt.o cert.o dynbuf.o log.o logbuf.o logger.o logpkt.o main.o nat.o opts.o privsep.o proc.o proxy.o pxyconn.o pxythrmgr.o ssl.o sys.o thrqueue.o url.o util.o -lssl -lcrypto -lz -levent -levent_openssl -levent_pthreads -lnet -lpcap sed -e 's,/usr/local/etc/sslsplit,/usr/local/etc/sslsplit,' -e 's,@@VERSION@@,0.5.5-12-ge17de84,' -e 's,@@DATE@@,2022-05-12,' sslsplit.conf sed -e 's,/usr/local/etc/sslsplit,/usr/local/etc/sslsplit,' -e 's,@@VERSION@@,0.5.5-12-ge17de84,' -e 's,@@DATE@@,2022-05-12,' sslsplit.1 sed -e 's,/usr/local/etc/sslsplit,/usr/local/etc/sslsplit,' -e 's,@@VERSION@@,0.5.5-12-ge17de84,' -e 's,@@DATE@@,2022-05-12,' sslsplit.conf.5 gmake[1]: Leaving directory '/root/sslsplit'

Jmmx1237 commented 2 years ago

Solved by -> pkg install sslsplit

I don't know exactly why the building of the packages is not working!?