On 24/03/2018 23:23, Tim Tassonis wrote: > On 03/24/2018 09:40 PM, Pierre Labastie wrote: >> On 24/03/2018 20:40, Pierre Labastie wrote:
>> >> 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 With those exact same instructions, it compiles for me too (did not try to install). When replacing /opt/samba by /usr in --prefix, I get "Don't install directly under /usr or /usr/local without using the FHS option (--enable-fhs) ERROR: invalid --prefix=/usr value" and configure stops. So I add --enable-fhs and it still compiles... Trying now, instead of exporting PKGCONFIGDIR, to just run PKGCONFIGDIR=/usr/lib/pkgconfig ./configure ... (with prefix=/usr and enable-fhs). Compile OK again. Then (book's instructions without "--enable-selftest" +PKGCONFIGDIR): PKGCONFIGDIR=/usr/lib/pkgconfig ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-piddir=/run/samba --with-pammodulesdir=/lib/security --enable-fhs --without-ad-dc --without-systemd && make Compiles OK. then with --enable-selftest: Configure's OK. Make stops at: [1906/3696] Compiling third_party/socket_wrapper/socket_wrapper.c ../third_party/socket_wrapper/socket_wrapper.c:80:10: fatal error: rpc/rpc.h: No such file or directory #include <rpc/rpc.h> So it is the --enable-selftest which generates the errors. Last try: no --enable-selftest, no PKGCONFIGDIR... Still compiles. So it is the --enable-selftest which brings in the need for specifying CFLAGS and LDFLAGS. Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
