Pierre Labastie wrote:
On 02/03/2018 18:00, Bruce Dubbs wrote:
Pierre Labastie wrote:
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...

That may be, I haven't checked.  But is it relevant.  I did pass --enable-selftest and socket_wrapper.c built fine for me.


I wrote this before reading your message. I agree it is not relevant to your answer...
But:
There is this code:
#ifdef HAVE_RPC_RPC_H
#include <rpc/rpc.h>
#endif

If for some reason HAVE_RPC_RPC_H is not defined in your case, nothing tries to load this file, so that might explain why it compiles for you.

I still have the build directory. There are lots of entries (almost 1000) in bin/config.log with

#define HAVE_RPC_RPC_H 1

Other places bin/c4che/default.cache.py, bin/default/include/config.h, and bin/c4che/default.cache.py/

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