Apache OpenOffice (AOO) Bugzilla – Issue 26675
libpng.so is linked against unnecessary libraries ($STDSHL)
Last modified: 2004-05-12 13:45:26 UTC
A file libpng.so, which is built in gtk/libpng module, is linked against $STDSHL that is unnecessary. When I build OOo with Forte 8 on Solaris sparc, no error is reported. But when I build it with gcc on Solaris x86, some symbol resolution error happens in gtk/gtk module. Solaris 9 Sparc with Forte 8 [yasuaki@wind lib]$ ldd libpng.so libpthread.so.1 => /usr/lib/libpthread.so.1 libCrun.so.1 => /usr/lib/libCrun.so.1 libm.so.1 => /usr/lib/libm.so.1 libc.so.1 => /usr/lib/libc.so.1 libstlport_sunpro.so => (file not found) libw.so.1 => /usr/lib/libw.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libthread.so.1 => /usr/lib/libthread.so.1 librt.so.1 => /usr/lib/librt.so.1 libaio.so.1 => /usr/lib/libaio.so.1 libmd5.so.1 => /usr/lib/libmd5.so.1 /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 /usr/platform/SUNW,Sun-Blade-100/lib/libmd5_psr.so.1 but, libpng.so is not needed to link agains libstlport_sunpro.so, libCrun.so and so on.
Created attachment 13904 [details] libpng link library patch
I'm sorry, I forgot to write cvs branch name. CVS branch is cws_src680_nwf.
applied in CWS nwf
setting target, OS and type
I found gtk_libpng-1.2.1.patch.patch has problem. When I compile on Solaris with SunONE 8, I need to link against libm and libc explicitly because $LINKFLAGS contains -library=no%Cstd. Index: gtk/libpng-1.2.1.patch =================================================================== RCS file: /cvs/external/gtk/Attic/libpng-1.2.1.patch,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 libpng-1.2.1.patch --- gtk/libpng-1.2.1.patch 18 Mar 2004 14:33:04 -0000 1.1.2.2 +++ gtk/libpng-1.2.1.patch 19 Mar 2004 11:25:04 -0000 @@ -3,7 +3,7 @@ *************** *** 1 **** ! dummy ---- 1,38 ---- +--- 1,42 ---- ! PRJ=../../../.. ! ! PRJNAME=libpng @@ -38,7 +38,11 @@ ! SHL1TARGET=png ! SHL1IMPLIB=ipng ! SHL1STDLIBS=-lzlib +! .IF "$(OS)" == "SOLARIS" && "$(COM)"=="C52" +! STDSHL=-lm -lc +! .ELSE ! STDSHL= +! .ENDIF ! SHL1OBJS=$(SLOFILES) ! ! .INCLUDE : target.mk
commited
verified
merged in 680m39