On 02/03/2018 16:54, Pierre Labastie wrote:
On 01/03/2018 06:15, DJ Lucas wrote:
On February 28, 2018 12:46:11 PM CST, Tim Tassonis <st...@decentral.ch> wrote:


On February 28, 2018 19:42:25 Pierre Labastie <pierre.labas...@neuf.fr>
wrote:


On 28/02/2018 19:11, Tim Tassonis wrote:

Hi all




samba 4.7.4 fails to compile at my place due to the removal of the
rpc stuff
in glibc 2.27:


[1292/3607] Compiling
default/source3/librpc/gen_ndr/ndr_open_files.c
In file included from ../source3/include/includes.h:113:0,
                 from
default/source3/librpc/gen_ndr/ndr_open_files.c:3:
/usr/include/rpcsvc/yp_prot.h:10:10: fatal error: rpc/rpc.h: No such
file or
directory
#include <rpc/rpc.h>
          ^~~~~~~~~~~
compilation terminated.
Waf: Leaving directory `/lgl-bld/samba-4.7.4/bin'
Build failed:  -> task failed (err #1):
    {task: cc ndr_open_files.c -> ndr_open_files_3.o}
make: *** [Makefile:8: all] Error 1

[...]
 >> [...]

I ran into it too, without libnsl. CFLAGS="-I/usr/include/tirpc -ltirpc" ./configure.... is good enough to get around it.


Not always... With everything installed and using the CFLAGS=... above, I still get an error, but not at the same place as above:
----------------
[1900/3665] Compiling lib/socket_wrapper/socket_wrapper.c
../lib/socket_wrapper/socket_wrapper.c:80:10: fatal error: rpc/rpc.h: No such file or directory
  #include <rpc/rpc.h>
           ^~~~~~~~~~~
compilation terminated.
Waf: Leaving directory `/sources/samba/samba-4.7.5/bin'
Build failed:  -> task failed (err #1):
         {task: cc socket_wrapper.c -> socket_wrapper_1.o}
-----------------
Note that all compilations in the default/source3/librpc directory pass, although I've checked, using waf with verbose mode, that the CFLAGS is not passed to gcc. There is another mechanism going on in 4.7.5.

Problem is now with lib/socket_wrapper. I've tried to pass CFLAGS to the make command, to no avail...


Note that socket_wrapper is only compiled if --enable-selftest is passed to configure...

Pierre

--
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