From: Tony G. <Ton...@Su...> - 2003-11-14 11:07:40
|
I have got my PangoPDF setup into a state where I can't compile all of PangoPDF on a system that doesn't already have PangoPDF installed. Compiling pangogp-to-pdf andd pangopdf-querymodules fails because the linker can't find an installed libpango-1.0.la: ------------------------------------------------------------ make[3]: Entering directory `/usr/local/src/xslfo/pangopdf/examples' /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o pangogp-to-pdf pangogp-to-pdf.o ../pango/libpango-1.0.la ../pango/libpangogp-1.0.la ../pango/libpangox-1.0.la -Wl,--export-dynamic -L/usr/local/lib -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 libtool: link: cannot find the library `/usr/local/lib/pangopdf/libpango-1.0.la' make[3]: *** [pangogp-to-pdf] Error 1 ------------------------------------------------------------ FWIW, here's the libpango-1.0.la file: ------------------------------------------------------------ # libpango-1.0.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.4.3 (1.922.2.111 2002/10/23 02:54:36) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libpango-1.0.so.0' # Names of this library. library_names='libpango-1.0.so.0.230.2 libpango-1.0.so.0 libpango-1.0.so' # The name of the static archive. old_library='' # Libraries that this one depends upon. dependency_libs=' -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 ' # Version information for libpango-1.0. current=230 age=230 revision=2 # Is this an already installed library? installed=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/usr/local/lib/pangopdf' ------------------------------------------------------------ However, this differs very little from the original Pango libpango-1.0.la file, so the problem probably lies elsewhere. I am going back over previous PangoPDF releases to see where the problem is, but in the meantime does anyone have any ideas? Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Tim W. <tw...@re...> - 2003-11-14 11:47:55
|
On Fri, Nov 14, 2003 at 11:07:36AM +0000, Tony Graham wrote: > I have got my PangoPDF setup into a state where I can't compile all of > PangoPDF on a system that doesn't already have PangoPDF installed. In current CVS? Works for me with libtool 1.5. Here's the link line I get: /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o pangogp-to-pdf pangogp-to-pdf.o ../pango/libpango-1.0.la ../pango/libpangogp-1.0.la ../pango/libpangox-1.0.la -Wl,--export-dynamic -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lpthread -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 gcc -g -O2 -Wall -o .libs/pangogp-to-pdf pangogp-to-pdf.o -Wl,--export-dynamic ../pango/.libs/libpangogp-1.0.so -lfontconfig /usr/lib/libfreetype.so ../pango/.libs/libpangox-1.0.so /root/pangopdf/pango/.libs/libpango-1.0.so -L/usr/X11R6/lib -lX11 -lgnomeprint-2-2 -lart_lgpl_2 /usr/lib/libxml2.so -lpthread -lz -lm ../pango/.libs/libpango-1.0.so -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,--rpath -Wl,/usr/local/lib/pangopdf Time to upgrade libtool? Tim. */ |
From: Tony G. <Ton...@Su...> - 2003-11-14 12:55:56
|
Tim Waugh <tw...@re...> wrote at Fri, 14 Nov 2003 11:47:44 +0000: > On Fri, Nov 14, 2003 at 11:07:36AM +0000, Tony Graham wrote: > > > I have got my PangoPDF setup into a state where I can't compile all of > > PangoPDF on a system that doesn't already have PangoPDF installed. > > In current CVS? Works for me with libtool 1.5. Here's the link line > I get: > > /bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o pangogp-to-pdf pangogp-to-pdf.o ../pango/libpango-1.0.la ../pango/libpangogp-1.0.la ../pango/libpangox-1.0.la -Wl,--export-dynamic -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lpthread -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 > gcc -g -O2 -Wall -o .libs/pangogp-to-pdf pangogp-to-pdf.o -Wl,--export-dynamic ../pango/.libs/libpangogp-1.0.so -lfontconfig /usr/lib/libfreetype.so ../pango/.libs/libpangox-1.0.so /root/pangopdf/pango/.libs/libpango-1.0.so -L/usr/X11R6/lib -lX11 -lgnomeprint-2-2 -lart_lgpl_2 /usr/lib/libxml2.so -lpthread -lz -lm ../pango/.libs/libpango-1.0.so -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -Wl,--rpath -Wl,/usr/local/lib/pangopdf > > Time to upgrade libtool? I just tried that but it still doesn't work. It appears that I have an extra -L/usr/local/lib that comes from $(GNOMEPRINT_LIBS), but removing that from the generated Makefile doesn't seem to help either. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Tim W. <tw...@re...> - 2003-11-14 13:03:16
|
On Fri, Nov 14, 2003 at 12:55:53PM +0000, Tony Graham wrote: > It appears that I have an extra -L/usr/local/lib that comes from > $(GNOMEPRINT_LIBS), but removing that from the generated Makefile > doesn't seem to help either. Here's my 'pkg-config --libs libgnomeprint-2.2' output: -Wl,--export-dynamic -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lpthread -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 Tim. */ |
From: Tony G. <Ton...@Su...> - 2003-11-14 14:37:04
|
Tim Waugh <tw...@re...> wrote at Fri, 14 Nov 2003 13:03:12 +0000: > On Fri, Nov 14, 2003 at 12:55:53PM +0000, Tony Graham wrote: > > > It appears that I have an extra -L/usr/local/lib that comes from > > $(GNOMEPRINT_LIBS), but removing that from the generated Makefile > > doesn't seem to help either. > > Here's my 'pkg-config --libs libgnomeprint-2.2' output: > > -Wl,--export-dynamic -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lpthread -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 And here's mine: -Wl,--export-dynamic -L/usr/local/lib -lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lz -lm -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 I'm using libgnomeprint 2.2.1.2. What are you using? I can build PangoPDF if I do --disable-gp, and if I then install PangoPDF and rebuild with the GP backend enabled, it builds okay. Not exactly the best state of affairs, but better than it was this morning. Now I just need to nail down our libgnomeprint differences. Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |
From: Tim W. <tw...@re...> - 2003-11-14 15:02:42
|
On Fri, Nov 14, 2003 at 02:36:54PM +0000, Tony Graham wrote: > I'm using libgnomeprint 2.2.1.2. What are you using? $ rpm -q libgnomeprint22 libgnomeprint22-2.4.0-1 Tim. */ |
From: Tony G. <Ton...@Su...> - 2003-11-14 17:49:18
|
Tim Waugh <tw...@re...> wrote at Fri, 14 Nov 2003 15:02:38 +0000: > On Fri, Nov 14, 2003 at 02:36:54PM +0000, Tony Graham wrote: > > > I'm using libgnomeprint 2.2.1.2. What are you using? > > $ rpm -q libgnomeprint22 > libgnomeprint22-2.4.0-1 Problem solved. I had been using a libgnomeprint that I'd tweaked to build using PangoPDF instead of Pango. It's not surprising that it didn't work when I took away the installed PangoPDF files. So I can now build PangoPDF in one go if I use a libgnomeprint that is linked against Pango, or in three steps if I use a libgnomeprint that is linked against PangoPDF. If only Pango had an official GNOME Print backend... Regards, Tony Graham ------------------------------------------------------------------------ XML Technology Center - Dublin Sun Microsystems Ireland Ltd Phone: +353 1 8199708 Hamilton House, East Point Business Park, Dublin 3 x(70)19708 |