Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Bruce Dubbs

Pierre Labastie wrote:

On 02/03/2018 18:45, Pierre Labastie wrote:

On 02/03/2018 18:28, Bruce Dubbs wrote:

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



On February 28, 2018 19:42:25 Pierre Labastie 


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 
  ^~~
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 
   ^~~
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 
#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/




bin/default/include/config.h is the one that is included. So looks like 
CFLAGS are passed to gcc invocation in your case, and not in mine. It'd 
be interesting to check, but you'd need to run "buildtools/bin/waf 
clean", then "buildtools/bin/waf build -v"


Pierre


Arrgh, just seen the typo in the book (I always copy/pasted):
CLFAGS="-I/usr/include/tirpc -ltirpc" ...

I'll try with the right spelling, and fix the book...


I was looking at the systemd version of the book which is correct.  I just 
fixed it.


  -- Bruce

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

On 02/03/2018 18:45, Pierre Labastie wrote:

On 02/03/2018 18:28, Bruce Dubbs wrote:

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



On February 28, 2018 19:42:25 Pierre Labastie 


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 
  ^~~
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 
   ^~~
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 
#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/




bin/default/include/config.h is the one that is included. So looks like 
CFLAGS are passed to gcc invocation in your case, and not in mine. It'd 
be interesting to check, but you'd need to run "buildtools/bin/waf 
clean", then "buildtools/bin/waf build -v"


Pierre


Arrgh, just seen the typo in the book (I always copy/pasted):
CLFAGS="-I/usr/include/tirpc -ltirpc" ...

I'll try with the right spelling, and fix the book...

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

On 02/03/2018 18:28, Bruce Dubbs wrote:

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



On February 28, 2018 19:42:25 Pierre Labastie 


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 
  ^~~
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 
   ^~~
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 
#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/




bin/default/include/config.h is the one that is included. So looks like 
CFLAGS are passed to gcc invocation in your case, and not in mine. It'd 
be interesting to check, but you'd need to run "buildtools/bin/waf 
clean", then "buildtools/bin/waf build -v"


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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Bruce Dubbs

Pierre Labastie wrote:

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



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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 
   ^~~
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.


Interesting.  I had to make a minor change to put quotes around "extern 
void __socket_wrapper_dummy_module_proto(void)" due to the parens, but I 
did get 'fatal error: rpc/rpc.h: No such file or directory'   For some 
reason prefixing with CFLAGS="-I/usr/include/tirpc -ltirpc" did not help.


I will investigate some more.

  -- Bruce

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Bruce Dubbs

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



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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 
#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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

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



On February 28, 2018 19:42:25 Pierre Labastie 


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 
  ^~~
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 
   ^~~
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 
#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.


Pierre

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

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



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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 
  ^~~
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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Bruce Dubbs

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



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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.


  -- Bruce

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

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



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Bruce Dubbs

Pierre Labastie wrote:

On 01/03/2018 06:15, DJ Lucas wrote:
On February 28, 2018 12:46:11 PM CST, Tim Tassonis  
wrote:



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
   ^~~
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.


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

The only thing in my log is:

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

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-03-02 Thread Pierre Labastie

On 01/03/2018 06:15, DJ Lucas wrote:

On February 28, 2018 12:46:11 PM CST, Tim Tassonis  wrote:



On February 28, 2018 19:42:25 Pierre Labastie 
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 
  ^~~
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 
  ^~~
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...


Pierre



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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-02-28 Thread DJ Lucas
On February 28, 2018 12:46:11 PM CST, Tim Tassonis  wrote:
>
>
>On February 28, 2018 19:42:25 Pierre Labastie 
>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 
>> >  ^~~
>>> 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
>> >
>> >
>> >
>> >
>>> A quick search on digital information highway confirms that samba
>4.7.4 does
>>> not properly detect the new tircp/rpcsvc-proto libnsl stuff and has
>fixed this
>>> in 4.7.5.
>> >
>> >
>> >
>> >
>>> I can confirm that samba 4.7.5 builds with latest blfs svn (r19898).
>>
>>
>>
>> Samba is scheduled to be updated to 4.7.5 before 8.2 release. OTOH, I
>had no
>> error building samba, because libnsl was not installed (while
>libtirpc was):
>> the error you see seems to imply that libnsl was installed:
>> ---
>> /usr/include/rpcsvc/yp_prot.h:10:10: fatal error: rpc/rpc.h: No such
>file or
>> directory
>> ---
>> At least, this shows that libnsl should be listed somewhere among
>samba deps...
>
>Yes, I had to install libnsl in order to build exim, so that explains
>my 
>breakage.
>
>Bye
>Tim
>>
>>
>>
>> Pierre
>> --
>> http://lists.linuxfromscratch.org/listinfo/blfs-dev
>> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
>> Unsubscribe: See the above information page
>
>
>
>-- 
>http://lists.linuxfromscratch.org/listinfo/blfs-dev
>FAQ: http://www.linuxfromscratch.org/blfs/faq.html
>Unsubscribe: See the above information page

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

--DJ

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-02-28 Thread Tim Tassonis



On February 28, 2018 19:42:25 Pierre Labastie  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 
>  ^~~

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

>
>
>
>

A quick search on digital information highway confirms that samba 4.7.4 does
not properly detect the new tircp/rpcsvc-proto libnsl stuff and has fixed this
in 4.7.5.

>
>
>
>

I can confirm that samba 4.7.5 builds with latest blfs svn (r19898).




Samba is scheduled to be updated to 4.7.5 before 8.2 release. OTOH, I had no
error building samba, because libnsl was not installed (while libtirpc was):
the error you see seems to imply that libnsl was installed:
---
/usr/include/rpcsvc/yp_prot.h:10:10: fatal error: rpc/rpc.h: No such file or
directory
---
At least, this shows that libnsl should be listed somewhere among samba deps...


Yes, I had to install libnsl in order to build exim, so that explains my 
breakage.


Bye
Tim




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




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


Re: [blfs-dev] Samba 4.7.4 and glibc 2.27 fails to compile

2018-02-28 Thread Pierre Labastie
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 
>   ^~~
> 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
> 
> 
> A quick search on digital information highway confirms that samba 4.7.4 does
> not properly detect the new tircp/rpcsvc-proto libnsl stuff and has fixed this
> in 4.7.5.
> 
> 
> I can confirm that samba 4.7.5 builds with latest blfs svn (r19898).
> 

Samba is scheduled to be updated to 4.7.5 before 8.2 release. OTOH, I had no
error building samba, because libnsl was not installed (while libtirpc was):
the error you see seems to imply that libnsl was installed:
---
/usr/include/rpcsvc/yp_prot.h:10:10: fatal error: rpc/rpc.h: No such file or
directory
---
At least, this shows that libnsl should be listed somewhere among samba deps...

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