RE: glibc warnings

"Eugene Zolenko" <EugeneZolenko-XYgkjQFSZqy1Z/[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
Isak Savo:

> This is a delicate decision. On one hand, doing it as an install time 
> check (using 'require') is the proper way to do it. But since QT is 
> actually a system library, we generally recommend NOT using
autopackage 
> to install it in which case statically linking or RPATH'ing is the 
> way to go :-)

Yes, it shouldn't be installed as a system library with autopackage (not
in /usr/lib that is), only as private copy (and skeleton script should
be able to detect both system and private Qt, if you are willing to risk
relying on system that is).

Justin Karneges:

> Qt follows the simple interface compatibility scheme of
major.minor.patch.
> 4.2.2 would indeed be backwards compatible with 4.2.0.  Similarly,
4.2.0
> would be forwards compatible with 4.2.2.  The interface version of
both
> would be 4.2.  Qt has always made these interface guarantees.  Whether
> they live up to their promise is another matter.

The problem is that SONAME for Qt libs doesn't have interface version.
For QtGui it is libQtGui.so.4 (readelf -d libQtGui.so.4.2.2). So yes,
4.2.2 and 4.2.0 might be ok to dynamically link to, but you can't link
to 4.1.x if you build with 4.2.x, since they are binary incompatible.
And yet what linker will look for is libQtGui.so.4, not libQtGui.so.4.2,
thus possibly finding Qt 4.0, 4.1, 4.2 or 4.3.

So it seems Trolltech and Linux linker disagree on what exactly major
version means and how it is different from interface version :).

The Linux way is to have libQtGui4.so.2, then all problems will go away.

> Ready for mine? :)
> 
> Copy mkspecs/common/g++.conf to mkspecs/common/apg++.conf, with the 
> latter file containing the gcc/apgcc and g++/apg++ substitutions.  
> Copy mkspecs/linux-g++ (it's a directory) to mkspecs/linux-apg++.  
> Change mkspecs/linux-apg++/qmake.conf to "include" apg++.conf rather 
> than g++.conf.
> 
> ./configure -platform linux-apg++ (among other options)
> 
>Probably overkill for personal use. :)  However, if I have good luck 
> with autopackage and Qt, I might suggest to Trolltech that they add 
> a linux-apg++ mkspec just like this so you can build it out of the
box.

Ah, the proper way :). It is never overkill, thanks :).


---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.