RE: gdk-pixbuf 0.9.0 + libpng 1.0.8 + solaris 2.7 anyone?



Okay, making progress here.  Noticed you have -s to zlip configure script
on your page.  Went back:

...zlib-1.1.3$ ./configure -s
Checking for shared library support...
No shared library suppport; try without defining CC and CFLAGS
Building static library libz.a version 1.1.3 with /usr/local/bin/gcc.
Checking for unistd.h... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.

$ unset CC
$ unset CFLAGS

Then:

..ive/src/zlib-1.1.3$ ./configure -s
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.1.3 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.

Then:

$ ls -la /usr/local/lib/libz.so
lrwxrwxrwx   1 root     other         13 Nov 27 21:31 /usr/local/lib/libz.so -> libz.so.1.1.3

Then remake libpng:

$ sudo make install
Password:
[..]

$ ldd /usr/local/lib/libpng.so
        libz.so =>       /usr/local/lib/libz.so


Then in gdk-pixbuf-0.9.0:

$ make distclean
$ ./configure
[...]
checking whether to build gmodulized gdk-pixbuf... yes
checking whether dynamic modules work... yes
$ export CFLAGS="-msupersparc -O9 -fPIC"
$ make


gdk-pixbuf-0.9.0$ find . -name "libpixbufloader-*so"
./gdk-pixbuf/.libs/libpixbufloader-tiff.so
./gdk-pixbuf/.libs/libpixbufloader-xpm.so
./gdk-pixbuf/.libs/libpixbufloader-ras.so
./gdk-pixbuf/.libs/libpixbufloader-bmp.so
./gdk-pixbuf/.libs/libpixbufloader-pnm.so
./gdk-pixbuf/.libs/libpixbufloader-png.so
./gdk-pixbuf/.libs/libpixbufloader-ico.so
./gdk-pixbuf/.libs/libpixbufloader-gif.so

$ ldd /usr/local/lib/gdk-pixbuf/loaders/libpixbufloader-png.so
        libpng.so.2 =>   /usr/local/lib/libpng.so.2
        libz.so =>       /usr/local/lib/libz.so
        libc.so.1 =>     /lib/libc.so.1
        libdl.so.1 =>    /lib/libdl.so.1


As soon as I right-clicked on my panel, gnome tanked and restarted.
After that, all Icons loaded fine.  The solution was 3 dependecies deep!

I now have to wonder how many things I've improperly compiled under
Solaris ;-)

The GNOME people definately need to make a linkt to your page from their
source installation page!

Thanks again!

--Brian


On Mon, 27 Nov 2000, Brian A. Seklecki wrote:

