#2901 configure: error: Please install Samba 4 development libraries.
Closed: Invalid Opened by markgav.

Hi experts,

I'm trying to compile sssd from source. My purpose is to understand deeper the how sssd works.

I installed samba-4.32 from sources.

based on https://wiki.samba.org/index.php/Sssd,

I set and check it:
export PKG_CONFIG_PATH="/usr/local/samba/lib/pkgconfig/:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH="/usr/local/include:$PKG_CONFIG_PATH"

[root@localhost sssd]# find / -name ndr_nbt.pc
/home/admin/samba/bin/default/librpc/ndr_nbt.pc
/usr/local/samba/lib/pkgconfig/ndr_nbt.pc

printenv gives:
PKG_CONFIG_PATH=/usr/local/include:/usr/local/samba/lib/pkgconfig/:

I run:
cd /home/admin; chmod -R 755 /home/admin/sssd; cd /home/admin/sssd; ./configure --disable-cifs-idmap-plugin;make;make install

I have the following error message:
checking for NDR_NBT... no
configure: error: Please install Samba 4 development libraries.
Samba 4 libraries are necessary for building ad and ipa provider.
If you do not want to build these providers it is possible to build SSSD
without them. In this case, you will need to execute configure script
with argument --without-samba

I have no idea, how to contniue. Please assist me to resolve this issue


Does https://fedorahosted.org/sssd/wiki/Contribute help a bit? Feel free to ask on sssd-devel list or stop by #sssd with questions..

Replying to [ticket:2901 markgav]:

Hi experts,

I'm trying to compile sssd from source. My purpose is to understand deeper the how sssd works.

I installed samba-4.32 from sources.

based on https://wiki.samba.org/index.php/Sssd,

I set and check it:
export PKG_CONFIG_PATH="/usr/local/samba/lib/pkgconfig/:$PKG_CONFIG_PATH"
export PKG_CONFIG_PATH="/usr/local/include:$PKG_CONFIG_PATH"

[root@localhost sssd]# find / -name ndr_nbt.pc
/home/admin/samba/bin/default/librpc/ndr_nbt.pc
/usr/local/samba/lib/pkgconfig/ndr_nbt.pc

printenv gives:
PKG_CONFIG_PATH=/usr/local/include:/usr/local/samba/lib/pkgconfig/:

If the env variable PKG_CONFIG_PATH is properly set
then you should be able ind package with command line
e.g.

sh$ pkg-config --libs ndr_nbt
-L/usr/local/samba/lib -lndr-nbt -lndr -lsamba-util -ltevent -ltalloc

If it works with command line utility then it should be detected by configure script.

Since this is not an issue in the code, I think we should close this ticket

There is no response for more that 3 weeks.
So I will close the ticket.
Feel free to re-open it or write mail to sssd-devel at lists.fedorahosted.org

resolution: => worksforme
status: new => closed

Metadata Update from @markgav:
- Issue set to the milestone: NEEDS_TRIAGE

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3942

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata