Bug 7968 - master fails to build from source
master fails to build from source
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Build
unspecified
x64 Linux
: P3 normal
: ---
Assigned To: Andrew Tridgell
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-22 03:35 UTC by Sean Finney
Modified: 2011-02-23 07:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Finney 2011-02-22 03:35:49 UTC
env CFLAGS="-g -O0" ./configure  --prefix=$MYPREFIX && make && make install
<snip>
[ 564/2397] Compiling lib/util/charset/iconv.c
In file included from ../lib/util/charset/iconv.c:21:
../source4/include/includes.h:54:20: error: talloc.h: No such file or directory
In file included from ../source4/../lib/util/util.h:24,
                 from ../source4/include/includes.h:61,
                 from ../lib/util/charset/iconv.c:21:
../source4/../lib/util/charset/charset.h:139: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:140: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:141: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:142: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:148: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:149: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:150: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:151: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:152: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:153: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:157: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:167: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:199: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:211: error: expected ')' before '*' token
../source4/../lib/util/charset/charset.h:222: error: expected ')' before '*' token
In file included from ../source4/../lib/util/util.h:40,
                 from ../source4/include/includes.h:61,
                 from ../lib/util/charset/iconv.c:21:
../source4/../lib/util/time.h:124: error: expected ')' before '*' token
../source4/../lib/util/time.h:129: error: expected ')' before '*' token
../source4/../lib/util/time.h:134: error: expected ')' before '*' token
In file included from ../source4/../lib/util/util.h:41,
                 from ../source4/include/includes.h:61,
                 from ../lib/util/charset/iconv.c:21:
../source4/../lib/util/data_blob.h:61: error: expected ')' before '*' token
../source4/../lib/util/data_blob.h:68: error: expected ')' before '*' token
../source4/../lib/util/data_blob.h:93: error: expected ')' before '*' token
../source4/../lib/util/data_blob.h:98: error: expected ')' before '*' token
../source4/../lib/util/data_blob.h:122: error: expected ')' before '*' token
../source4/../lib/util/data_blob.h:127: error: expected ')' before '*' token
In file included from ../source4/../lib/util/util.h:44,
                 from ../source4/include/includes.h:61,
                 from ../lib/util/charset/iconv.c:21:
../source4/../lib/util/talloc_stack.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../source4/../lib/util/talloc_stack.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../source4/../lib/util/talloc_stack.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from ../source4/include/includes.h:61,
                 from ../lib/util/charset/iconv.c:21:
../source4/../lib/util/util.h:174: error: expected ')' before '*' token
../source4/../lib/util/util.h:179: error: expected ')' before '*' token
../source4/../lib/util/util.h:187: error: expected ')' before '*' token
../source4/../lib/util/util.h:196: error: expected ')' before '*' token
../source4/../lib/util/util.h:211: error: expected ')' before '*' token
../source4/../lib/util/util.h:221: error: expected ')' before '*' token
../source4/../lib/util/util.h:264: error: expected ')' before '*' token
../source4/../lib/util/util.h:274: error: expected ')' before '*' token
../source4/../lib/util/util.h:290: error: expected ')' before '*' token
../source4/../lib/util/util.h:312: error: expected ')' before '*' token
../source4/../lib/util/util.h:320: error: expected ')' before '*' token
../source4/../lib/util/util.h:329: error: expected ')' before '*' token
../source4/../lib/util/util.h:335: error: expected ')' before '*' token
../source4/../lib/util/util.h:343: error: expected ')' before '*' token
../source4/../lib/util/util.h:431: error: expected ')' before '*' token
../source4/../lib/util/util.h:436: error: expected ')' before '*' token
../source4/../lib/util/util.h:444: error: expected ')' before '*' token
../source4/../lib/util/util.h:452: error: expected ')' before '*' token
../source4/../lib/util/util.h:457: error: expected ')' before '*' token
../source4/../lib/util/util.h:461: error: expected ')' before '*' token
../source4/../lib/util/util.h:471: error: expected ')' before '*' token
../source4/../lib/util/util.h:531: error: expected ')' before '*' token
../source4/../lib/util/util.h:553: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:558: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:561: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:566: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:577: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:584: error: expected declaration specifiers or '...' before 'TALLOC_CTX'
../source4/../lib/util/util.h:654: error: expected ')' before '*' token
../source4/../lib/util/util.h:781: error: expected ')' before '*' token
../source4/../lib/util/util.h:844: error: expected ')' before '*' token
../source4/../lib/util/util.h:846: error: expected ')' before '*' token
../source4/../lib/util/util.h:866: error: expected ')' before '*' token
../lib/util/charset/iconv.c: In function 'smb_register_charset':
../lib/util/charset/iconv.c:116: error: expected expression before 'struct'
../lib/util/charset/iconv.c: At top level:
../lib/util/charset/iconv.c:218: error: expected ')' before '*' token
../lib/util/charset/iconv.c: In function 'smb_iconv_open':
../lib/util/charset/iconv.c:330: warning: return makes pointer from integer without a cast
Waf: Leaving directory `/home/user/samba4/bin'
Build failed:  -> task failed (err #1): 
	{task: cc iconv.c -> iconv_3.o}
make: *** [all] Error 1
Comment 1 Sean Finney 2011-02-22 03:37:43 UTC
FYI $MYPREFIX was out of the standard OS prefix (i.e. under /opt), and was an empty and writable directory.  to make sure i didn't have anything left hanging around in my build tree i did

git pull
rm -rf *
git reset --hard HEAD

(just in case the usual clean -dfx didn't do the trick)
Comment 2 Matthias Dieter Wallnöfer 2011-02-22 03:47:47 UTC
First you have to fix the "talloc" dependency. Do you have a system "libtalloc" installed? If it's not used at all you could try to uninstall it with the result that the builtin one gets used.

> [ 564/2397] Compiling lib/util/charset/iconv.c
> In file included from ../lib/util/charset/iconv.c:21:
> ../source4/include/includes.h:54:20: error: talloc.h: No such file or directory
Comment 3 Sean Finney 2011-02-22 05:03:48 UTC
Hi,

there was a libtalloc2 installed, but not dev headers.  i've removed the shared library just to be sure, and piped the ./configure output into a buffer to check:

Checking for system talloc >= 2.0.5                                             
                : not found 
Checking for system pytalloc-util >= 2.0.5                                      
                : not found 

still, same error.
Comment 4 Matthias Dieter Wallnöfer 2011-02-23 07:27:15 UTC
This should have been fixed by http://gitweb.samba.org/samba.git/?p=samba.git;a=commitdiff;h=110f11d1365367555ebe1cbe3cc8b61b081a4cdd.