[MacPorts] #35808: VirtualBox 4.1.20_0, fail to find libcrypto
MacPorts
noreply at macports.org
Wed Feb 6 09:58:41 PST 2013
#35808: VirtualBox 4.1.20_0, fail to find libcrypto
-------------------------+----------------------
Reporter: xl64100@… | Owner: royliu@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Resolution: | Keywords:
Port: virtualbox |
-------------------------+----------------------
Changes (by ryandesign@…):
* cc: nxwolverine@… (added)
Comment:
@nxwolverine, as stated above, the version of clang in Xcode 4.3 (and
earlier) does not support LIBRARY_PATH, and therefore, because the
virtualbox build system has apparently not been programmed to use the
correct -L flags, it cannot find the libraries it needs.
The workaround for those using Xcode 4.0 through 4.2 inclusive would be to
force the use of the gcc-4.2 compiler:
{{{
sudo port clean virtualbox
sudo port install virtualbox configure.compiler=gcc-4.2
}}}
The workaround for those using Xcode 4.3.x (since it does not include
gcc-4.2) would be to install the apple-gcc42 port and use that:
{{{
sudo port clean virtualbox
sudo port install apple-gcc42
sudo port install virtualbox configure.compiler=apple-gcc-4.2
}}}
Users of Xcode 4.4 and later are not affected because the included version
of clang supports LIBRARY_PATH.
Users of Xcode 3.x are not affected because on those versions of Xcode
MacPorts will automatically use gcc and not clang.
--
Ticket URL: <https://trac.macports.org/ticket/35808#comment:27>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list