Compile error while compiling rtems-libbsd

SAeeD salpha.2004 at gmail.com
Mon Oct 22 21:41:04 UTC 2012


Hi,

I followed the building instructions found in rtems-libbsd/libbsd.txt but
when I tried to make rtems-libbsd, I faced these errors:

[saeed at GREY rtems-libbsd]$ make
i386-rtems4.10-gcc --pipe
-B/home/saeed/RTEMS/src/rtems-4.10.2/b-pc386/bsp-install/i386-rtems4.10/pc386/lib/
-specs bsp_specs -qrtems   -g -Wall  -O2 -g -g  -ffreestanding  -I .  -I
rtemsbsd  -I rtemsbsd/i386/include  -I freebsd/i386/include  -I
contrib/altq  -I contrib/pf  -I copied/rtemsbsd/i386/include  -w
-std=gnu99 -MT rtemsbsd/src/rtems-bsd-thread0-ucred.o -MD -MP -MF
rtemsbsd/src/rtems-bsd-thread0-ucred.d   -mtune=i386     -c -o
rtemsbsd/src/rtems-bsd-thread0-ucred.o
rtemsbsd/src/rtems-bsd-thread0-ucred.c
In file included from ./freebsd/sys/systm.h:42,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:37:
freebsd/i386/include/freebsd/machine/cpufunc.h:42:2: error: #error this
file needs sys/cdefs.h as a prerequisite
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:37:
./freebsd/sys/systm.h: In function 'longjmp':
./freebsd/sys/systm.h:152: error: expected declaration specifiers before
'__dead2'
./freebsd/sys/systm.h:170: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__dead2'
./freebsd/sys/systm.h:183: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:184: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:186: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:187: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:188: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:189: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:190: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:191: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:192: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:193: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:194: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:195: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:196: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:197: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:198: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:199: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:200: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:201: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__printflike'
./freebsd/sys/systm.h:210: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:211: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:213: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:214: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:218: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:221: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:223: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:225: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:271: error: storage class specified for parameter
'cpu_tick_f'
./freebsd/sys/systm.h:272: error: expected ')' before '*' token
./freebsd/sys/systm.h:273: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
In file included from ./freebsd/sys/systm.h:282,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:37:
./freebsd/sys/libkern.h:52: error: storage class specified for parameter
'bcd2bin_data'
./freebsd/sys/libkern.h:53: error: storage class specified for parameter
'bin2bcd_data'
./freebsd/sys/libkern.h:54: error: storage class specified for parameter
'hex2ascii_data'
./freebsd/sys/libkern.h:60: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:61: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:62: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:63: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:64: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:65: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:66: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:67: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:68: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:69: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:70: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:71: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:73: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:74: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:75: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:114: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__pure'
./freebsd/sys/libkern.h:127: error: storage class specified for parameter
'crc32_tab'
./freebsd/sys/libkern.h:131: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/libkern.h:141: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:37:
./freebsd/sys/systm.h:293: error: storage class specified for parameter
'timeout_t'
./freebsd/sys/systm.h:298: error: expected ')' before '*' token
./freebsd/sys/systm.h:299: error: expected ')' before '*' token
./freebsd/sys/systm.h:304: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:305: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:306: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:307: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:308: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:309: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:310: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:311: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:312: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:313: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:314: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:315: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:316: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:317: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:318: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/systm.h:319: error: expected ';', ',' or ')' before '__unused'
./freebsd/sys/systm.h:326: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:330: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:334: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
./freebsd/sys/systm.h:335: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__nonnull'
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:37:
./freebsd/sys/systm.h:413: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
In file included from ./freebsd/sys/proc.h:42,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/event.h:242: error: storage class specified for parameter
'knote'
./freebsd/sys/event.h:243: error: storage class specified for parameter
'knote_fork'
./freebsd/sys/event.h:244: error: storage class specified for parameter
'knlist_add'
./freebsd/sys/event.h:245: error: storage class specified for parameter
'knlist_remove'
./freebsd/sys/event.h:246: error: storage class specified for parameter
'knlist_remove_inevent'
./freebsd/sys/event.h:247: error: storage class specified for parameter
'knlist_empty'
./freebsd/sys/event.h:250: error: storage class specified for parameter
'knlist_init'
./freebsd/sys/event.h:251: error: storage class specified for parameter
'knlist_init_mtx'
./freebsd/sys/event.h:252: error: storage class specified for parameter
'knlist_destroy'
./freebsd/sys/event.h:254: error: storage class specified for parameter
'knlist_cleardel'
./freebsd/sys/event.h:259: error: storage class specified for parameter
'knote_fdclose'
./freebsd/sys/event.h:261: error: storage class specified for parameter
'kqfd_register'
./freebsd/sys/event.h:262: error: storage class specified for parameter
'kqueue_add_filteropts'
./freebsd/sys/event.h:263: error: storage class specified for parameter
'kqueue_del_filteropts'
In file included from ./freebsd/sys/proc.h:51,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/osd.h:53: error: storage class specified for parameter
'osd_destructor_t'
./freebsd/sys/osd.h:54: error: storage class specified for parameter
'osd_method_t'
./freebsd/sys/osd.h:56: error: expected declaration specifiers or '...'
before 'osd_destructor_t'
./freebsd/sys/osd.h:57: error: expected declaration specifiers or '...'
before 'osd_method_t'
In file included from ./freebsd/sys/runq.h:32,
                 from ./freebsd/sys/proc.h:54,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
rtemsbsd/freebsd/machine/runq.h:39: error: storage class specified for
parameter 'rqb_word_t'
In file included from ./freebsd/sys/proc.h:54,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/runq.h:53: error: expected specifier-qualifier-list before
'rqb_word_t'
In file included from ./freebsd/sys/proc.h:55,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/resource.h:161: error: storage class specified for parameter
'averunnable'
In file included from ./freebsd/sys/pcpu.h:45,
                 from ./freebsd/sys/proc.h:62,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
rtemsbsd/freebsd/machine/pcpu.h:32: error: storage class specified for
parameter 'pcpup'
In file included from ./freebsd/sys/proc.h:62,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/pcpu.h:50: error: storage class specified for parameter
'__start_set_pcpu'
./freebsd/sys/pcpu.h:51: error: storage class specified for parameter
'__stop_set_pcpu'
./freebsd/sys/pcpu.h:56: error: storage class specified for parameter
'_bsd_dpcpu_off'
./freebsd/sys/pcpu.h:193: error: expected declaration specifiers or '...'
before numeric constant
./freebsd/sys/pcpu.h:199: error: storage class specified for parameter
'cpuhead'
./freebsd/sys/pcpu.h:200: error: storage class specified for parameter
'cpuid_to_pcpu'
In file included from ./freebsd/sys/ucontext.h:35,
                 from ./freebsd/sys/proc.h:64,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
rtemsbsd/freebsd/machine/ucontext.h:30: error: storage class specified for
parameter 'mcontext_t'
In file included from ./freebsd/sys/proc.h:64,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/ucontext.h:47: error: expected specifier-qualifier-list
before 'mcontext_t'
./freebsd/sys/ucontext.h:54: error: storage class specified for parameter
'ucontext_t'
./freebsd/sys/ucontext.h:94: error: expected declaration specifiers or
'...' before 'mcontext_t'
./freebsd/sys/ucontext.h:95: error: expected ';', ',' or ')' before '*'
token
In file included from ./freebsd/sys/ucred.h:36,
                 from ./freebsd/sys/proc.h:65,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/bsm/audit.h:171: error: storage class specified for parameter
