Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jun 2012 18:13:49 +0200
From:      Bernhard Froehlich <decke@FreeBSD.org>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        FreeBSD Ports <ports@freebsd.org>, vbox@freebsd.org
Subject:   Re: cannot compile VirtualBox-ose 4.1.16 on FreeBSD 8.3-RELEASE amd64
Message-ID:  <37093f3d7be7d165ca80edd803026add@bluelife.at>
In-Reply-To: <4FC76549.8090300@quip.cz>
References:  <4FC76549.8090300@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 31.05.2012 14:34, Miroslav Lachman wrote:
> Hi,
>
> I tried to install virtualbox-ose on our new testmachine, but
> compilation ends with error:
>
> 
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c:408:
> error: expected '{' at end of input
> kmk: ***
> 
> [/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/out/freebsd.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o]
> Error 1
> The failing command:
> @cc -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-long-long -Wmissing-prototypes
> -Wstrict-prototypes -Wmissing-declarations
> -Werror-implicit-function-declaration   -Wno-variadic-macros -O2
> -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
> -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN
> -DRT_USE_VISIBILITY_DEFAULT -fPIC -m64 -I/usr/include
> -I/usr/X11R6/include -I/usr/local/include
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/include
> 
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/out/freebsd.amd64/release
> -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS
> -DVBOX_WITH_HARDENING
> -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\"
> -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
> -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
> -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\"
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ -DIN_RING3
> -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC
> 
> -Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/out/freebsd.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o.dep
> 
> -Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/out/freebsd.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o
> -Wp,-MP -o
> 
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/out/freebsd.amd64/release/obj/VBoxAuth/pam/VBoxAuthPAM.o
> 
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c
> kmk: *** Waiting for unfinished jobs....
> kmk: *** Exiting with status 2
> *** Error code 2
>
> Stop in /usr/ports/emulators/virtualbox-ose.
> *** Error code 1
>
> Stop in /usr/ports/emulators/virtualbox-ose.
>
> Full output can be seen on http://pastebin.com/raw.php?i=7eDEWze8


The error above is completely unrelated because the problem starts much
earlier:

In file included from 
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.1.16/src/VBox/HostServices/auth/pam/VBoxAuthPAM.c:81:
/usr/include/security/pam_appl.h:43:35: error: security/openpam_attr.h: 
No such file or directory


So it seems your system is broken. On my system I have the file and I 
have just
checked that vbox 4.1.16 did build fine on a stock FreeBSD 8.3 
Tinderbox.

# ident /usr/include/security/pam_appl.h
/usr/include/security/pam_appl.h:
      $Id: pam_appl.h 408 2007-12-21 11:36:24Z des $

# uname -a
FreeBSD chii.bluelife.at 9.0-STABLE FreeBSD 9.0-STABLE #10: Wed May 23 
23:30:26 CEST 2012     
root@chii.bluelife.at:/usr/obj/usr/src/sys/GENERIC  amd64

-- 
Bernhard Froehlich
http://www.bluelife.at/



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