Created attachment 14162 [details] bundle of patches configuration ------------- prefix="/opt/samba" etc="$prefix/etc" man="$prefix/man" doc="$prefix/doc"; config_options="--enable-fhs\ --prefix=${prefix} \ --sysconfdir=${etc} \ --localstatedir=${prefix}/var \ --with-configdir=${etc} \ --with-piddir=${prefix}/var/run \ --mandir=${man} \ --docdir=${doc} \ --with-pie \ --without-relro \ --with-libiconv=$libiconv \ --without-acl-support \ --without-ads \ --without-ad-dc \ --disable-avahi \ --disable-cups --disable-iprint \ --without-dnsupdate \ --without-gettext \ --disable-glusterfs \ --without-ldap \ --without-ntvfs-fileserver \ --without-pam \ --disable-python \ --without-quotas \ --without-systemd \ --without-winbind \ --disable-symbol-versions \ --fatal-errors"; compilation ----------- Terminates without errors, finally. Patch bundle attached. problems ---------- >/opt/llvm/bin/llvm-objdump -macho -dylib-id -dylibs-used /opt/samba/sbin/smbd The result includes the following problems. #1 /opt/src/samba-4.8.0/bin/default/source3/libpopt-samba3-samba4.dylib (compatibility version 0.0.0, current version 0.0.0) >ls -l /opt/samba/lib/samba/libpopt-samba3-samba4.dylib -rwxr-xr-x 1 root wheel 27232 Apr 25 00:22 /opt/samba/lib/samba/libpopt-samba3-samba4.dylib So, the library was compiled and installed correctly, but the binary still links to the source folder. The same hold for the other linked libraries. #2 /usr/lib/libpam.2.dylib (compatibility version 3.0.0, current version 3.0.0) Still there, despite "--without-pam". #3 /usr/local/opt/gnutls/lib/libgnutls.30.dylib (compatibility version 45.0.0, current version 45.10.0) Still there, despite the absence of "--enable-gnutls". #4 /opt/libressl/lib/libcrypto.43.dylib (compatibility version 44.0.0, current version 44.1.0) Surprise! It would be good to replace gnutls with libressl.