[vtk-developers] libvtkproj4 problems with gcc on Mac
Dan Lipsa
dan.lipsa at kitware.com
Fri Feb 19 15:48:41 EST 2016
Hi Bill,
I don't have access to a machine with that configuration.
Can you try
dsymutil -s ./lib/libvtkproj4-7.1.dylib | grep acquire_lock
It seems that this symbol should be defined as an empty function
if PROJ_USE_PTHREADS:BOOL is off.
Also it seems that mangling should happen correctly.
On Fri, Feb 19, 2016 at 2:01 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
> Hi Bill,
> I will take a look at this.
>
> On Fri, Feb 19, 2016 at 1:59 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>
>> It was OFF, but turning it on does not help.I think it is an issue
>> with my old gcc compiler.
>>
>> I'd still like to build VTK with it.
>>
>>
>> On Fri, Feb 19, 2016 at 1:44 PM, David Gobbi <david.gobbi at gmail.com>
>> wrote:
>> > Hi Bill,
>> >
>> > You can check to see if PROJ_USE_PTHREADS:BOOL=ON in your cache.
>> > I did a quick look through lib_proj.cmake and FindThreads.cmake and
>> didn't
>> > see anything suspicious. No machines that I access have llvm-gcc
>> anymore.
>> >
>> > - David
>> >
>> >
>> > On Fri, Feb 19, 2016 at 10:08 AM, Bill Lorensen <
>> bill.lorensen at gmail.com>
>> > wrote:
>> >>
>> >> Folks,
>> >>
>> >> I tried to build VTK on my Mac today with
>> >> i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc.
>> >> build 5658) (LLVM build 2336.1.00)
>> >>
>> >> My clang build is fine.
>> >>
>> >> I get these link errors:
>> >> Linking C shared library ../../../../lib/libvtkproj4-7.1.dylib
>> >> Undefined symbols for architecture x86_64:
>> >> "_vtk_pj_acquire_lock", referenced from:
>> >> _vtk_pj_get_default_ctx in pj_ctx.c.o
>> >> _vtk_pj_ctx_alloc in pj_ctx.c.o
>> >> _vtk_pj_gc_findcatalog in pj_gridcatalog.c.o
>> >> _vtk_pj_gridinfo_load in pj_gridinfo.c.o
>> >> _vtk_pj_gridlist_from_nadgrids in pj_gridlist.c.o
>> >> ...
>> >> "_vtk_pj_release_lock", referenced from:
>> >> _vtk_pj_get_default_ctx in pj_ctx.c.o
>> >> _vtk_pj_ctx_alloc in pj_ctx.c.o
>> >> _vtk_pj_gc_findcatalog in pj_gridcatalog.c.o
>> >> _vtk_pj_gridinfo_load in pj_gridinfo.c.o
>> >> _vtk_pj_gridlist_from_nadgrids in pj_gridlist.c.o
>> >> _vtk_pj_insert_initcache in pj_initcache.c.o
>> >> _vtk_pj_clear_initcache in pj_initcache.c.o
>> >> ...
>> >> ld: symbol(s) not found for architecture x86_64
>> >> collect2: ld returned 1 exit status
>> >> make[2]: *** [lib/libvtkproj4-7.1.1.dylib] Error 1
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtk-developers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160219/af5121ea/attachment.html>
More information about the vtk-developers
mailing list