Make error

Rohit Rajan rohit.rajan at catalyst-us.com
Thu Feb 24 22:52:01 MST 2011


Dear All,

i have cloned the git repository today and tried to build samba 4 from 
configure finished successfully but make gave the following error

i have Python 2.4.3 with CentOS 5.5 (Final)

.[2157/2383] Compiling libds/common/flag_mapping.c
In file included from ../libds/common/flag_mapping.c:23:
../source4/include/includes.h:23:32: error: ../replace/replace.h: No 
such file or directory
../source4/include/includes.h:28:2: error: #error "make sure you have 
removed all config.h files from standalone builds!"
../source4/include/includes.h:29:2: error: #error "the included config.h 
isn't from samba!"
../source4/include/includes.h:33:25: error: system/time.h: No such file 
or directory
../source4/include/includes.h:34:25: error: system/wait.h: No such file 
or directory
../source4/include/includes.h:35:27: error: system/locale.h: No such 
file or directory
In file included from ../source4/include/includes.h:60,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/debug.h:39: error: expected 
specifier-qualifier-list before âuint32_tâ
../source4/../lib/util/debug.h:92: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:94: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:99: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:104: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:110: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:116: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âconstâ
../source4/../lib/util/debug.h:121: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:126: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:127: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âuint32_tâ
../source4/../lib/util/debug.h:128: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:133: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
../source4/../lib/util/debug.h:142: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âvoidâ
In file included from ../source4/../lib/util/util.h:24,
                  from ../source4/include/includes.h:61,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/charset/charset.h:40: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âsmb_ucs2_tâ
../source4/../lib/util/charset/charset.h:75: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âcodepoint_tâ
../source4/../lib/util/charset/charset.h:85: error: expected 
specifier-qualifier-list before âuint16_tâ
../source4/../lib/util/charset/charset.h:131: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âstrcsequal_mâ
../source4/../lib/util/charset/charset.h:132: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âstrequal_mâ
../source4/../lib/util/charset/charset.h:134: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before ânext_tokenâ
../source4/../lib/util/charset/charset.h:143: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âstrhasupperâ
../source4/../lib/util/charset/charset.h:144: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âstrhaslowerâ
../source4/../lib/util/charset/charset.h:148: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpush_ascii_tallocâ
../source4/../lib/util/charset/charset.h:149: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpush_ucs2_tallocâ
../source4/../lib/util/charset/charset.h:150: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpush_utf8_tallocâ
../source4/../lib/util/charset/charset.h:151: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpull_ascii_tallocâ
../source4/../lib/util/charset/charset.h:152: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpull_ucs2_tallocâ
../source4/../lib/util/charset/charset.h:153: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âpull_utf8_tallocâ
../source4/../lib/util/charset/charset.h:157: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âconvert_string_tallocâ
../source4/../lib/util/charset/charset.h:165: error: expected 
declaration specifiers or â...â before âboolâ
../source4/../lib/util/charset/charset.h:178: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before ânext_codepoint_extâ
../source4/../lib/util/charset/charset.h:180: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before ânext_codepointâ
../source4/../lib/util/charset/charset.h:181: error: expected 
declaration specifiers or â...â before âcodepoint_tâ
../source4/../lib/util/charset/charset.h:184: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before ânext_codepoint_convenience_extâ
../source4/../lib/util/charset/charset.h:187: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before ânext_codepoint_convenienceâ
../source4/../lib/util/charset/charset.h:190: error: expected 
declaration specifiers or â...â before âcodepoint_tâ
../source4/../lib/util/charset/charset.h:192: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âtoupper_mâ
../source4/../lib/util/charset/charset.h:193: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âtolower_mâ
../source4/../lib/util/charset/charset.h:194: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âislower_mâ
../source4/../lib/util/charset/charset.h:195: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âisupper_mâ
../source4/../lib/util/charset/charset.h:196: error: expected â)â before 
âc1â
../source4/../lib/util/charset/charset.h:203: error: expected 
declaration specifiers or â...â before âboolâ
../source4/../lib/util/charset/charset.h:206: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âconvert_string_convenienceâ
../source4/../lib/util/charset/charset.h:211: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âconvert_string_talloc_convenienceâ
../source4/../lib/util/charset/charset.h:223: error: expected 
declaration specifiers or â...â before âboolâ
../source4/../lib/util/charset/charset.h:227: error: expected â=â, â,â, 
â;â, âasmâ or â__attribute__â before âsmb_register_charsetâ
In file included from ../source4/../lib/util/util.h:40,
                  from ../source4/include/includes.h:61,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/time.h:41: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âNTTIMEâ
