Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2002 16:33:33 +0100
From:      Olivier Dony <olivier@blacktrap.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Problem compiling 4.2-RELEASE kernel on another 4-4 computer
Message-ID:  <20021209153333.GA69078@titan.blacktrap.net>

next in thread | raw e-mail | index | archive | help
Hello,

I've got some trouble compiling the 4.2-RELEASE kernel on my 4.4-RELASE
box. The 4.2 one (dentaal) doesn't have enough hd space to do it.
So I cvsup'd src-sys of tag=RELENG_4_0_2-RELEASE into /usr/DENTAAL on my 4.4
one. I tweaked GENERIC into DENTAAL, and ran config DENTAAL. I'm actually 
trying to add IPSEC support in the 4.2 kernel.
Now trying to make depend :

root@titan:/usr/DENTAAL/src/sys/i386/conf# ls
./  ../  DENTAAL  GENERIC  LINT  NEWCARD
root@titan:/usr/DENTAAL/src/sys/i386/conf# /usr/sbin/config DENTAAL   
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/DENTAAL
root@titan:/usr/DENTAAL/src/sys/i386/conf# cd ../../compile/DENTAAL
root@titan:/usr/DENTAAL/src/sys/compile/DENTAAL# make depend
cc -c -O -pipe -fomit-frame-pointer -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I/usr/include  -D_KERNEL
-include opt_global.h -elf  -mpreferred-stack-boundary=2 ../../i386/i386/genas
sym.c
../../i386/i386/genassym.c:76: warning: implicit declaration of function
`__offsetof'
../../i386/i386/genassym.c:76: syntax error before `struct'
../../i386/i386/genassym.c:76: syntax error before `struct'
../../i386/i386/genassym.c:76: syntax error before `struct'
../../i386/i386/genassym.c:76: syntax error before `)'
.... and a lot of other alike ...

I assume there is a problem with this __offsetof() macro not being defined, 
but how do I fix the problem? Or is there anything I am doing wrong? Do I
need to provide the kernel config file?

Thanks a lot for any hints

Olivier

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021209153333.GA69078>