Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Aug 2009 11:18:42 +0400
From:      Anonymous <swell.k@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/138063: [patch] emulators/virtualbox: does NOT respect CC and CXX
Message-ID:  <8663cg1fl9.fsf@gmail.com>
Resent-Message-ID: <200908220720.n7M7K4Ek012787@freefall.freebsd.org>

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

>Number:         138063
>Category:       ports
>Synopsis:       [patch] emulators/virtualbox: does NOT respect CC and CXX
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 22 07:20:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Anonymous
>Release:        FreeBSD 8.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD 8.0-BETA2 #0 r196396M: Thu Aug 20 02:38:37 UTC 2009     root@luffy:/usr/obj/usr/src/sys/PHOENIX  amd64

I have gcc, cc -> gcc45 symlink in PATH
>Description:
$ make CC=gcc43 CXX=g++43
===>  Configuring for virtualbox-3.0.51.r22226
Checking for environment: Determined build machine: freebsd.amd64, target machine: freebsd.amd64, OK.
Checking for kBuild: found, OK.
Checking for gcc:
  ** gcc version 4.5.0 found, expected gcc 3.x with x>1 or gcc 4.x with 0<x<4!
===>  Script "configure" failed unexpectedly.
Please report the problem to vbox@FreeBSD.org [maintainer] and attach the
"/var/tmp/ports/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22226/config.log"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. an `ls /var/db/pkg`).
*** Error code 1

>How-To-Repeat:
1. add symlink gcc, cc -> gcc45 to PATH before /usr/bin/gcc
2. try to build using CC and CXX set in environment or as make args
>Fix:
--- virtualbox.diff begins here ---
Index: emulators/virtualbox/Makefile
===================================================================
RCS file: /home/csup/ports/emulators/virtualbox/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- emulators/virtualbox/Makefile	14 Aug 2009 16:10:23 -0000	1.5
+++ emulators/virtualbox/Makefile	22 Aug 2009 07:04:00 -0000
@@ -32,6 +32,7 @@ ONLY_FOR_ARCHS=	i386 amd64
 USE_BZIP2=	yes
 
 HAS_CONFIGURE=	yes
+CONFIGURE_ARGS+=--with-gcc=${CC} --with-g++=${CXX}
 USE_LDCONFIG=	${PREFIX}/lib/virtualbox
 
 CONFLICTS=	bcc-[0-9]*
--- virtualbox.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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