'au_id_t'
./freebsd/bsm/audit.h:172: error: storage class specified for parameter
'au_asid_t'
./freebsd/bsm/audit.h:173: error: storage class specified for parameter
'au_event_t'
./freebsd/bsm/audit.h:174: error: storage class specified for parameter
'au_emod_t'
./freebsd/bsm/audit.h:175: error: storage class specified for parameter
'au_class_t'
./freebsd/bsm/audit.h:176: error: storage class specified for parameter
'au_asflgs_t'
./freebsd/bsm/audit.h:176: error: alignment may not be specified for
'au_asflgs_t'
./freebsd/bsm/audit.h:182: error: storage class specified for parameter
'au_tid_t'
./freebsd/bsm/audit.h:189: error: storage class specified for parameter
'au_tid_addr_t'
./freebsd/bsm/audit.h:195: error: storage class specified for parameter
'au_mask_t'
./freebsd/bsm/audit.h:198: error: expected specifier-qualifier-list before
'au_id_t'
./freebsd/bsm/audit.h:203: error: storage class specified for parameter
'auditinfo_t'
./freebsd/bsm/audit.h:206: error: expected specifier-qualifier-list before
'au_id_t'
./freebsd/bsm/audit.h:212: error: storage class specified for parameter
'auditinfo_addr_t'
./freebsd/bsm/audit.h:216: error: expected specifier-qualifier-list before
'au_id_t'
./freebsd/bsm/audit.h:221: error: storage class specified for parameter
'auditpinfo_t'
./freebsd/bsm/audit.h:225: error: expected specifier-qualifier-list before
'au_id_t'
./freebsd/bsm/audit.h:231: error: storage class specified for parameter
'auditpinfo_addr_t'
./freebsd/bsm/audit.h:234: error: expected specifier-qualifier-list before
'auditinfo_addr_t'
./freebsd/bsm/audit.h:237: error: storage class specified for parameter
'au_session_t'
./freebsd/bsm/audit.h:242: error: storage class specified for parameter
'token_t'
./freebsd/bsm/audit.h:263: error: storage class specified for parameter
'au_qctrl_t'
./freebsd/bsm/audit.h:284: error: storage class specified for parameter
'au_stat_t'
./freebsd/bsm/audit.h:293: error: storage class specified for parameter
'au_fstat_t'
./freebsd/bsm/audit.h:299: error: expected specifier-qualifier-list before
'au_event_t'
./freebsd/bsm/audit.h:302: error: storage class specified for parameter
'au_evclass_map_t'
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:38:
./freebsd/sys/proc.h:788: error: storage class specified for parameter
'pidhashtbl'
./freebsd/sys/proc.h:789: error: storage class specified for parameter
'pidhash'
./freebsd/sys/proc.h:792: error: storage class specified for parameter
'pgrphashtbl'
./freebsd/sys/proc.h:793: error: storage class specified for parameter
'pgrphash'
./freebsd/sys/proc.h:795: error: storage class specified for parameter
'allproc_lock'
./freebsd/sys/proc.h:796: error: storage class specified for parameter
'proctree_lock'
./freebsd/sys/proc.h:797: error: storage class specified for parameter
'ppeers_lock'
./freebsd/sys/proc.h:798: error: storage class specified for parameter
'proc0'
./freebsd/sys/proc.h:802: error: storage class specified for parameter
'rtems_bsd_thread0_ucred'
./freebsd/sys/proc.h:804: error: storage class specified for parameter
'vmspace0'
./freebsd/sys/proc.h:805: error: storage class specified for parameter
'_bsd_hogticks'
./freebsd/sys/proc.h:806: error: storage class specified for parameter
'lastpid'
./freebsd/sys/proc.h:807: error: storage class specified for parameter
'nprocs'
./freebsd/sys/proc.h:807: error: storage class specified for parameter
'_bsd_maxproc'
./freebsd/sys/proc.h:808: error: storage class specified for parameter
'maxprocperuid'
./freebsd/sys/proc.h:809: error: storage class specified for parameter
'ps_arg_cache_limit'
./freebsd/sys/proc.h:814: error: storage class specified for parameter
'allproc'
./freebsd/sys/proc.h:815: error: storage class specified for parameter
'zombproc'
./freebsd/sys/proc.h:816: error: storage class specified for parameter
'initproc'
./freebsd/sys/proc.h:816: error: storage class specified for parameter
'pageproc'
./freebsd/sys/proc.h:818: error: storage class specified for parameter
'proc_zone'
./freebsd/sys/proc.h:868: error: storage class specified for parameter
'cpu_idle_hook'
./freebsd/sys/proc.h:870: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__dead2'
./freebsd/sys/proc.h:878: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__dead2'
./freebsd/sys/proc.h:886: error: expected declaration specifiers or '...'
before 'stack_t'
./freebsd/sys/proc.h:896: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '__dead2'
In file included from ./freebsd/sys/jail.h:120,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/sysctl.h:678: error: storage class specified for parameter
'_bsd_sysctl__children'
./freebsd/sys/sysctl.h:679: error: storage class specified for parameter
'_bsd_sysctl__kern_children'
./freebsd/sys/sysctl.h:680: error: storage class specified for parameter
'_bsd_sysctl__kern_features_children'
./freebsd/sys/sysctl.h:681: error: storage class specified for parameter
'_bsd_sysctl__kern_ipc_children'
./freebsd/sys/sysctl.h:682: error: storage class specified for parameter
'_bsd_sysctl__kern_proc_children'
./freebsd/sys/sysctl.h:683: error: storage class specified for parameter
'_bsd_sysctl__kern_sched_children'
./freebsd/sys/sysctl.h:684: error: storage class specified for parameter
'_bsd_sysctl__kern_sched_stats_children'
./freebsd/sys/sysctl.h:685: error: storage class specified for parameter
'_bsd_sysctl__sysctl_children'
./freebsd/sys/sysctl.h:686: error: storage class specified for parameter
'_bsd_sysctl__vm_children'
./freebsd/sys/sysctl.h:687: error: storage class specified for parameter
'_bsd_sysctl__vm_stats_children'
./freebsd/sys/sysctl.h:688: error: storage class specified for parameter
'_bsd_sysctl__vm_stats_misc_children'
./freebsd/sys/sysctl.h:689: error: storage class specified for parameter
'_bsd_sysctl__vfs_children'
./freebsd/sys/sysctl.h:690: error: storage class specified for parameter
'_bsd_sysctl__net_children'
./freebsd/sys/sysctl.h:691: error: storage class specified for parameter
'_bsd_sysctl__debug_children'
./freebsd/sys/sysctl.h:692: error: storage class specified for parameter
'_bsd_sysctl__debug_sizeof_children'
./freebsd/sys/sysctl.h:693: error: storage class specified for parameter
'_bsd_sysctl__dev_children'
./freebsd/sys/sysctl.h:694: error: storage class specified for parameter
'_bsd_sysctl__hw_children'
./freebsd/sys/sysctl.h:695: error: storage class specified for parameter
'_bsd_sysctl__hw_bus_children'
./freebsd/sys/sysctl.h:696: error: storage class specified for parameter
'_bsd_sysctl__hw_bus_devices_children'
./freebsd/sys/sysctl.h:697: error: storage class specified for parameter
'_bsd_sysctl__hw_bus_info_children'
./freebsd/sys/sysctl.h:698: error: storage class specified for parameter
'_bsd_sysctl__machdep_children'
./freebsd/sys/sysctl.h:699: error: storage class specified for parameter
'_bsd_sysctl__user_children'
./freebsd/sys/sysctl.h:700: error: storage class specified for parameter
'_bsd_sysctl__compat_children'
./freebsd/sys/sysctl.h:701: error: storage class specified for parameter
'_bsd_sysctl__regression_children'
./freebsd/sys/sysctl.h:702: error: storage class specified for parameter
'_bsd_sysctl__security_children'
./freebsd/sys/sysctl.h:703: error: storage class specified for parameter
'_bsd_sysctl__security_bsd_children'
./freebsd/sys/sysctl.h:705: error: storage class specified for parameter
'machine'
./freebsd/sys/sysctl.h:706: error: storage class specified for parameter
'osrelease'
./freebsd/sys/sysctl.h:707: error: storage class specified for parameter
'ostype'
./freebsd/sys/sysctl.h:708: error: storage class specified for parameter
'kern_ident'
In file included from ./freebsd/sys/jail.h:121,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/lock.h:190: error: storage class specified for parameter
'lock_class_mtx_sleep'
./freebsd/sys/lock.h:191: error: storage class specified for parameter
'lock_class_mtx_spin'
./freebsd/sys/lock.h:192: error: storage class specified for parameter
'lock_class_sx'
./freebsd/sys/lock.h:193: error: storage class specified for parameter
'lock_class_rw'
./freebsd/sys/lock.h:194: error: storage class specified for parameter
'lock_class_rm'
./freebsd/sys/lock.h:195: error: storage class specified for parameter
'lock_class_lockmgr'
./freebsd/sys/lock.h:197: error: storage class specified for parameter
'lock_classes'
In file included from ./freebsd/sys/mutex.h:43,
                 from ./freebsd/sys/jail.h:122,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/lockstat.h:152: error: storage class specified for parameter
