[csw-maintainers] Could someone please update CSWpygtk?

James Lee james at opencsw.org
Tue Nov 17 20:12:53 CET 2009


On 17/11/09, 16:52:27, Dagobert Michelsen <dam at opencsw.org> wrote regarding 
Re: [csw-maintainers] Could someone please update CSWpygtk?:

> >> libtool: link: /opt/studio/SOS11/SUNWspro/bin/cc -D_REENTRANT
> >> -D_PTHREADS -I/opt/csw/include/glib-2.0
> >> -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include/python2.6
> >> -I/opt/csw/include/python2.6 -xO3 -xarch=386 -I/opt/csw/include
> >> -xarch=386 -o generate-constants
> >> generate_constants-generate-constants.o  -lglib-2.0 -L/opt/csw/lib
> >> ld: fatal: library -lglib-2.0: not found
> >> ld: fatal: File processing errors. No output written to
> >> generate-constants
> >
> >> I don't quite get it.  The library is there on the disk:
> > ...
> >> There's also the -L/opt/csw/lib flag.  What else does it need to find
> >> the library?
> >
> > Our dear friend libtool.  It's added the L path but after the lib.

> Nope, look again:

> > maciej at build8x [build8x]:~/src/opencsw/pkg/pygobject/trunk > (cd
> > /home/maciej/src/opencsw/pkg/pygobject/trunk/work/solaris8-i386/
> > build-isa-i386/pygobject-2.20.0/gobject;
> > /bin/bash ../libtool --tag=CC   --mode=link
> > /opt/studio/SOS11/SUNWspro/bin/cc -D_REENTRANT -D_PTHREADS
> > -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include
> > -I/opt/csw/include/python2.6 -I/opt/csw/include/python2.6 -lglib-2.0
> > -xO3 -xarch=386 -I/opt/csw/include  -xarch=386 -L/opt/csw/lib -o
> > generate-constants generate_constants-generate-constants.o)

> The above is what is passed to libtool. Here the order is already wrong.
> And I am not only saying this as the libtool-maintainer ;-) Libtool
> than just passes the order:

It's using ../libtool so we don't know if you can take credit.  Did I
say libtool had changed the order?  True it's not the script libtool's
choice but probably some other part in the "GNU build system" that has
the args in the wrong order.  The problem remains the same, args not in
correct order.


If anyone has any doubts about libtool's arg changing powers try:
$ libtool --tag=CC --mode=link /bin/echo -o out -zone -lone -ztwo -ltwo




James.



More information about the maintainers mailing list