Bug 209707

Summary: net/samba44: install fails due to missing file 'rfc2307.so'
Product: Ports & Packages Reporter: thomas
Component: Individual Port(s)Assignee: Timur I. Bakeyev <timur>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-qa
Priority: --- Flags: bugzilla: maintainer-feedback? (timur)
Version: Latest   
Hardware: Any   
OS: Any   

Description thomas 2016-05-23 09:29:52 UTC
Installation of the port fails with the following error message about a missing file 'rfc2307.so':

# make install
===>  Installing for samba44-4.4.3_1
===>   samba44-4.4.3_1 depends on package: libarchive>=3.1.2 - found
===>   samba44-4.4.3_1 depends on package: py27-dnspython>=1.9.4 - found
===>   samba44-4.4.3_1 depends on package: talloc>=2.1.6 - found
===>   samba44-4.4.3_1 depends on package: tevent>=0.9.28 - found
===>   samba44-4.4.3_1 depends on package: tdb>=1.3.8 - found
===>   samba44-4.4.3_1 depends on package: ldb>=1.1.26 - found
===>   samba44-4.4.3_1 depends on file: /usr/local/bin/python2.7 - found
===>   samba44-4.4.3_1 depends on executable: python2 - found
===>   samba44-4.4.3_1 depends on shared library: libpopt.so - found (/usr/local/lib/libpopt.so)
===>   samba44-4.4.3_1 depends on shared library: libinotify.so - found (/usr/local/lib/libinotify.so)
===>   samba44-4.4.3_1 depends on shared library: libgnutls.so - found (/usr/local/lib/libgnutls.so)
===>   samba44-4.4.3_1 depends on shared library: libsunacl.so - found (/usr/local/lib/libsunacl.so)
===>   samba44-4.4.3_1 depends on shared library: libsunacl.so - found (/usr/local/lib/libsunacl.so)
===>   samba44-4.4.3_1 depends on shared library: libdns_sd.so - found (/usr/local/lib/libdns_sd.so)
===>   samba44-4.4.3_1 depends on shared library: libfam.so.0 - found (/usr/local/lib/libfam.so.0)
===>   samba44-4.4.3_1 depends on shared library: libldap-2.4.so.2 - found (/usr/local/lib/libldap-2.4.so.2)
===>  Checking if samba44 already installed
===>   Registering installation for samba44-4.4.3_1
pkg-static: Unable to access file /usr/ports/net/samba44/work/stage/usr/local/lib/shared-modules/idmap/rfc2307.so: No such file or directory
*** Error code 74

Stop.
make[1]: stopped in /usr/ports/net/samba44
*** Error code 1

Stop.
make: stopped in /usr/ports/net/samba44


I am using the following non-default port config:

# make showconfig
===> The following configuration options are available for samba44-4.4.3_1:
     ACL_SUPPORT=on: File system ACL support
     ADS=off: Active Directory client support
     AD_DC=off: Active Directory Domain Controller support
     CUPS=off: CUPS printing system support
     DEBUG=off: With debug information in the binaries
     DEVELOPER=off: With development support
     DNSUPDATE=off: Dynamic DNS update (require ADS)
     DOCS=on: Build and/or install documentation
     EXP_MODULES=off: Experimental modules
     FAM=on: File Alteration Monitor support
     LDAP=on: LDAP client support
     MANPAGES=on: Build manpages from DOCBOOK templates
     PTHREADPOOL=on: Pthread pool
     QUOTAS=on: Disk quota support
     SYSLOG=on: Syslog logging support
     UTMP=on: UTMP accounting support
====> Options available for the radio DNS: you can only select none or one of them
     NSUPDATE=off: Use samba NSUPDATE utility for AD DC
     BIND99=off: Use bind99 as AD DC DNS server frontend
     BIND910=off: Use bind910 as AD DC DNS server frontend
====> Options available for the radio ZEROCONF: you can only select none or one of them
     AVAHI=off: Zeroconf support via Avahi
     MDNSRESPONDER=on: Zeroconf support via mDNSResponder
===> Use 'make config' to modify these settings
Comment 1 thomas 2016-07-13 10:52:27 UTC
The issue is related to the ADS config item. If I enable the ADS feature, the installation works fine.
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2016-07-13 12:57:00 UTC
(In reply to thomas.apel from comment #1)

Is it still the problem with recent versions? I thought that it was fixed.
Comment 3 thomas 2016-07-13 13:31:07 UTC
(In reply to Timur I. Bakeyev from comment #2)

Yes, the problem still exists with the current 4.4.5 version. Actually, that is why I posted the comment, as I made a new attempt upgrading from 4.3 to 4.4 and I played a bit with the options this time. Result: Installation fails with the above error if ADS is disabled. If ADS is enabled, everything is fine.
Comment 4 Timur I. Bakeyev freebsd_committer freebsd_triage 2017-10-30 04:28:26 UTC
I believe recent port versions don't have this problem