#33989: VTK: error: 'strcmp' was not declared in this scope -----------------------------------+---------------------------------------- Reporter: beany_kelly@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: VTK -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * cc: beany_kelly@… (removed) * keywords: vtk => * owner: macports-tickets@… => css@… * port: vtk => VTK Old description:
Hi. I just tried an installation of VTK (the default, 4.4.2), which failed, apparently with the following error:
:info:build c++: unrecognized option '-no-cpp-precomp'
I'm on a Macbook Pro running 10.6.8, with an up-to-date MacPorts installation, and gcc 4.5.3 as my default compiler collection.
I'm attaching the install log.
New description: Hi. I just tried an installation of VTK (the default, 4.4.2), which failed, apparently with the following error: {{{ :info:build c++: unrecognized option '-no-cpp-precomp' }}} I'm on a Macbook Pro running 10.6.8, with an up-to-date MacPorts installation, and gcc 4.5.3 as my default compiler collection. I'm attaching the install log. -- Comment: MacPorts does not use your default compiler collection. On Snow Leopard with Xcode 3.x it will use gcc-4.2; with Xcode 4.0 or 4.1 it will use llvm-gcc-4.2; and with Xcode 4.2 it will use clang. What version of Xcode do you have? At least, that is what's supposed to happen, but we see in the log it's actually using /opt/local/bin/gcc. That's a bug in the port; the port needs to ensure it's UsingTheRightCompiler. -- Ticket URL: <https://trac.macports.org/ticket/33989#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS