On 02/03/2018 17:38, Bruce Dubbs wrote:
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...

I've built samba-4.7.5 without problem using the CFLAGS now in the book. Perhaps tirpc needs to be promoted to required for samba.

That's not the problem: I do have tirpc installed (actually, I have everything in the book installed...). But rpc/rpc.h is not found because it is in the tirpc subdirectory, and -I/usr/include/tirpc is not passed to gcc (at least I think so: I've run "buildtools/bin/waf -v -j1", and got:

[1900/3665] Compiling lib/socket_wrapper/socket_wrapper.c
17:47:37 runner /usr/bin/gcc -fPIC -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -fstack-protector -DSTATIC_socket_wrapper_MODULES=NULL -DSTATIC_socket_wrapper_MODULES_PROTO=extern void __socket_wrapper_dummy_module_proto(void) -MD -Idefault/lib/socket_wrapper -I../lib/socket_wrapper -Idefault/include/public -I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib -Idefault/source4/lib -I../source4/lib -Idefault/source4/include -I../source4/include -Idefault/include -I../include -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/socket_wrapper/socket_wrapper.c -c -o default/lib/socket_wrapper/socket_wrapper_1.o ../lib/socket_wrapper/socket_wrapper.c:80:10: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>
          ^~~~~~~~~~~
compilation terminated.


$ find /usr/include -name rpc.h
/usr/include/tirpc/rpc/rpc.h
/usr/include/event2/rpc.h
/usr/include/gssrpc/rpc.h

same here


The only thing in my log is:

[1900/3665] Compiling lib/socket_wrapper/socket_wrapper.c


It would be interesting to type the above command in your build directory, but I guess you have deleted it.

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