From owner-freebsd-questions Mon Dec 9 7:33:27 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0752937B401 for ; Mon, 9 Dec 2002 07:33:26 -0800 (PST) Received: from titanjr.blacktrap.net (212.68.218.22.brutele.be [212.68.218.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CCBF43EC5 for ; Mon, 9 Dec 2002 07:33:17 -0800 (PST) (envelope-from oli@titanjr.blacktrap.net) Received: from titanjr.blacktrap.net (localhost [IPv6:::1]) by titanjr.blacktrap.net (8.12.6/8.12.6) with ESMTP id gB9FXh9F069086 for ; Mon, 9 Dec 2002 16:33:43 +0100 (CET) (envelope-from oli@titanjr.blacktrap.net) Received: (from oli@localhost) by titanjr.blacktrap.net (8.12.6/8.12.6/Submit) id gB9FXXTq069085 for freebsd-questions@freebsd.org; Mon, 9 Dec 2002 16:33:34 +0100 (CET) Date: Mon, 9 Dec 2002 16:33:33 +0100 From: Olivier Dony To: FreeBSD Questions Subject: Problem compiling 4.2-RELEASE kernel on another 4-4 computer Message-ID: <20021209153333.GA69078@titan.blacktrap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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