Samba build error on Fedora 31 can't find 'nsl'

Steve French smfrench at gmail.com
Wed Oct 30 20:45:53 UTC 2019


On Wed, Oct 30, 2019 at 3:29 PM Steve French <smfrench at gmail.com> wrote:
>
> On Wed, Oct 30, 2019 at 11:55 AM Alexander Bokovoy <ab at samba.org> wrote:
> >
> > On ke, 30 loka 2019, Steve French via samba-technical wrote:
> > > Doing a clean build of Samba on Fedora 31 (master from jra's branch of
> > > a few months ago) I get this error (worked on Ubuntu) not finding
> > > 'nsl' but the package is installed
> > >
> > > ./configure --without-ad-dc --with-system-mitkrb5 ; make
> > >
> > > [144/144] Creating bin/default/lib/krb5_wrap/krb5samba.vscript
> > > [145/147] Compiling lib/replace/cwrap.c
> > > [146/147] Compiling lib/replace/replace.c
> > > [147/147] Linking bin/default/lib/replace/libreplace-samba4.so
> > > /usr/bin/ld: cannot find -lnsl
> > > collect2: error: ld returned 1 exit status
> > >
> > >
> > > # yum whatprovides '*nsl'
> > > Last metadata expiration check: 0:46:54 ago on Wed 30 Oct 2019 10:30:46 AM CDT.
> > > libnsl-2.30-5.fc31.i686 : Legacy support library for NIS
> > > Repo        : fedora
> > > Matched from:
> > > Provide    : libnsl = 2.30-5.fc31
> > >
> > > Package libnsl-2.30-5.fc31.x86_64 is already installed.
> >
> > Please use libnsl2-devel.
> >
> > See https://bugzilla.samba.org/show_bug.cgi?id=13238
>
> libnsl2-devel gets farther but looks like it has some header problems ....
>
> [1414/4178] Compiling lib/util/access.c
> In file included from ../../lib/util/access.c:26:
> ../../lib/replace/system/nis.h:37:10: fatal error: rpc/rpc.h: No such
> file or directory
>    37 | #include <rpc/rpc.h>
>       |          ^~~~~~~~~~~
> compilation terminated.


Nevermind ... fixed ... I was missing some of the samba buiilddeps
that I thought I had (not sure which one rpc.h was in ... it wasn't
obvious to me and there were various rpc.h installed on my system from
three or four other packages - but fixed now)


-- 
Thanks,

Steve



More information about the samba-technical mailing list