From owner-freebsd-ports@FreeBSD.ORG Fri Feb 29 20:48:46 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65131106566C for ; Fri, 29 Feb 2008 20:48:46 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 356B48FC12 for ; Fri, 29 Feb 2008 20:48:46 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so4749800waf.3 for ; Fri, 29 Feb 2008 12:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=bcyX9NVbO9pZwOAPZE7IM4GUudeUi+lopXaZJ8RjJBE=; b=Z5Z5wz2RucAo7lwKMzZCnWk4d5TIg49SpvGqHhN18DmKrQtUrkmXCVOABOkIAfOq3/0HdA2W37zUFyvEnsWvt38iks/TtD0PNgdT08053RLm/5nPXUx5E/nuEITRhBf7m7/f5dJGvHKotfa/tiyQ7v2xDsCep8x6YE/IreZCDBU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=DP+6a707/DrA6gVY5YyZ1XooKbP7/uwUngJAYA/XTZjtkYfS3umaeGvxoY5+Emk6jlmzVNZJdaiy1zt1F2O3QSnMb+WdGhElzhhcerO4NYI01CfvV1BShlk/wcBYTWZEZMhXgmcKeEsGZFbhMjKOHdV8hIiskZJF90UIT/sFMVU= Received: by 10.114.174.2 with SMTP id w2mr12243297wae.17.1204318125636; Fri, 29 Feb 2008 12:48:45 -0800 (PST) Received: by 10.70.25.13 with HTTP; Fri, 29 Feb 2008 12:48:45 -0800 (PST) Message-ID: <3131aa530802291248r1da47960q233d9ccae8e278c1@mail.gmail.com> Date: Fri, 29 Feb 2008 21:48:45 +0100 From: "Olivier Cochard-Labbe" Sender: cochard@gmail.com To: "Edwin Groothuis" In-Reply-To: <20080228212051.GA2962@k7.mavetju> MIME-Version: 1.0 References: <3131aa530802260145y48e37284j4b03e6cd1f933027@mail.gmail.com> <47C412E4.9020305@quip.cz> <20080228134436.GA2759@k7.mavetju> <20080228212051.GA2962@k7.mavetju> X-Google-Sender-Auth: fe316f2fab0b5287 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-ports-mailinglist Subject: Re: VirtualBox looks for FreeBSD developer X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 20:48:46 -0000 Hi, > > New patches, which actually make it compile this time :-) I can't compile VirtualBox with your patch (I'm using a FreeBSD 7.0Release). Here are the steps that I've done: 1. Comment CPUTYPE, CFLAGS and COPTFLAGS on my /etc/make.conf 2. Download the VirtualBox source code: svn co http://virtualbox.org/svn/vbox/trunk vbox 3. Install all build tools listed here: http://www.virtualbox.org/wiki/FreeBSD%20build%20instructions 4. Apply your patch: patch < a.patch 5. Start the configure ./configure 6. Set the environement for configure: source ./env.sh 7. And finnally start the building process: kmk But it failed with this message: /usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73: error: 'sched_lock' undeclared (first use in this function) /usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73: error: (Each undeclared identifier is reported only once /usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c:73: error: for each function it appears in.) kmk[3]: *** [/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2- r0drv-freebsd.o] Error 1 The failing command: @gcc -c -O2 -Wall -Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -nostdinc -std=c99 -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -I/usr/home/ocd/vbox/src/VBox/Runtime -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/../include -I/usr/include -I/usr/home/ocd/vbox/include -I/usr/home/ocd/vbox/out/freebsd.x86/release -Iinclude -DVBOX -DVBOX_OSE -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86 -D__X86__ -D_KERNEL -DKLD_MODULE -DIN_RING0 -DIN_RT_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -Wp,-MD,/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2- r0drv-freebsd.o.dep-Wp,-MT,/usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2- r0drv-freebsd.o -Wp,-MP -o /usr/home/ocd/vbox/out/freebsd.x86/release/obj/src/VBox/Runtime/RuntimeR0Drv/r0drv/freebsd/thread2- r0drv-freebsd.o /usr/home/ocd/vbox/src/VBox/Runtime/r0drv/freebsd/thread2- r0drv-freebsd.c kmk[3]: Leaving directory `/usr/home/ocd/vbox/src/VBox/Runtime' kmk[2]: *** [pass_libraries_before] Error 2 kmk[2]: Leaving directory `/usr/home/ocd/vbox/src/VBox' kmk[1]: *** [pass_libraries_before] Error 2 kmk[1]: Leaving directory `/usr/home/ocd/vbox/src' kmk: *** [pass_libraries_before] Error 2 Is a problem with FreeBSD 7.0 ? Thanks, Olivier