../source4/../lib/util/time.h:67: error: expected â)â before ântâ
../source4/../lib/util/time.h:73: error: expected â)â before â*â token
../source4/../lib/util/time.h:78: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânull_timeâ
../source4/../lib/util/time.h:83: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânull_nttimeâ
../source4/../lib/util/time.h:89: error: expected â)â before â*â token
../source4/../lib/util/time.h:95: error: expected â)â before â*â token
../source4/../lib/util/time.h:102: error: expected â)â before â*â token
../source4/../lib/util/time.h:108: error: expected â;â, â,â or â)â 
before â*â token
../source4/../lib/util/time.h:113: error: expected â;â, â,â or â)â 
before â*â token
../source4/../lib/util/time.h:119: error: expected â;â, â,â or â)â 
before â*â token
../source4/../lib/util/time.h:134: error: expected declaration 
specifiers or â...â before âNTTIMEâ
../source4/../lib/util/time.h:139: error: expected â)â before â*â token
../source4/../lib/util/time.h:144: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âpull_nttimeâ
../source4/../lib/util/time.h:149: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânttime_from_stringâ
../source4/../lib/util/time.h:169: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âtimeval_is_zeroâ
../source4/../lib/util/time.h:179: error: expected â)â before âsecsâ
../source4/../lib/util/time.h:185: error: expected declaration 
specifiers or â...â before âuint32_tâ
../source4/../lib/util/time.h:185: error: expected declaration 
specifiers or â...â before âuint32_tâ
../source4/../lib/util/time.h:196: error: expected â)â before âsecsâ
../source4/../lib/util/time.h:209: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âtimeval_expiredâ
../source4/../lib/util/time.h:244: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âtimeval_to_nttimeâ
../source4/../lib/util/time.h:249: error: expected declaration 
specifiers or â...â before âNTTIMEâ
../source4/../lib/util/time.h:259: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânt_time_equalâ
../source4/../lib/util/time.h:261: error: expected â)â before âdateâ
../source4/../lib/util/time.h:263: error: expected â)â before â*â token
../source4/../lib/util/time.h:269: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânull_timespecâ
In file included from ../source4/../lib/util/util.h:41,
                  from ../source4/include/includes.h:61,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/data_blob.h:122: error: expected â=â, â,â, â;â, 
