Bug 13408 - linked libraries point to source directory
Summary: linked libraries point to source directory
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.8.0
Hardware: x64 Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-25 10:35 UTC by Ruga
Modified: 2018-04-25 18:08 UTC (History)
1 user (show)

See Also:


Attachments
bundle of patches (90.73 KB, application/zip)
2018-04-25 10:35 UTC, Ruga
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruga 2018-04-25 10:35:28 UTC
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.