wv change request


Subject: wv change request
From: John Tunison (nosinut@WIND.REM.CMU.EDU)
Date: Wed Apr 05 2000 - 23:31:56 CDT


Hi,

I nearly fell of my chair earlier when I compiled a Gnome version of
Abiword and clicked print and was greeted by the beautiful gnome-print
dialog a la gnumeric!

But, oddly enough, I have no idea how I got it to compile that first
time. Because subsequent compiles have revealed this problem:

<snip>
Linking static
/home/nosinut/src/abi/abi/src/Linux_2.2.14-5.0smp_i386_OBJ/bin/AbiWord_s
/usr/lib/libgnomeprint.a(parseAFM.o): In function `parseFile':
/home/nosinut/src/gnome/gnome-print/libgnomeprint/parseAFM.c:1102: multiple
definition of `parseFile'
/home/nosinut/src/abi/abi/src/Linux_2.2.14-5.0smp_i386_OBJ/obj/libAbiXAp.a(xap_UnixPSParseAFM.o)(.text+0x13d4): first
defined here
/usr/lib/libxml.a(SAX.o): In function `startElement':
/home/nosinut/src/gnome/gnome-xml/SAX.c:753: multiple definition of
`startElement'
/home/nosinut/src/abi/abi/src/Linux_2.2.14-5.0smp_i386_OBJ/obj/libAbi_libwv.a(wvConfig.o)(.text+0x52f8): first
defined here
/usr/bin/ld: Warning: size of symbol `startElement' changed from 3659 to
519 in SAX.o
/usr/lib/libxml.a(SAX.o): In function `endElement':
/home/nosinut/src/gnome/gnome-xml/SAX.c:902: multiple definition of
`endElement'
/home/nosinut/src/abi/abi/src/Linux_2.2.14-5.0smp_i386_OBJ/obj/libAbi_libwv.a(wvConfig.o)(.text+0x6144): first
defined here
/usr/bin/ld: Warning: size of symbol `endElement' changed from 85 to 115
in SAX.o
collect2: ld returned 1 exit status

In short, it would appear that Abiword has borrowed code from other
sources in a couple of places. Notably, xap_UnixPSParseAFM.c has borrowed
parseAFM.c from Adobe (as has, apparently, gnome-print) ... and SAX.c from
libxml has namespace issues with libxml.

For xap_UnixPSParseAFM.c I can make this go away and just link to
gnome-print's version (or should I rename? Advice?). Could someone
resolve the namespace problems within wv for me?

... as I type this email and think about it, perhaps this is not
necessary. Can I solve this by clever linking? ...

Hitting namespace walls,
John

PS. In order to compile in gnome-print I had to make minor modifications
to the gnome-print source so that gnome-print was cpp happy. I've sent
this patch to Raph and crew, but if anyone else is playing with
gnome-print I've attached it ...




This archive was generated by hypermail 2b25 : Wed Apr 05 2000 - 23:34:26 CDT