trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2017

Re: [trinity-devel] Linker error tdelibs

From: Vincent Reher <tde@...>
Date: Sat, 30 Dec 2017 08:21:18 -0800
On Friday 29 December 2017, Kai Peter wrote:
> On 2017-12-28 15:50, Sl�vek Banko wrote:
> > Hi Kai,
> > 
> > the same problem I have seen once reported - I suspect on Slackware. 
> > But I
> > do not know how he solved it.
> > 
> > The findAttr function is defined in htmlattrs.c, which is directly
> > included into htmlhashes.cpp => so there is no reason to be findAttr
> > considered as an external reference.
> > 
> > The only thing that comes to my mind is that findAttr is defined as 
> > inline
> > and the compiler does not perform the inlining of this function for 
> > some
> > reason.
> > 
> > Cheers
> I did comment out the inline definitions and it did compile/link well. 
> Lets see if there are side effects later on.
> 
> Thanks
> Kai
> 

Kai,

I've been building TDE on Gentoo for some time.  In comparing our respective compiler options used to build tdelibs, I notice that I had compiled with "-fvisibility=hidden -fvisibility-inlines-hidden".  I think this *might* have something to do with your error.  Since I had not actually added these options to CXXFLAGS, I believe that they are inserted by cmake when you pass it "-DWITH_GCC_VISIBILITY=ON".

Vince