Opened 19 years ago

Closed 19 years ago

#3895 closed defect (fixed)

BUG: cmake-2.0.6 doesn't link VTK properly using gcc 4

Reported by: cssdev@… Owned by: cssdev@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

CMake 2.0.6 is not able to properly link VTK when compiling with gcc 4. A post on the vtkusers mailing list [1] indicates that the problem is due to the CMake module file CMakeDefaultMakeRuleVariables.cmake. This file explicitly adds "-lgcc" to the linker command line, and that causes problems with Apple's gcc. If that extra item is removed, then compilation proceeds without any trouble. An attached patch removes the explicit link.

The larger issue is whether this is an obscure bug in Apple's gcc implementation, as it appears with several other open source packages as well. (See BUG #3032, for example.) I am not familiar with smpeg, but maybe the resolution it implemented can be applied for CMake and/or VTK? I also tried the approach recommended in BUG #2927, but it did not resolve this error.

[1] http://public.kitware.com/pipermail/vtkusers/2005-May/079721.html

Attachments (2)

patch-CMakeDefaultMakeRuleVariables.cmake.diff (796 bytes) - added by cssdev@… 19 years ago.
Patch to remove explicit -lgcc on Mac OS X
patch-Portfile.diff (1.2 KB) - added by cssdev@… 19 years ago.
Portilfe patch to include the above fix

Download all attachments as: .zip

Change History (4)

Changed 19 years ago by cssdev@…

Patch to remove explicit -lgcc on Mac OS X

Changed 19 years ago by cssdev@…

Attachment: patch-Portfile.diff added

Portilfe patch to include the above fix

comment:1 Changed 19 years ago by cssdev@…

Status: newassigned

comment:2 Changed 19 years ago by toby@…

Resolution: fixed
Status: assignedclosed

committed

Note: See TracTickets for help on using tickets.