> I'm attempting to build 4.2.0rc4 on a FreeBSD 10.0 system. There seems
> to be a problem with finding the system headers. Specifically
> lib/texpect/texpect.c seems to not be finding /usr/include/sys/signal.h
>
> Some hints on waf or building samba would be appreciated
Look at bugs 10833 11092 at bugzilla.samba.org. The patch there
most likely is looking for signal.h in just /usr/include.
> Russ Poyner
>
> The errors:
>
> make
> WAF_MAKE=1 python ./buildtools/bin/waf build
> Waf: Entering directory `/root/samba-4.2.0rc4/bin'
> Selected embedded Heimdal build
> [ 680/3738] Compiling lib/texpect/texpect.c
> ../lib/texpect/texpect.c:79:8: error: unknown type name
'sig_atomic_t'
> static sig_atomic_t alarmset = 0;
> ^
> ../lib/texpect/texpect.c:265:20: error: use of undeclared identifier
> 'SIGALRM'
> if (alarmset == SIGALRM) {
> ^
> ../lib/texpect/texpect.c:391:15: warning: assigning to 'char *const
*'
> from 'const char **' discards
> qualifiers in nested pointer types
> [-Wincompatible-pointer-types-discards-qualifiers]
> program_args = poptGetArgs(pc);
> ^ ~~~~~~~~~~~~~~~
> ../lib/texpect/texpect.c:430:22: error: variable has incomplete type
> 'struct sigaction'
> struct sigaction sa;
> ^
> ../lib/texpect/texpect.c:430:12: note: forward declaration of 'struct
> sigaction'
> struct sigaction sa;
> ^
> ../lib/texpect/texpect.c:434:5: error: implicit declaration of function
> 'sigemptyset' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> sigemptyset (&sa.sa_mask);
> ^
> ../lib/texpect/texpect.c:436:5: error: implicit declaration of function
> 'sigaction' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
> sigaction(SIGALRM, &sa, NULL);
> ^
> ../lib/texpect/texpect.c:436:15: error: use of undeclared identifier
> 'SIGALRM'
> sigaction(SIGALRM, &sa, NULL);
> ^
> 1 warning and 6 errors generated.
> Waf: Leaving directory `/root/samba-4.2.0rc4/bin'
> Build failed: -> task failed (err #1):
> {task: cc texpect.c -> texpect_1.o}
> *** Error code 1
>
> Stop.
> make: stopped in /root/samba-4.2.0rc4
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
Tom Schulz
Applied Dynamics Intl.
schulz at adi.com