Error compiling kdelibs4_snapshot on AMD64

Peter Hedlund peter at peterandlinda.com
Thu May 18 23:01:34 BST 2006


> On Thursday 18 May 2006 22:09, Andras Mantia wrote:
>> On Thursday 18 May 2006 23:02, Peter Hedlund wrote:
>> > The "recompile with -fPIC" seems bogus to me since that's the
>> > default.
>> >
>> > gcc is gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)
>> > kernel is 2.6.16-gentoo-r7
>>
>> I think this is the visibility bug in earlier gcc versions on x86_64.
>> Try to disable visibility support. I'm not sure how to do this with
>> cmake, as I see there is only a check to enable it, but not a flag to
>> disable it:
>>    # visibility support
>>    check_cxx_compiler_flag(-fvisibility=hidden
>> __KDE_HAVE_GCC_VISIBILITY)
>>    if (__KDE_HAVE_GCC_VISIBILITY)
>>       set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
>>    endif (__KDE_HAVE_GCC_VISIBILITY)
> 
> Please tell me whether commenting this out works for you, we'll add a
> switch then.

Yes, that was it. I should have known...

Thanks,
Peter




More information about the kde-core-devel mailing list