'lockstat_probemap'
./freebsd/sys/lockstat.h:154: error: storage class specified for parameter
'lockstat_probe_func_t'
./freebsd/sys/lockstat.h:155: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'lockstat_probe_func'
./freebsd/sys/lockstat.h:156: error: storage class specified for parameter
'lockstat_nsecs'
In file included from ./freebsd/sys/jail.h:122,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/mutex.h:336: error: storage class specified for parameter
'mtxpool_lockbuilder'
./freebsd/sys/mutex.h:337: error: storage class specified for parameter
'mtxpool_sleep'
./freebsd/sys/mutex.h:384: error: storage class specified for parameter
'Giant'
./freebsd/sys/mutex.h:385: error: storage class specified for parameter
'blocked_lock'
In file included from ./freebsd/sys/jail.h:123,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/_task.h:40: error: storage class specified for parameter
'task_fn_t'
./freebsd/sys/_task.h:46: error: expected specifier-qualifier-list before
'task_fn_t'
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:39:
./freebsd/sys/jail.h:234: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/jail.h:241: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '{' token
./freebsd/sys/jail.h:305: error: storage class specified for parameter
'prison0'
./freebsd/sys/jail.h:308: error: storage class specified for parameter
'allprison'
./freebsd/sys/jail.h:309: error: storage class specified for parameter
'allprison_lock'
./freebsd/sys/jail.h:314: error: storage class specified for parameter
'_bsd_sysctl__security_jail_param_children'
In file included from ./freebsd/sys/kernel.h:48,
                 from rtemsbsd/src/rtems-bsd-thread0-ucred.c:40:
