On 03/24/2018 09:40 PM, Pierre Labastie wrote:
On 24/03/2018 20:40, Pierre Labastie wrote:
On 24/03/2018 14:20, [email protected] wrote:
Hi,

On Sat, 24 Mar 2018, Ryan Marsaw wrote:

On Fri, 23 Mar 2018, Pierre Labastie wrote:

On 23/03/2018 20:22, Ryan Marsaw wrote:

Samba 4.8.0 requires libtirpc.  Without it, the configuration stage
fails with the following:

This is related to the same issue involving rpcsvc-proto.  One of the
dependencies of Samba is libnsl, which itself requires rpcsvc-proto and
libtirpc.  libnsl pulls in libtirpc. However, the former is not a
required dependency, while the latter is.

Hmm, the question is whether all those libraries are required, or only
recommended. That is, is there an option to disable them somehow, or should
they be present unconditionally for the configuration to succeed?

 From what I can see, there is no option to disable libtirpc from Samba.
Those libraries must be on the system, otherwise there's an error at
configuration stage.
I came to the same conclusion. In earlier Samba versions it was possible to
disable those, but with 4.8.0 I did not find a way. Examples:
--without-quotas removed the libtirpc dependency in the past and
--without-ads removed the openldap dependency in the past for me.

Without rpcsvc-proto the usage of rpcgen will fail in the build process 
nowadays.

Uwe

Thank you all for your contributions. IIUC, libtirpc and rpcsvc-proto are both
required (cannot be disabled), while libnsl is just optional (to use nis).
I'll promote libtirpc to required. At the same time, I'll change the command
to add LDFLAGS.


Done at revision 19997
Pierre

PS Tim, I'm still looking for what may be different on your system and on
mine, allowing you to compile without setting xFLAGS, while I need to. Do you
use systemd?

Not really, no, systemd is the reason I made my own distribution....


I have compiled samba as follows:

CC=gcc export CC

export PRIVATE_DIR=/var/opt/samba/private
export PKGCONFIGDIR=/usr/lib/pkgconfig

./configure                             \
    --prefix=/opt/samba                 \
    --sysconfdir=/etc/opt/samba         \
    --localstatedir=/var/opt/samba      \
    --with-piddir=/run/samba            \
    --with-pammodulesdir=/lib/security  \
    --without-systemd                   \
    --without-ad-dc \
    --localedir=/usr/share/locale \
    --with-logfilebase=/var/log/samba  \
    --with-sockets-dir=/run/samba \
    --with-privileged-socket-dir=/var/opt/samba/lib


It compiles and runs without errors I have the following installed:

archive-lib
attr
cap-lib
cups-lib
gnutls-lib
jansson-lib
ldap-lib
ncurses
nsl-lib
openssl-lib
pam
perl
perl-yapp-parser
popt-lib
pycrypto
python
talloc-lib
tdb-lib
zlib

Bye
Tim












--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to