[vtkusers] Build error on Mac OS 10.4 - vtk 5.0

Doug McCorkle mccdo at iastate.edu
Thu Apr 13 23:25:32 EDT 2006


> Doug McCorkle wrote:
>> Hello,
>>     I am trying to build vtk 5.0 on Mac OS 10.4 and am running into this
>> error:
>>
>> Building shared library
>> /private/var/automount/mnt/rigby/home11/users/mccdo/VTK/vtk-5.0/build-darwin_10.4/bin/libvtkImaging.dylib...
>> ld: multiple definitions of symbol ___divdi3
>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_divdi3.o) private
>> external definition of ___divdi3 in section (__TEXT,__text)
>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_divdi3_s.o)
>> definition of ___divdi3
>> ld: multiple definitions of symbol ___udivdi3
>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_udivdi3.o) private
>> external definition of ___udivdi3 in section (__TEXT,__text)
>> /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_udivdi3_s.o)
>> definition of ___udivdi3
>> /usr/bin/libtool: internal link edit command failed
>
> Some versions of cmake put an extra "-lgcc" on the linker line. In mine
> it is in Modules/CMakeDefaultMakeRuleVariables.cmake. Removing this
> solves the problem for me (and for Fink where this is done in a
> patchscript for the cmake package).
>

I upgraded my cmake and that fixed all my problems. I would have never
guessed that one. Thanks for the insight!

Doug




More information about the vtkusers mailing list