Bug 11736 - compile error on mac osx 10.11 (El Capitan) in file tevent_req.c error: expected expression mem_ctx,
compile error on mac osx 10.11 (El Capitan) in file tevent_req.c error: expe...
Status: RESOLVED INVALID
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Other
4.3.4
x64 Mac OS X
: P3 normal
: ---
Assigned To: Andrew Bartlett
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-13 21:45 UTC by Dave C
Modified: 2016-03-27 10:47 UTC (History)
1 user (show)

See Also:


Attachments
gzipped config log for samba-4.3.4 on osx 10.11 (258.35 KB, application/x-gzip)
2016-02-16 16:28 UTC, Dave C
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave C 2016-02-13 21:45:56 UTC
../lib/tevent/tevent_req.c:66:8: warning: implicit declaration of function 'talloc_pooled_object' is invalid in C99 [-Wimplicit-function-declaration]
        req = talloc_pooled_object(
              ^
../lib/tevent/tevent_req.c:67:12: error: expected expression
                mem_ctx, struct tevent_req, 2,
                         ^
1 warning and 1 error generated.
Waf: Leaving directory `/Volumes/hd2/src/samba-4.3.4/bin'
Build failed:  -> task failed (err #1): 
	{task: cc tevent_req.c -> tevent_req_1.o}
make: *** [all] Error 1
Comment 1 Christian Ambach 2016-02-16 12:54:15 UTC
Looks like the build picked up a very old talloc.h from a talloc version installed on your system.
Can you attach the bin/config.log?
Comment 2 Dave C 2016-02-16 16:28:23 UTC
Created attachment 11842 [details]
gzipped config log for samba-4.3.4 on osx 10.11
Comment 3 Dave C 2016-03-27 10:47:58 UTC
unsetting CPPFLAGS fixed this error.