[Samba] How do I build 4.13 with custom libs?

Andrew Bartlett abartlet at samba.org
Wed Jan 27 04:30:25 UTC 2021


On Mon, 2021-01-25 at 10:35 -0500, Joshua Kramer via samba wrote:
> Hello,
> 
> I've done a couple hours of Google trawling to try to find the answer
> to this simple question, to no avail.
> 
> How do I build Samba 4.13 with libraries in a custom location?  I'm
> building on CentOS 7.  I had to build a number of system libraries
> from scratch (in a custom location) because C7's libraries were too
> old for Samba 4.13.  I'm to the point where I'm actually building
> Samba, but I can't figure out how to get Samba build process to look
> at my custom location instead of the system location for libraries!
> Usually it's --with-lib-path=/custom/path/lib
> --with-include-path=/custom/path/include ... but Samba's
> waf/configure
> script won't accept that.

https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba#Verified_Package_Dependencies

https://git.samba.org/?p=samba.git;a=blob_plain;f=bootstrap/generated-dists/centos7/bootstrap.sh;hb=v4-13-test

These provide the clues on how to get the required packages.

Either if you ran this or built it yourself, to find gnutls in a custom
location use 

PKG_CONFIG_PATH="/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig"

I hope this helps,

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba





More information about the samba mailing list