Bug 132054 - STLport 5.x marked as ~ppc but it's unsupported realy
Bug#: 132054 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: cpp@gentoo.org Reported By: morgoth6@gmail.com
Component: Development
URL: 
Summary: STLport 5.x marked as ~ppc but it's unsupported realy
Keywords:  
Status Whiteboard: 
Opened: 2006-05-02 13:26 0000
Description:   Opened: 2006-05-02 13:26 0000
I see STLport 5.x is marked as ~ppc, but this version is completly not
compatible without some patchings.

First broken thing is endianese detection in STLport/stlport/stl/_config.h it
can be fixed by a simple patch, but there is also many other compilation
failures later on. I try to fix that but I simply give up :(

------- Comment #1 From Marcin Kurek 2006-05-13 05:58:24 0000 -------
Ping ?

------- Comment #2 From David Gurvich 2006-06-16 08:15:21 0000 -------
The only version of STLport that I can install is 4.6.2 on ~ppc system.  I get
the same can't determine endianness error.  

------- Comment #3 From Marcin Kurek 2006-06-26 16:30:36 0000 -------
Ech ... this bug was enough time here now. I did a small investigation of this
problem using STLport 5.0.2 and I was able to compile it on my machine.

------- Comment #4 From Marcin Kurek 2006-06-26 16:33:21 0000 -------
Created an attachment (id=90222) [details]
endianese detect fix

This one solved endianese detection problems for me. I am not completly sure is
endian.h header is present on all systems, but I belive it is for all archs
supported by Gentoo ATM.

------- Comment #5 From Marcin Kurek 2006-06-26 16:36:09 0000 -------
Created an attachment (id=90223) [details]
ns fix

This one fix

g++ -I. -I../stlport -DLIBCIO= -D_POSIX_SOURCE -D_SVID_SOURCE -D__null=0L -O2
-fPIC dll_main.cpp -c -o ../lib/obj/LINUX/ReleaseD/dll_main.o
../stlport/cstdlib:89: error: 

------- Comment #6 From Marcin Kurek 2006-06-26 16:36:09 0000 -------
Created an attachment (id=90223) [details]
ns fix

This one fix

g++ -I. -I../stlport -DLIBCIO= -D_POSIX_SOURCE -D_SVID_SOURCE -D__null=0L -O2
-fPIC dll_main.cpp -c -o ../lib/obj/LINUX/ReleaseD/dll_main.o
../stlport/cstdlib:89: error: ‘__std_alias::llabs’ has not been declared
../stlport/cstdlib:90: error: ‘__std_alias::lldiv_t’ has not been declared
../stlport/cstdlib:91: error: ‘__std_alias::lldiv’ has not been declared
../stlport/cstdlib: In function ‘long long int abs(long long int)’:
../stlport/cstdlib:133: error: ‘llabs’ is not a member of ‘__std_alias’
../stlport/cstdlib: In function ‘lldiv_t div(long long int, long long int)’:
../stlport/cstdlib:134: error: ‘lldiv’ is not a member of ‘__std_alias’

It seems llabs/lldiv aren't exported to std namespace at last not on my system
(Glibc 2.4-r3 && GCC 4.1.1) Looking at cstdlib from my system gives me this
solution. Not perfect, but working.

------- Comment #7 From Marcin Kurek 2006-06-26 16:37:37 0000 -------
Created an attachment (id=90224) [details]
ebuild with both patches

------- Comment #8 From Tobias Scherbaum 2006-07-22 12:23:15 0000 -------
Adding maintainers.

------- Comment #9 From David Gurvich 2006-10-02 11:16:39 0000 -------
Created an attachment (id=98615) [details]
openoffice build fails without the patch, not sure of the connection.

The sal portion of openoffice-2.0.4 fails with xml2cmp errors without patch. 
From https://bugs.gentoo.org/146242 .

------- Comment #10 From Hanno Meyer-Thurow 2006-12-23 15:37:06 0000 -------
Just wondering if STLport-5.1.0 solves this issue?
See bug #158981 for ebuild.

------- Comment #11 From Tiziano Müller 2006-12-23 17:11:52 0000 -------
Reassigning this bug to coordinate the keywording.
Ok, I've committed a version bump to 5.1.0 a couple of minutes ago and I
dropped ~ppc and ~ppc64 for that reason.
Dear arch-team members: Please test this package on your platform and re-add
your keywords when the unittests succeed. Thanks in advance!

------- Comment #12 From Markus Rothe 2006-12-31 12:10:08 0000 -------
thanks! ~ppc64 added.

------- Comment #13 From Joe Jezak 2007-01-08 22:31:41 0000 -------
Marked ~ppc and closing since we're the last arch team CC'd.

Thanks!