[MINC-users] minc-toolkit-v2 libz issue

Vladimir S. FONOV vladimir.fonov at gmail.com
Mon Jul 11 17:46:48 EDT 2016


probably link order , gzopen is from Zlib and znzlib is from libnifti

On 2016-07-11 05:25 PM, Soren Christensen wrote:
> It seems to give the same result.
> What is causing this - link order or something like that?
>
> On Mon, Jul 11, 2016 at 9:15 AM, Vladimir S. FONOV <vladimir.fonov at gmail.com
>> wrote:
>
>> Try develop, i think i fixed this issue there
>>
>>
>> On 2016-07-11 12:09 PM, Soren Christensen wrote:
>>
>>> Hi Vlad,
>>>    Master branch
>>>
>>> On Mon, Jul 11, 2016 at 8:57 AM, Vladimir S. FONOV <
>>> vladimir.fonov at gmail.com
>>>
>>>> wrote:
>>>>
>>>
>>> Hello,
>>>>
>>>>
>>>> are you using master or develop branch?
>>>>
>>>>
>>>> On 2016-07-11 11:47 AM, Soren Christensen wrote:
>>>>
>>>> Hi,
>>>>>     I have a library resolution problem when building minc-toolkit-v2 on
>>>>> ubuntu 16.04.
>>>>> Cmake is set to NOT use the system libz, so I am puzzled that what seems
>>>>> to
>>>>> be a libz function fails to resolve another libz function in the libz
>>>>> provided by the package - what am I missing?
>>>>> Thanks!
>>>>> Soren
>>>>>
>>>>> [ 24%] Linking C executable mnc2nii
>>>>> ../../external//usr/local/MNI/lib/libznz.a(znzlib.o): In function
>>>>> `znzopen':
>>>>> znzlib.c:(.text+0x7d): undefined reference to `gzopen'
>>>>> ../../external//usr/local/MNI/lib/libznz.a(znzlib.o): In function
>>>>> `znzdopen':
>>>>> znzlib.c:(.text+0x11d): undefined reference to `gzdopen'
>>>>> ../../external//usr/local/MNI/lib/libznz.a(znzlib.o): In function
>>>>> `Xznzclose':
>>>>> znzlib.c:(.text+0x17d): undefined reference to `gzclose'
>>>>> ../../external//usr/local/MNI/lib/libznz.a(znzlib.o): In function
>>>>> `znzread':
>>>>> znzlib.c:(.text+0x24c): undefined reference to `gzread'
>>>>> .....
>>>>> _______________________________________________
>>>>> MINC-users at bic.mni.mcgill.ca
>>>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>>>>
>>>>>
>>>>>
>>>> --
>>>> Best regards,
>>>>
>>>>    Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
>>>> _______________________________________________
>>>> MINC-users at bic.mni.mcgill.ca
>>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>>>
>>>> _______________________________________________
>>> MINC-users at bic.mni.mcgill.ca
>>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>>
>>>
>>
>> --
>> Best regards,
>>
>>   Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com
>> _______________________________________________
>> MINC-users at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>>
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


-- 
Best regards,

  Vladimir S. FONOV ~ vladimir.fonov <at> gmail.com


More information about the MINC-users mailing list