trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

Re: [trinity-devel] tdebase FTBFS (unpatched) undefined reference to `kdemain'

From: Slávek Banko <slavek.banko@...>
Date: Sun, 19 Jan 2014 11:24:42 +0100
On Sunday 19 of January 2014 11:12:32 David C. Rankin wrote:
> On 01/19/2014 01:41 AM, David C. Rankin wrote:
> > On 01/18/2014 11:36 PM, David C. Rankin wrote:
> >> CMakeFiles/kcontrol.dir/kcontrol_tdeinit_executable.cpp.o: In function
> >> `main': kcontrol_tdeinit_executable.cpp:(.text+0x1c): undefined
> >> reference to `kdemain' collect2: error: ld returned 1 exit status
> >
> > Opened as:
> >
> > http://bugs.pearsoncomputing.net/show_bug.cgi?id=1832
>
> could this be gcc?
>
>   gcc 4.8.2-7
>
> Interesting (very old) but maybe on point:
>
> https://bugs.kde.org/show_bug.cgi?id=93347
>
> THAT'S IT!!!
>
> removing:     -DWITH_GCC_VISIBILITY=ON \
>
> allows tdebase to continue building. That still means there are issues in
> tdebase that need fixing, but 4 hours later (and tired of searching) we at
> least know what the heck it is!
>
> (thanks to a 2004 bug report -- a decade ago)
>
> I don't know what needs to be fixed, but obviously if Darrel is building
> with GCC_VISIBILITY=ON and with gcc 4.8.2-7 that is causing failure, then
> we need to figure out what the root of the problem is and then fix it with
> preprocessor conditional or fix the code. I don't understand the
> GCC_VISIBILITY implications entirely, but depending on the setting build
> failures are occurring.

On Debian Jessie is gcc 4.8.2, tdebase is built 
with -DWITH_GCC_VISIBILITY="ON" and the problem does not occur.

Slavek
--