Bug 267472 - net/samba416: fails to install libldb-samba4.so
Summary: net/samba416: fails to install libldb-samba4.so
Status: Closed DUPLICATE of bug 267141
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 16:41 UTC by Laszlo Pusztai
Modified: 2022-11-18 22:06 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
build options (120.47 KB, image/png)
2022-10-31 16:41 UTC, Laszlo Pusztai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Pusztai 2022-10-31 16:41:40 UTC
Created attachment 237763 [details]
build options

Installing Samba 4.16.6 fails to automatically copy libldb-samba4.so to /usr/local/lib/samba4.

I've attached a screen shot showing my build options.

'make install' shows the following errors:

===>   Registering installation for samba416-4.16.6
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/oLschema2ldif - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbdump - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbadd - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbdel - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbedit - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbmodify - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbrename - required shared library libldb-samba4.so not found
(samba416-4.16.6) /usr/ports/net/samba416/work/stage//usr/local/bin/samba-ldbsearch - required shared library libldb-samba4.so not found

Attempting to start the server shows:

Performing sanity check on Samba configuration: FAILED
Starting smbd.
ld-elf.so.1: Shared object "libldb-samba4.so" not found, required by "libsamba-credentials.so.1"
/usr/local/etc/rc.d/samba_server: WARNING: failed to start smbd

The issue can be manually fixed by:

cp /usr/ports/net/samba416/work/stage/usr/local/lib/samba4/private/libldb-samba4.so /usr/local/lib/samba4

I'm on 13.1-RELEASE-p2 GENERIC amd64.
Comment 1 Timur I. Bakeyev freebsd_committer freebsd_triage 2022-11-16 23:42:42 UTC
Thanks for the report, the fix was provided in #267141.

Closing this one as a duplicate.

*** This bug has been marked as a duplicate of bug 267141 ***