[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [porting-dev] ERROR: /usr/lib/libstlport_gcc.so.4.5: undefined symbol: sqrtl



Hi Jan,

This is a glibc bug that was fixed recently for ppc linux.  Please use the 
attached patch to fix your glibc-2.2.5 version which I downloaded from the 
libc-alpha mailing list:

diff -u -p -a -u -p -a -r1.2 sysdeps/powerpc/fpu/w_sqrt.c
--- sysdeps/powerpc/fpu/w_sqrt.c        6 Jul 2001 04:56:02 -0000       1.2
+++ sysdeps/powerpc/fpu/w_sqrt.c        10 May 2002 08:40:46 -0000
@@ -1,5 +1,5 @@
 /* Single-precision floating point square root.
-   Copyright (C) 1997 Free Software Foundation, Inc.
+   Copyright (C) 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.

    The GNU C Library is free software; you can redistribute it and/or
@@ -139,3 +139,8 @@ weak_alias (__sqrt, sqrt)
 /* Strictly, this is wrong, but the only places where _ieee754_sqrt is
    used will not pass in a negative result.  */
 strong_alias(__sqrt,__ieee754_sqrt)
+
+#ifdef NO_LONG_DOUBLE
+weak_alias (__sqrt, __sqrtl)
+weak_alias (__sqrt, sqrtl)
+#endif


This should do the trick.

Kevin

Kevin
On June 27, 2002 08:07, Jan-Hendrik Palic wrote:
> Hi Kevin and all OOo-developers
>
> by building OOo 1.0.1 on PPC with gcc-3.1 we got this error-message:
> (note, in the directories, it says, that is openoffice.org-1.0.0, but
> that is not right yet ;) it is surely 1.0.1 :)))) ):
>
> Making: ../unxlngppc.pro/lib/libsalhelper3gcc3.so
> g++-3.1 -c -fPIC -o ../unxlngppc.pro/slo/salhelper3gcc3_version.o -DUNX
> -I../unxlngppc.pro/inc
> /home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoffic
> e.org-1.0.0/build-tree/oo_1.0_src/solenv/src/version.cxx g++-3.1 -shared
> -L../unxlngppc.pro/lib -L../lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solenv/unxlngppc/lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solver/641/unxlngppc.pro/lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solenv/unxlngppc/lib -L/lib
> -L/usr/lib -L/usr/local/lib -L/usr/lib/j2se/1.3/lib
> -L/usr/lib/j2se/1.3/jre/lib/ppc -L/usr/lib/j2se/1.3/jre/lib/ppc/classic
> -L/usr/lib/j2se/1.3/jre/lib/ppc/native_threads
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/debian/local/stlport-home/lib -L/usr/X11R6/lib
> ../unxlngppc.pro/slo/salhelper3gcc3_version.o
> ../unxlngppc.pro/slo/salhelper3gcc3_description.o -o
> ../unxlngppc.pro/lib/libsalhelper3gcc3.so ../unxlngppc.pro/slo/dynload.o
> ../unxlngppc.pro/slo/simplereferenceobject.o -lsal -ldl -lpthread -lm
> -Wl,-Bdynamic -lstlport_gcc_3.1 -lstdc++
> /home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoffic
>e.org-1.0.0/build-tree/oo_1.0_src/solenv/bin/checkdll.sh
> -L../unxlngppc.pro/lib -L../lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solenv/unxlngppc/lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solver/641/unxlngppc.pro/lib
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/build-tree/oo_1.0_src/solenv/unxlngppc/lib -L/lib
> -L/usr/lib -L/usr/local/lib -L/usr/lib/j2se/1.3/lib
> -L/usr/lib/j2se/1.3/jre/lib/ppc -L/usr/lib/j2se/1.3/jre/lib/ppc/classic
> -L/usr/lib/j2se/1.3/jre/lib/ppc/native_threads
> -L/home/palic/Files/Projekte/chroot/home/palic/OpenOffice/debian/openoff
>ice.org-1.0.0/debian/local/stlport -home/lib -L/usr/X11R6/lib
> ../unxlngppc.pro/lib/libsalhelper3gcc3.so Checking DLL
> ../unxlngppc.pro/lib/libsalhelper3gcc3.so ...: ERROR:
> /usr/lib/libstlport_gcc.so.4.5: undefined symbol: sqrtl dmake:  Error
> code 3, while making '../unxlngppc.pro/lib/libsalhelper3gcc3.so' dmake: 
> '../unxlngppc.pro/lib/libsalhelper3gcc3.so' removed.
>
> That is right, sqrtl is in the libstlport librarie an undefined symbol.
> In Debian, we link OpenOffice.org agains libstlport 4.5.3, but I checked
> the libstlport 4.5.0 from OpenOffice.org source compiled it with gcc-3.1
> on PPC and i had the same sqrtl was undefined.
>
> Then I greped the source ... about something which sounds like sqrtl:
>
> palic@shaun:~/Files/Projekte/OpenOffice/oo_src-1.0.1$ grep -r sqrtl *
> palic@shaun:~/Files/Projekte/OpenOffice/oo_src-1.0.1$ grep -r SQRTL *
> palic@shaun:~/Files/Projekte/OpenOffice/oo_src-1.0.1$
>
> There is seems nothing related to that.
> The mysterious thing is, that Kevin has a fully build and it seems, that
> he did not get this problem or I forgot something.
>
> With gcc-2.95, the symbol sqrtl is not present in libstlport .. :(
>
> Anyone a hint?
> Why is the DLL-Checker checking these, when this is not used?
>
> 	Regards and thnx
> 			Jan


-- 
To UNSUBSCRIBE, email to debian-openoffice-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: