Message: previous - next
Month: August 2012

Re: [trinity-users] Build kdebase fails - undefined reference to `kdemain'

From: Mike Howard <mike@...>
Date: Tue, 14 Aug 2012 18:45:07 +0100
On 14/08/2012 09:36, Mike Howard wrote:
> Hi All,
> Due to the issue I've come across when stipulating '-DWITH_SHADOW' 
> when building tdebase (see my last thread 'tdebase issue'), I decided 
> to to build with ' -DWITH_ALL_OPTIONS=ON &
>   -DBUILD_ALL=ON ' just to see what happens :)
> Anyway, this change has caused me to run into the "undefined reference 
> to `kdemain'" issue all over again. Taking out the ' 
> -DWITH_ALL_OPTIONS=ON' from the build allows all to proceed successfully.
> So my questions are should these references to kdemain exist in the 
> source code or not and if they are supposed to, why am I getting the 
> 'undefined reference' failure?
> I'm building on a (fedora) system that has not had any previous 
> versions of TDE and I'm building from a clean pull from the git 
> repository (
Hmm, it seems that using '-DWITH_ALL_OPTIONS=ON' causes 
'-fvisibility=hidden -fvisibility-inlines-hidden' to be added to 
CMAKE_C_FLAGS and CMAKE_CXX_FLAGS which seems to cause the 'undefined 
reference' failure. Preventing the addition to the 'flags' allows the 
build to proceed to a successful completion.

Not sure what consequences/benefits/drawbacks maybe or even if, by using 
'-DWITH_ALL_OPTIONS=ON', I'm actually getting 'WITH_SHADOW', which is 
what got me here in the first place.

Any question is easy if you know the answer!