Kernel Compile Error

Philip M. Gollucci pgollucci at riderway.com
Wed Nov 28 09:17:39 PST 2007


Schiz0 wrote:
> On Nov 28, 2007 8:47 AM, Philip M. Gollucci <pgollucci at riderway.com> wrote:
>> Schiz0 wrote:
>>> Hey,
>>>
>>> I'm running FreeBSD 6.3-PRERELEASE. I recently csuped the source code
>>> (src-all) and built world.
>>> I then tried to "make buildkernel", and it ran for a little while,
>>> then gave the following error and stopped:
>>>
>>> http://schiz0.securityexploits.com/make.buildkernel.out
>>> The error is at the bottom - that is the log of the entire buildkernel process.
>> I see no error -- looks like you didnt' copy enough of it.
>> use -DNO_CLEAN to skip all the rm -f stuff at the start when you post
>> the new output.
>>
linux_ipc.o(.text+0x8e4):/usr/src/sys/compat/linux/linux_ipc.c:583:
undefined reference to `__semctl'^M
linux_ipc.o(.text+0x918): In function `linux_msgsnd':^M
/usr/src/sys/compat/linux/linux_ipc.c:600: undefined reference to `msgsnd'^M
linux_ipc.o(.text+0x94e): In function `linux_msgrcv':^M
/usr/src/sys/compat/linux/linux_ipc.c:619: undefined reference to `msgrcv'^M
linux_ipc.o(.text+0x970): In function `linux_msgget':^M
/usr/src/sys/compat/linux/linux_ipc.c:632: undefined reference to `msgget'^M
linux_ipc.o(.text+0x9d2): In function `linux_msgctl':^M
/usr/src/sys/compat/linux/linux_ipc.c:650: undefined reference to
`kern_msgctl'^M
linux_ipc.o(.text+0xa4d): In function `linux_shmat':^M
/usr/src/sys/compat/linux/linux_ipc.c:680: undefined reference to `shmat'^M
linux_ipc.o(.text+0xaae): In function `linux_shmdt':^M
/usr/src/sys/compat/linux/linux_ipc.c:699: undefined reference to `shmdt'^M
linux_ipc.o(.text+0xad6): In function `linux_shmget':^M
/usr/src/sys/compat/linux/linux_ipc.c:714: undefined reference to `shmget'^M
linux_ipc.o(.text+0xb18): In function `linux_shmctl':^M
/usr/src/sys/compat/linux/linux_ipc.c:733: undefined reference to
`kern_shmctl'^M
linux_ipc.o(.text+0xb68):/usr/src/sys/compat/linux/linux_ipc.c:748:
undefined reference to `kern_shmctl'^M
linux_ipc.o(.text+0xbb0):/usr/src/sys/compat/linux/linux_ipc.c:761:
undefined reference to `kern_shmctl'^M
linux_ipc.o(.text+0xc00):/usr/src/sys/compat/linux/linux_ipc.c:773:
undefined reference to `kern_shmctl'^M
linux_ipc.o(.text+0xc7c):/usr/src/sys/compat/linux/linux_ipc.c:792:
undefined reference to `kern_shmctl'^M
linux_ipc.o(.text+0xcd2):/usr/src/sys/compat/linux/linux_ipc.c:808: more
undefined references to `kern_shmctl' follow^M

Add these 3 to your kernel config file near the end. Don't use the
-DNO_CLEAN when you build this time.  That was just to cut down on the
output in the log file (or when you intentionally don't want to delete
the build from the previous attempt or success)

options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores

-- 
------------------------------------------------------------------------
Philip M. Gollucci (philip at ridecharge.com)
o:703.549.2050x206
Senior System Admin - Riderway, Inc.
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.



More information about the freebsd-questions mailing list