ld: Warning: size of symbol `sched_clock' changed from 144 in sched_4bsd.o to 258 in sched_ule.o

Neil Short neshort at yahoo.com
Fri Jun 12 15:27:59 UTC 2009


Here's more detail with context on my attempt to include

options SCHED_4BSD

in my kernel. Any ideas?

....

MAKE=make sh /usr/src/sys/conf/newvers.sh CARMEN
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  vers.c
linking kernel
sched_ule.o(.text+0x670): In function `schedinit':
: multiple definition of `schedinit'
sched_4bsd.o(.text+0x1690): first defined here
ld: Warning: size of symbol `schedinit' changed from 84 in sched_4bsd.o to 50 in sched_ule.o
sched_ule.o(.text+0x6b0): In function `sched_rr_interval':
: multiple definition of `sched_rr_interval'
sched_4bsd.o(.text+0xc0): first defined here
ld: Warning: size of symbol `sched_rr_interval' changed from 48 in sched_4bsd.o to 37 in sched_ule.o
sched_ule.o(.text+0x790): In function `sched_user_prio':
: multiple definition of `sched_user_prio'
sched_4bsd.o(.text+0x110): first defined here
ld: Warning: size of symbol `sched_user_prio' changed from 41 in sched_4bsd.o to 37 in sched_ule.o
sched_ule.o(.text+0x910): In function `sched_lend_user_prio':
: multiple definition of `sched_lend_user_prio'
sched_4bsd.o(.text+0x1e0): first defined here
sched_ule.o(.text+0x930): In function `sched_unlend_user_prio':
: multiple definition of `sched_unlend_user_prio'
sched_4bsd.o(.text+0x200): first defined here
sched_ule.o(.text+0x970): In function `sched_sleep':
: multiple definition of `sched_sleep'
sched_4bsd.o(.text+0x240): first defined here
ld: Warning: size of symbol `sched_sleep' changed from 35 in sched_4bsd.o to 22 in sched_ule.o
sched_ule.o(.text+0x990): In function `sched_class':
: multiple definition of `sched_class'
sched_4bsd.o(.text+0xf0): first defined here
ld: Warning: size of symbol `sched_class' changed from 19 in sched_4bsd.o to 150 in sched_ule.o
sched_ule.o(.text+0xa30): In function `sched_unbind':
: multiple definition of `sched_unbind'
sched_4bsd.o(.text+0x270): first defined here
ld: Warning: size of symbol `sched_unbind' changed from 17 in sched_4bsd.o to 44 in sched_ule.o
sched_ule.o(.text+0xa60): In function `sched_is_bound':
: multiple definition of `sched_is_bound'
sched_4bsd.o(.text+0x290): first defined here
ld: Warning: size of symbol `sched_is_bound' changed from 18 in sched_4bsd.o to 23 in sched_ule.o
sched_ule.o(.text+0xa80): In function `sched_load':
: multiple definition of `sched_load'
sched_4bsd.o(.text+0x2b0): first defined here
ld: Warning: size of symbol `sched_load' changed from 10 in sched_4bsd.o to 43 in sched_ule.o
sched_ule.o(.text+0xab0): In function `sched_sizeof_proc':
: multiple definition of `sched_sizeof_proc'
sched_4bsd.o(.text+0x2c0): first defined here
sched_ule.o(.text+0xac0): In function `sched_sizeof_thread':
: multiple definition of `sched_sizeof_thread'
sched_4bsd.o(.text+0x2d0): first defined here
sched_ule.o(.text+0xad0): In function `sched_fork_exit':
: multiple definition of `sched_fork_exit'
sched_4bsd.o(.text+0x310): first defined here
ld: Warning: size of symbol `sched_fork_exit' changed from 31 in sched_4bsd.o to 47 in sched_ule.o
sched_ule.o(.text+0xb00): In function `runq_add':
: multiple definition of `runq_add'
sched_4bsd.o(.text+0x330): first defined here
sched_ule.o(.text+0xb90): In function `runq_add_pri':
: multiple definition of `runq_add_pri'
sched_4bsd.o(.text+0x3c0): first defined here
sched_ule.o(.text+0xdd0): In function `runq_check':
: multiple definition of `runq_check'
sched_4bsd.o(.text+0x450): first defined here
sched_ule.o(.text+0xdf0): In function `runq_choose':
: multiple definition of `runq_choose'
sched_4bsd.o(.text+0x4b0): first defined here
sched_ule.o(.data+0x0): multiple definition of `runq_fuzz'
sched_4bsd.o(.data+0x0): first defined here
sched_ule.o(.text+0xe90): In function `runq_choose_from':
: multiple definition of `runq_choose_from'
sched_4bsd.o(.text+0x550): first defined here
sched_ule.o(.text+0xf20): In function `sched_newproc':
: multiple definition of `sched_newproc'
sched_4bsd.o(.text+0x5e0): first defined here
sched_ule.o(.text+0x14c0): In function `sched_exit_thread':
: multiple definition of `sched_exit_thread'
sched_4bsd.o(.text+0x670): first defined here
ld: Warning: size of symbol `sched_exit_thread' changed from 310 in sched_4bsd.o to 157 in sched_ule.o
sched_ule.o(.text+0x1560): In function `sched_exit':
: multiple definition of `sched_exit'
sched_4bsd.o(.text+0x7b0): first defined here
sched_ule.o(.text+0x1580): In function `sched_newthread':
: multiple definition of `sched_newthread'
sched_4bsd.o(.text+0x7d0): first defined here
sched_ule.o(.text+0x15c0): In function `runq_init':
: multiple definition of `runq_init'
sched_4bsd.o(.text+0x810): first defined here
sched_ule.o(.text+0x1670): In function `runq_remove_idx':
: multiple definition of `runq_remove_idx'
sched_4bsd.o(.text+0x8d0): first defined here
sched_ule.o(.text+0x1730): In function `runq_remove':
: multiple definition of `runq_remove'
sched_4bsd.o(.text+0x990): first defined here
sched_ule.o(.text+0x1760): In function `sched_choose':
: multiple definition of `sched_choose'
sched_4bsd.o(.text+0x9c0): first defined here
ld: Warning: size of symbol `sched_choose' changed from 187 in sched_4bsd.o to 332 in sched_ule.o
sched_ule.o(.text+0x18b0): In function `choosethread':
: multiple definition of `choosethread'
sched_4bsd.o(.text+0xa80): first defined here
sched_ule.o(.text+0x18f0): In function `sched_bind':
: multiple definition of `sched_bind'
sched_4bsd.o(.text+0xc30): first defined here
ld: Warning: size of symbol `sched_bind' changed from 77 in sched_4bsd.o to 108 in sched_ule.o
sched_ule.o(.text+0x19e0): In function `sched_add':
: multiple definition of `sched_add'
sched_4bsd.o(.text+0xc80): first defined here
ld: Warning: size of symbol `sched_add' changed from 1063 in sched_4bsd.o to 540 in sched_ule.o
sched_ule.o(.text+0x1c00): In function `sched_wakeup':
: multiple definition of `sched_wakeup'
sched_4bsd.o(.text+0x10b0): first defined here
ld: Warning: size of symbol `sched_wakeup' changed from 87 in sched_4bsd.o to 115 in sched_ule.o
sched_ule.o(.text+0x1c80): In function `sched_fork_thread':
: multiple definition of `sched_fork_thread'
sched_4bsd.o(.text+0x1620): first defined here
ld: Warning: size of symbol `sched_fork_thread' changed from 95 in sched_4bsd.o to 163 in sched_ule.o
sched_ule.o(.text+0x1d30): In function `sched_fork':
: multiple definition of `sched_fork'
sched_4bsd.o(.text+0x1680): first defined here
ld: Warning: size of symbol `sched_fork' changed from 9 in sched_4bsd.o to 169 in sched_ule.o
sched_ule.o(.text+0x1de0): In function `critical_enter':
: multiple definition of `critical_enter'
sched_4bsd.o(.text+0x16f0): first defined here
sched_ule.o(.text+0x1e00): In function `sched_runnable':
: multiple definition of `sched_runnable'
sched_4bsd.o(.text+0x470): first defined here
ld: Warning: size of symbol `sched_runnable' changed from 58 in sched_4bsd.o to 67 in sched_ule.o
sched_ule.o(.text+0x1e50): In function `sched_tick':
: multiple definition of `sched_tick'
sched_4bsd.o(.text+0x300): first defined here
ld: Warning: size of symbol `sched_tick' changed from 5 in sched_4bsd.o to 73 in sched_ule.o
sched_ule.o(.text+0x1ea0): In function `maybe_preempt':
: multiple definition of `maybe_preempt'
sched_4bsd.o(.text+0xb30): first defined here
sched_ule.o(.text+0x1fa0): In function `sched_userret':
: multiple definition of `sched_userret'
sched_4bsd.o(.text+0x1a50): first defined here
sched_ule.o(.text+0x2030): In function `critical_exit':
: multiple definition of `critical_exit'
sched_4bsd.o(.text+0x1910): first defined here
sched_ule.o(.text+0x20f0): In function `sched_relinquish':
: multiple definition of `sched_relinquish'
sched_4bsd.o(.text+0x19d0): first defined here
sched_ule.o(.text+0x2170): In function `sched_throw':
: multiple definition of `sched_throw'
sched_4bsd.o(.text+0x1bc0): first defined here
ld: Warning: size of symbol `sched_throw' changed from 204 in sched_4bsd.o to 261 in sched_ule.o
sched_ule.o(.text+0x2280): In function `sched_pctcpu':
: multiple definition of `sched_pctcpu'
sched_4bsd.o(.text+0x2e0): first defined here
ld: Warning: size of symbol `sched_pctcpu' changed from 17 in sched_4bsd.o to 196 in sched_ule.o
sched_ule.o(.text+0x2350): In function `sched_switch':
: multiple definition of `sched_switch'
sched_4bsd.o(.text+0x1c90): first defined here
ld: Warning: size of symbol `sched_switch' changed from 488 in sched_4bsd.o to 1230 in sched_ule.o
sched_ule.o(.text+0x2820): In function `sched_rem':
: multiple definition of `sched_rem'
sched_4bsd.o(.text+0xac0): first defined here
ld: Warning: size of symbol `sched_rem' changed from 104 in sched_4bsd.o to 214 in sched_ule.o
sched_ule.o(.text+0x2900): In function `sched_affinity':
: multiple definition of `sched_affinity'
sched_4bsd.o(.text+0x1710): first defined here
ld: Warning: size of symbol `sched_affinity' changed from 355 in sched_4bsd.o to 184 in sched_ule.o
sched_ule.o(.text+0x2a50): In function `sched_prio':
: multiple definition of `sched_prio'
sched_4bsd.o(.text+0x1190): first defined here
sched_ule.o(.text+0x2ad0): In function `sched_nice':
: multiple definition of `sched_nice'
sched_4bsd.o(.text+0x1880): first defined here
ld: Warning: size of symbol `sched_nice' changed from 140 in sched_4bsd.o to 152 in sched_ule.o
sched_ule.o(.text+0x2b70): In function `sched_lend_prio':
: multiple definition of `sched_lend_prio'
sched_4bsd.o(.text+0x1170): first defined here
ld: Warning: size of symbol `sched_lend_prio' changed from 17 in sched_4bsd.o to 20 in sched_ule.o
sched_ule.o(.text+0x2b90): In function `sched_unlend_prio':
: multiple definition of `sched_unlend_prio'
sched_4bsd.o(.text+0x1210): first defined here
ld: Warning: size of symbol `sched_unlend_prio' changed from 72 in sched_4bsd.o to 68 in sched_ule.o
sched_ule.o(.text+0x2ce0): In function `sched_idletd':
: multiple definition of `sched_idletd'
sched_4bsd.o(.text+0x1ae0): first defined here
ld: Warning: size of symbol `sched_idletd' changed from 221 in sched_4bsd.o to 681 in sched_ule.o
sched_ule.o(.text+0x3380): In function `sched_clock':
: multiple definition of `sched_clock'
sched_4bsd.o(.text+0x12a0): first defined here
ld: Warning: size of symbol `sched_clock' changed from 144 in sched_4bsd.o to 258 in sched_ule.o
*** Error code 1

Stop in /usr/obj/usr/src/sys/CARMEN.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
carmen# 

======
Wherever the corpse is, there the vultures will gather.
Matthew 24:28


      


More information about the freebsd-questions mailing list