[MacPorts] #28469: VirtualBox 4.0.4

MacPorts noreply at macports.org
Fri Apr 22 09:24:21 PDT 2011


#28469: VirtualBox 4.0.4
--------------------------------+-------------------------------------------
 Reporter:  carsomyr@…          |       Owner:  macports-tickets@…                   
     Type:  submission          |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.2                                
 Keywords:                      |        Port:  VirtualBox                           
--------------------------------+-------------------------------------------

Comment(by chris.perl@…):

 I'm curious what version of Mac OS you're running, etc.  I'm running on
 Snow Leopard and trying to 'sudo port -d -D . install' either of the
 attached virtual box port archives (with the CWD being that of the
 necessary Portfile) resulted in /dev/null being deleted from my system.
 The lack of /dev/null then resulted in the port build failing (as well as
 many other programs on my machine failing to work, i.e. the 'port' command
 just failed with the error "Illegal instruction").

 I used DTrace to debug the problem (I can share the details if you want),
 but basically, it comes down to the virtual box build system passing "-o
 /dev/null" to gcc, which eventually gets passed to ld, and ld tries to
 remove the file its writing its output to if it already exists.  Hence
 /dev/null being deleted.

 I fixed this by patching Config.kmk.  I'll attach the diff to this ticket
 in case anyone else wants it.

 This may be a personal problem, but I figured I would share in case anyone
 else ran into this.

 To re-create /dev/null, i had to enable the root user, logout, login on
 the console (using ">console") and then "mknod /dev/null c 3 2 && chmod
 666 /dev/null".

-- 
Ticket URL: <https://trac.macports.org/ticket/28469#comment:11>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list