[Samba] Trouble building 4.2rc4 on FreeBSD

Russell Poyner russell.poyner at wisc.edu
Thu Feb 12 09:56:03 MST 2015


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

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



More information about the samba mailing list