âasmâ or â__attribute__â before âdata_blob_reallocâ
../source4/../lib/util/data_blob.h:127: error: expected â=â, â,â, â;â, 
âasmâ or â__attribute__â before âdata_blob_appendâ
In file included from ../source4/include/includes.h:61,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/util.h:88: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âregister_fault_handlerâ
../source4/../lib/util/util.h:96: error: expected â)â before âblockâ
../source4/../lib/util/util.h:169: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âcheck_password_qualityâ
../source4/../lib/util/util.h:211: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânext_token_tallocâ
../source4/../lib/util/util.h:221: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before ânext_token_no_ltrim_tallocâ
../source4/../lib/util/util.h:230: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âtrim_stringâ
../source4/../lib/util/util.h:343: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âadd_string_to_arrayâ
../source4/../lib/util/util.h:363: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âset_booleanâ
../source4/../lib/util/util.h:372: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âconv_str_boolâ
../source4/../lib/util/util.h:378: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âconv_str_sizeâ
../source4/../lib/util/util.h:388: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âconv_str_u64â
../source4/../lib/util/util.h:419: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âstrequalâ
../source4/../lib/util/util.h:476: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âstr_list_equalâ
../source4/../lib/util/util.h:491: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âstr_list_checkâ
../source4/../lib/util/util.h:496: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âstr_list_check_ciâ
../source4/../lib/util/util.h:595: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âfile_saveâ
../source4/../lib/util/util.h:598: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âlarge_file_supportâ
../source4/../lib/util/util.h:603: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âfile_compareâ
../source4/../lib/util/util.h:617: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âfile_existâ
../source4/../lib/util/util.h:627: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âdirectory_existâ
../source4/../lib/util/util.h:635: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âdirectory_create_or_existâ
../source4/../lib/util/util.h:644: error: expected declaration 
specifiers or â...â before âboolâ
../source4/../lib/util/util.h:659: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âprocess_exists_by_pidâ
../source4/../lib/util/util.h:665: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âfcntl_lockâ
../source4/../lib/util/util.h:671: error: expected declaration 
specifiers or â...â before âboolâ
../source4/../lib/util/util.h:724: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âall_zeroâ
../source4/../lib/util/util.h:729: error: expected declaration 
specifiers or â...â before âboolâ
../source4/../lib/util/util.h:815: error: expected â)â before âstderr_tooâ
../source4/../lib/util/util.h:820: error: expected â)â before âdo_forkâ
../source4/../lib/util/util.h:825: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âpm_processâ
../source4/../lib/util/util.h:830: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âunmap_fileâ
../source4/../lib/util/util.h:844: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âadd_uid_to_array_uniqueâ
../source4/../lib/util/util.h:846: error: expected â=â, â,â, â;â, âasmâ 
or â__attribute__â before âadd_gid_to_array_uniqueâ
In file included from ../libcli/util/error.h:24,
                  from ../source4/include/includes.h:63,
                  from ../libds/common/flag_mapping.c:23:
../libcli/util/ntstatus.h:650: error: expected â=â, â,â, â;â, âasmâ or 
â__attribute__â before ântstatus_check_dos_mappingâ
In file included from ../source4/include/includes.h:63,
                  from ../libds/common/flag_mapping.c:23:
../libcli/util/error.h:27: error: expected â=â, â,â, â;â, âasmâ or 
â__attribute__â before ântstatus_dos_equalâ
In file included from ../source4/include/includes.h:69,
                  from ../libds/common/flag_mapping.c:23:
../source4/../lib/util/smb_threads.h:23: error: expected â=â, â,â, â;â, 
âasmâ or â__attribute__â before âsmb_thread_once_tâ
../source4/../lib/util/smb_threads.h:53: error: expected â)â before â*â 
token
In file included from default/librpc/gen_ndr/samr.h:11,
                  from ../libds/common/flag_mapping.c:24:
default/librpc/gen_ndr/lsa.h:240: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/lsa.h:543: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/lsa.h:1227: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/lsa.h:1234: error: expected 
specifier-qualifier-list before âNTTIMEâ
In file included from ../libds/common/flag_mapping.c:24:
default/librpc/gen_ndr/samr.h:223: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:237: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:258: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:280: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:473: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:499: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:552: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:604: error: expected 
specifier-qualifier-list before âNTTIMEâ
default/librpc/gen_ndr/samr.h:884: error: expected 
specifier-qualifier-list before âNTTIMEâ
../libds/common/flag_mapping.c: In function âds_atype_mapâ:
../libds/common/flag_mapping.c:149: error: âtrueâ undeclared (first use 
in this function)
../libds/common/flag_mapping.c:149: error: (Each undeclared identifier 
is reported only once
../libds/common/flag_mapping.c:149: error: for each function it appears in.)
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  -> task failed (err #1):
         {task: cc flag_mapping.c -> flag_mapping_1.o}
make: *** [all] Error 1

-- 
Warm regards,

Rohit Rajan (Senior Systems Engineer)
Catalyst Business Solutions Pvt Ltd
221,Udyog Vihar Phase - IV
Gurgaon - 122016 India.
Fax: +91 124 4750308
Work : +91 124 4750300
Mobile : +91 9717621166
Website : www.catalyst-us.com
Skype : rohit.rajan




More information about the samba-technical mailing list