pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sslsplit on MacOS doesn't compile



Hi,

trying to build sslsplit on MacOS (Catalina 10.15.6 (19G2021)) fails
to compile like so:

[...]
clang -L/opt/nb/lib -L/opt/nb/lib/libnet11 -L/opt/nb/lib -L/opt/nb/lib -L/opt/nb/lib/libnet11 -L/opt/nb//lib -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
Undefined symbols for architecture x86_64:
  "_libnet_version", referenced from:
      _main_version in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[...]


(>-2615: gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin)


With the following patches applied to .../security/sslsplit compiling
went fine again:


[ks@himac:/u/NetBSD/pkgsrc/security/sslsplit] Wed 20-09-02 13:53 ttys001
>-2613: cvs diff -R
cvs diff: Diffing .
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/sslsplit/distinfo,v
retrieving revision 1.3
diff -r1.3 distinfo
8c8
< SHA1 (patch-main.c) = b0483283a99cf2aaca5248dcd2a66a64e7d0cd39
---
> SHA1 (patch-main.c) = 5a0515e7bbda4ffc8592be06d53d0d7b92384563
cvs diff: Diffing patches
Index: patches/patch-main.c
===================================================================
RCS file: /cvsroot/pkgsrc/security/sslsplit/patches/patch-main.c,v
retrieving revision 1.1
diff -r1.1 patch-main.c
13c13
< +#if !defined(__OpenBSD__) && !defined(__NetBSD__)
---
> +#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__APPLE__)


Oh, I forgot: I had to use "env LIBPCAP_BASE=/opt/nb bmake"
as configure couldn't find libpcap (sorry, no patch for that).


Kurt



Home | Main Index | Thread Index | Old Index