>
> My path: $ echo $PATH
> /usr/local/bin/:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/dt/bin:/usr/X/bin:/opt/NSCPcom:/usr/ccs/bin:/usr/ucb:/export/home/lavalamp/bin
>
> LD:
>
> $ which ld
> /usr/ccs/bin/ld
>
> -----------------------
>
> I re-installed zlib 1.1.3:
>
> -rwxr-xr-x   1 root     other      70452 Nov 27 21:19 /usr/local/lib/libz.a
>
> ---
>
> I then rebuilt lib PNG 1.0.8:
>
> $ libpng-1.0.8/scripts$ cp makefile.solaris ../Makefile
>
> Ldd still shows nothing.  I'll keep digging.  This is all new to me.
>
> --Brian
>
>
> On Mon, 27 Nov 2000, Paul Barnfather wrote:
>
> > Brian,
> >
> > You don't want GNU ld - it has some incompatibilities with Solaris.
> >
> > What you do want is /usr/ccs/bin/ld - so it's important that this version
> > is first on you path.
> >
> > It seems that you libpng hasn't linked correctly to libz, which will
> > certainly break things. `ldd /usr/local/lib/libpng.so` should give:
> >         libz.so =>       /usr/local/lib/libz.so
> >
> > If you fix your path and re-configure/build libpng, all should be well...
> >
> > Good luck,
> >
> > Paul.
> >
> > > -----Original Message-----
> > > From: Brian A. Seklecki [mailto:lavalamp burghcom com]
> > > Sent: 27 November 2000 21:52
> > > To: Paul Barnfather
> > > Subject: RE: gdk-pixbuf 0.9.0 + libpng 1.0.8 + solaris 2.7 anyone?
> > >
> > >
> > >
> > >
> > >
> > > On Mon, 27 Nov 2000, Paul Barnfather wrote:
> > >
> > > > Brian,
> > > >
> > > > I'll try to look into what's happening here.
> > > > What does
> > > >  ldd /usr/local/lib/libpng.so
> > >
> > > It returns no output.
> > >
> > > > say?
> > > > Did you
> > > >  rm config.cache
> > > > after fixing your path, before rerunning ./configure?
> > >
> > > I will try to re-compile libpng and gdk-pixbuf again this evening.  I keep
> > > seeing configure scripts tell me my 'ld' is not GNU. Perhaps I will try to
> > > obtain a GNU version.
> > >
> > > Obviously this is a mistake on my part.  Let's see what we can do.
> > >
> > > Thanks,
> > > -Brian
> > >
> > > >
> > > > In the meantime, did you find my notes at
> > > > http://www.clanger9.demon.co.uk/computer/gnome ?
> > > > There might be something there that will help.
> > > >
> > > > Paul.
> > > >
> > > > -----Original Message-----
> > > > From: gnome-list-admin gnome org [mailto:gnome-list-admin gnome org]On
> > > > Behalf Of Brian A. Seklecki
> > > > Sent: 27 November 2000 04:02
> > > > To: gnome-list gnome org
> > > > Subject: gdk-pixbuf 0.9.0 + libpng 1.0.8 + solaris 2.7 anyone?
> > > >
> > > >
> > > > Package: gdk-pixbuf
> > > > Version: 0.9.0
> > > >
> > > > Configure script runs fine.  Finds all libs and includes.
> > > >
> > > > During make, warning:
> > > >
> > > > (cd .libs && rm -f libgnomecanvaspixbuf.la && ln -s
> > > > ../libgnomecanvaspixbuf.la
> > > > libgnomecanvaspixbuf.la)
> > > > /bin/sh ../libtool --mode=compile /usr/local/bin/gcc -DHAVE_CONFIG_H -I.
> > > > -I.
> > > > -I.. -I.. -I..  -I../gdk-pixbuf
> > > > -I../gdk-pixbuf          -I/usr/local/lib/glib/include
> > > > -I/usr/local/include
> > > > -I/usr/local/lib/glib/include -I/usr/local/include
> > > -I/usr/openwin/include
> > > > -I/usr/local/include -DNEED_GNOMESUPPORT_H
> > > > -I/usr/local/lib/gnome-libs/include
> > > > -I/usr/local/lib/glib/include -I/usr/openwin/include
> > > > "-DPIXBUF_LIBDIR=\"/usr/local/lib/gdk-pixbuf/loaders\""
> > > -msupersparc -O9
> > > > -c
> > > > io-png.c
> > > > rm -f .libs/io-png.lo
> > > > /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..
> > > -I../gdk-pixbuf
> > > > -I../gdk-pixbuf -I/usr/local/lib/glib/include -I/usr/local/include
> > > > -I/usr/local/lib/glib/include -I/usr/local/include
> > > -I/usr/openwin/include
> > > > -I/usr/local/include -DNEED_GNOMESUPPORT_H
> > > > -I/usr/local/lib/gnome-libs/include
> > > > -I/usr/local/lib/glib/include -I/usr/openwin/include
> > > > -DPIXBUF_LIBDIR=\"/usr/local/lib/gdk-pixbuf/loaders\"
> > > -msupersparc -O9 -c
> > > > io-png.c  -fPIC -DPIC -o .libs/io-png.lo
> > > > /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..
> > > -I../gdk-pixbuf
> > > > -I../gdk-pixbuf -I/usr/local/lib/glib/include -I/usr/local/include
> > > > -I/usr/local/lib/glib/include -I/usr/local/include
> > > -I/usr/openwin/include
> > > > -I/usr/local/include -DNEED_GNOMESUPPORT_H
> > > > -I/usr/local/lib/gnome-libs/include
> > > > -I/usr/local/lib/glib/include -I/usr/openwin/include
> > > > -DPIXBUF_LIBDIR=\"/usr/local/lib/gdk-pixbuf/loaders\"
> > > -msupersparc -O9 -c
> > > > io-png.c  -fPIC -DPIC -o .libs/io-png.lo
> > > > /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I..
> > > -I../gdk-pixbuf
> > > > -I../gdk-pixbuf -I/usr/local/lib/glib/include -I/usr/local/include
> > > > -I/usr/local/lib/glib/include -I/usr/local/include
> > > -I/usr/openwin/include
> > > > -I/usr/local/include -DNEED_GNOMESUPPORT_H
> > > > -I/usr/local/lib/gnome-libs/include
> > > > -I/usr/local/lib/glib/include -I/usr/openwin/include
> > > > -DPIXBUF_LIBDIR=\"/usr/local/lib/gdk-pixbuf/loaders\"
> > > -msupersparc -O9 -c
> > > > io-png.c -o io-png.o >/dev/null 2>&1
> > > > mv -f .libs/io-png.lo io-png.lo
> > > > /bin/sh ../libtool --mode=link /usr/local/bin/gcc  -msupersparc -O9  -o
> > > > libpixbufloader-png.la -rpath /usr/local/lib/gdk-pixbuf/loaders
> > > > -version-info
> > > > 1:0:0 -module io-png.lo -lpng -lz
> > > > rm -fr .libs/libpixbufloader-png.la .libs/libpixbufloader-png.*
> > > > .libs/libpixbufloader-png.*
> > > >
> > > > *** Warning: This library needs some functionality provided by -lz.
> > > > *** I have the capability to make that library automatically
> > > link in when
> > > > *** you link to this library.  But I can only do this if you have a
> > > > *** shared version of the library, which you do not appear to have.
> > > >
> > > > *** Warning: libtool could not satisfy all declared inter-library
> > > > *** dependencies of module libpixbufloader-png.  Therefore, libtool will
> > > > create
> > > > *** a static module, that should work as long as the dlopening
> > > > *** application is linked with the -dlopen flag.
> > > > ar cru .libs/libpixbufloader-png.a  io-png.o
> > > > ranlib .libs/libpixbufloader-png.a
> > > > creating libpixbufloader-png.la
> > > >
> > > > ------
> > > >
> > > > After compilation, no .so for:
> > > >
> > > > libpixbufloader-png
> > > >
> > > > --
> > > >
> > > > gdk-pixbuf-0.9.0$ find . -name "libpixbufloader-*so"
> > > > ./gdk-pixbuf/.libs/libpixbufloader-gif.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-ico.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-ras.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-xpm.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-tiff.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-pnm.so
> > > > ./gdk-pixbuf/.libs/libpixbufloader-bmp.so
> > > >
> > > >
> > > > ----------
> > > >
> > > > The warning apears to be false.  I have manually compiled and installed
> > > > libpng in /usr/local:
> > > >
> > > > Makefile for libPng version libpng-1.0.8 :
> > > >
> > > > libpng.so.$(PNGVER): $(OBJSDLL)
> > > >         @case "`type ld`" in *ucb*) \
> > > >         echo; \
> > > >         echo '## WARNING:'; \
> > > >         echo '## The commands "CC" and "LD" must NOT refer to
> > > /usr/ucb/cc';
> > > > \
> > > >         echo '## and /usr/ucb/ld.  If they do, you need to adjust your
> > > > PATH'; \
> > > >         echo '## environment variable to put /usr/ccs/bin ahead of
> > > > /usr/ucb.'; \
> > > >         echo '## The environment variable LD_LIBRARY_PATH should not be
> > > > set'; \
> > > >         echo '## at all.  If it is, things are likely to break
> > > because of';
> > > > \
> > > >         echo '## the libucb dependency that is created.'; \
> > > >         echo; \
> > > >         ;; \
> > > >         esac
> > > >         $(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h libpng.so.$(PNGMAJ) \
> > > >
> > > >          -o libpng.so.$(PNGVER) $(OBJSDLL) -lz
> > > >
> > > >
> > > > When compiling libPng, i made sure to unset LD_LIBRARY_PATH as
> > > well as set
> > > > path so that /usr/ccs/bin is before /usr/ucb:
> > > >
> > > > $ echo $PATH
> > > >
> > > /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/dt/bin:/usr/X/bi
> > > n:/opt/NSC
> > > > Pcom:
> > > > /usr/local/sbin:/usr/ccs/bin:/usr/ucb:~/bin
> > > >
> > > > $ ls -la /usr/local/lib/libpng.*
> > > > -rw-r--r--   1 root     other     190204 Nov 26 20:33
> > > > /usr/local/lib/libpng.a
> > > > lrwxrwxrwx   1 root     other         11 Nov 26 20:33
> > > > /usr/local/lib/libpng.so -> libpng.so.2
> > > > lrwxrwxrwx   1 root     other         17 Nov 26 20:33
> > > > /usr/local/lib/libpng.so.2 -> libpng.so.2.1.0.8
> > > > -rwxr-xr-x   1 root     other     223304 Nov 26 20:33
> > > > /usr/local/lib/libpng.so.2.1.0.8
> > > >
> > > > $ ls -la /usr/local/include/*png*
> > > > -rw-r--r--   1 root     other     124394 Nov 26 20:33
> > > > /usr/local/include/png.h
> > > > -rw-r--r--   1 root     other      35093 Nov 26 20:33
> > > > /usr/local/include/pngconf.h
> > > >
> > > > The problem is that the pannel cannot display PNG icons without a
> > > > libpixbufloader-png.so
> > > >
> > > > I have also tried giving the configure script for gdk-pixbuf:
> > > >
> > > > --enable-modules
> > > > &
> > > > --disable-modules
> > > >
> > > >
> > > > I have found very little related information about this in the mailing
> > > > list archives, bug reports, or the public WWW.
> > > >
> > > >
> > > > Thanks,
> > > > -Brian
> > > >
> > > >
> > > > _______________________________________________
> > > > gnome-list mailing list
> > > > gnome-list gnome org
> > > > http://mail.gnome.org/mailman/listinfo/gnome-list
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>
>





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