./freebsd/sys/linker_set.h:34:2: error: #error this file needs sys/cdefs.h
as a prerequisite
./freebsd/sys/linker_set.h:58:2: error: #error this file needs to be ported
to your compiler
In file included from rtemsbsd/src/rtems-bsd-thread0-ucred.c:40:
./freebsd/sys/kernel.h:62: error: storage class specified for parameter
'tick'
./freebsd/sys/kernel.h:63: error: storage class specified for parameter 'hz'
./freebsd/sys/kernel.h:64: error: storage class specified for parameter
'psratio'
./freebsd/sys/kernel.h:65: error: storage class specified for parameter
'stathz'
./freebsd/sys/kernel.h:66: error: storage class specified for parameter
'profhz'
./freebsd/sys/kernel.h:67: error: storage class specified for parameter
'profprocs'
./freebsd/sys/kernel.h:216: error: storage class specified for parameter
'sysinit_nfunc_t'
./freebsd/sys/kernel.h:217: error: storage class specified for parameter
'sysinit_cfunc_t'
./freebsd/sys/kernel.h:222: error: expected specifier-qualifier-list before
'sysinit_cfunc_t'
rtemsbsd/src/rtems-bsd-thread0-ucred.c:42: error: redefinition of parameter
'rtems_bsd_thread0_ucred'
./freebsd/sys/proc.h:802: note: previous definition of
'rtems_bsd_thread0_ucred' was here
rtemsbsd/src/rtems-bsd-thread0-ucred.c:45: error: expected '=', ',', ';',
'asm' or '__attribute__' before '{' token
rtemsbsd/src/rtems-bsd-thread0-ucred.c:53: error: parameter
'_bsd_cpu_sys_init' is initialized
rtemsbsd/src/rtems-bsd-thread0-ucred.c:53: error: expected '}' before
'rtems_bsd_thread0_ucred_init'
rtemsbsd/src/rtems-bsd-thread0-ucred.c:53: error: storage class specified
for parameter '__set_sysinit_set_sym__bsd_cpu_sys_init'
./freebsd/sys/systm.h:152: error: old-style parameter declarations in
prototyped function definition
./freebsd/sys/systm.h:152: error: parameter name omitted
./freebsd/sys/systm.h:152: error: parameter name omitted
rtemsbsd/src/rtems-bsd-thread0-ucred.c:53: error: expected '{' at end of
input
make: *** [rtemsbsd/src/rtems-bsd-thread0-ucred.o] Error 1



Am I wrong in my configuration? What is the problem?

Thanks in advance,
SAeeD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20121023/61d29d5a/attachment.html>


More information about the devel mailing list