When configuring a kernel with profiling (`config -p'), it fails to build due to duplicate and unresolved symbols. In the aout-world it looks like this (where if_ex.o is a random object file): mcount.o 00000000 T _mcount prof_machdep.o 00000000 T __mcount U _mcount 00000010 T mcount if_ex.o U mcount But in the elf world there's some confusion as to what the different functions should be called. mcount.o 00000000 T mcount prof_machdep.o 0000002c t Lmcount_exit 00000000 T __mcount U _mcount 00000010 T mcount if_ex.o U .mcount How-To-Repeat: config -p GENERIC cd ../../GENERIC make depend all
I've experience this problem and successfully used the fix. -Darrell -- Department of Computer Science, Duke University, Durham, NC 27708-0129 Darrell Anderson, anderson@cs.duke.edu, http://www.cs.duke.edu/~anderson
Responsible Changed From-To: freebsd-bugs->bde I believe BDE is the author of our kernel profiling.
Responsible Changed From-To: bde->obrien I thought his PR dealt with current, and was not a MFC PR.
State Changed From-To: open->closed Fixed last May in -current. Fixes merged from -current to RELENG_3 today.
Responsible Changed From-To: obrien->bde I have more round tuits for RELENG_3 while -current is frozone.