Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 617556 - net-fs/samba libs missing ld.so.conf entries
Summary: net-fs/samba libs missing ld.so.conf entries
Status: RESOLVED DUPLICATE of bug 600592
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-05 05:36 UTC by Stefan Beier
Modified: 2022-07-28 19:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ffmpeg related build.log (build.log,5.43 KB, application/octet-stream)
2017-05-15 12:03 UTC, Stefan Beier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Beier 2017-05-05 05:36:43 UTC
all samba binaries fail on "libsamba-security-samba4.so" with "no such file or directory"

creating an samba.conf in /etc/ld.so.conf.d fixes this issue. Additional failure is, you cannot compile ffmpeg for example. Tested on a fresh installed system.


Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.11.0-gentoo x86_64)
=================================================================
System uname: Linux-4.11.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-4440_CPU_@_3.10GHz-with-gentoo-2.3
KiB Mem:    16387964 total,  12591848 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 05 May 2017 00:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 readline samba sdl seccomp semantic-desktop session spell spice sse sse2 ssh ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" SANE_BACKENDS="net avision" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jonas Stein gentoo-dev 2017-05-12 21:56:55 UTC
Please attach the logfiles
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Problems_at_build_time
I do not understand what you write about ffmpeg in this context.
Comment 2 Stefan Beier 2017-05-15 12:03:34 UTC
Created attachment 472646 [details]
ffmpeg related build.log

Hi,

i'm sorry, if i wasn't able to describe the issue this perfect and im trying again:

Samba compiles fine. No issues. But packages using parts of samba (for example ffmpeg) doesn't compile.

ffmpeg is looking for a working smbclient executable while runnning configure. this fails and after investigating the issue i found the following:

<--snip-->

apollo ~ # smbclient
smbclient: error while loading shared libraries: libsamba-security-samba4.so: cannot open shared object file: No such file or directory
apollo ~ #

<--snip-->

When adding the paths /usr/lib64/samba/ and /usr/lib32/samba/ in /etc/ld.so.conf.d to a new file and running ldconfig ist working again.

Since ffmpeg is using smbclient while building, its necessary, that configure finds the smbclient command working, otherwise it fails.

im not sure, whether the path is missing in the stage3 already or if samba needs to add this. so i added it as samba issue.

i will attach the ffmpeg build.log without the paths set.

thank you and greetings
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2017-05-15 17:03:14 UTC
(In reply to Stefan Beier from comment #2)
> Created attachment 472646 [details]
> ffmpeg related build.log
> 
> Hi,
> 
> i'm sorry, if i wasn't able to describe the issue this perfect and im trying
> again:
> 
> Samba compiles fine. No issues. But packages using parts of samba (for
> example ffmpeg) doesn't compile.
> 
> ffmpeg is looking for a working smbclient executable while runnning
> configure. this fails and after investigating the issue i found the
> following:
> 
> <--snip-->
> 
> apollo ~ # smbclient
> smbclient: error while loading shared libraries:
> libsamba-security-samba4.so: cannot open shared object file: No such file or
> directory
> apollo ~ #
> 
> <--snip-->
> 
> When adding the paths /usr/lib64/samba/ and /usr/lib32/samba/ in
> /etc/ld.so.conf.d to a new file and running ldconfig ist working again.
> 
> Since ffmpeg is using smbclient while building, its necessary, that
> configure finds the smbclient command working, otherwise it fails.
> 
> im not sure, whether the path is missing in the stage3 already or if samba
> needs to add this. so i added it as samba issue.
> 
> i will attach the ffmpeg build.log without the paths set.
> 
> thank you and greetings


ok, so adding to ld.so.conf isn't IMO the way to manage this; the samba build process should add a ' -Wl,-rpath /usr/lib64/samba ' to LDFLAGS when it builds smbclient (likely, when it builds everything in samba).

Now that said, i think the dependency on this lib depends entirely as to what use flags you have set on samba. Since I don't see that in the top post, could you provide the list of USE flags you're building samba with please?
Comment 4 Stefan Beier 2017-05-16 09:07:49 UTC
Here are is the needed information:

[ebuild   R   ~] net-fs/samba-4.5.8::gentoo  USE="acl client cups fam ldap pam winbind -addc -addns -ads -cluster -dmapi -gnutls -gpg -iprint -quota (-selinux) -syslog (-system-heimdal) -system-mitkrb5 -systemd {-test} -zeroconf" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7" 0 KiB

I have tried the stable version (4.2.14) as well, same behavior.

thanks and greetings
Comment 5 Stefan Beier 2017-05-29 07:14:11 UTC
I tracked down the issue a bit more. It is related to bug https://bugs.gentoo.org/show_bug.cgi?id=600592 

since I use distcc as well, I got the same issue. It doesn't matter whether stable or unstable.
Comment 6 Ben Kohler gentoo-dev 2022-07-28 19:24:42 UTC

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