Re: New gnome-print 0.8 has been released



On Thu, Sep 23, 1999 at 03:28:51PM -0500, Miguel de Icaza wrote:

>    A new release of Gnome Print has been cooked for your printing
> pleasure.  As usual, this version is available from the GNOME ftp site
> at: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-print

  Just grabbed it (CVS) to see if the problem I was having last night was
fixed but its still there and it fails to compile. Heres a copy of the
message James sent me back in response last night:

>It looks like one of the structure members in the xmlParserCtxt structure
>of libxml is called errno.  Your C library defines this as a macro (for
>threading purposes), which is causing the error while parsing the header.
>
>The two possible fixes are (1) change the name of the structure member in
>libxml or (2) include the libxml headers before errno.h in gnome-print.
>It is worth fixing this because quite a lot of people have C libraries
>that define errno as a macro.
>
>James.
>
>--
>Email: james@daa.com.au
>WWW:   http://www.daa.com.au/~james/
>
>
>On Wed, 22 Sep 1999, Michael Hall wrote:
>
>>   Having problems compiling the latest gnome-print (CVS), here's the
>> error message when it bails out:
>> 
>> ...
>> gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -I/usr/local/lib/glib/include -I/usr/local/include                 -I./intl                -I./intl       -I/usr/local/GNOME/include -DNEED_GNOMESUPPORT_H -I/usr/local/GNOME/lib/gnome-libs/include -I/usr/local/lib/glib/include -I/usr/local/include -I/usr/X11R6/include               -DPROFILEDIR=\"""\"  -DGNOMELOCALEDIR=\""/usr/local/GNOME/share/locale"\"               -DBINDIR=\""/usr/local/GNOME/bin"\"             -DDATADIR=\""/usr/local/GNOME/share"\"  -g -O2 -Wall -Wunused  -c gnome-font-install.c
>> In file included from gnome-font-install.c:39:
>> /usr/local/GNOME/include/gnome-xml/parser.h:130: field `__errno_location' declared as a function
>> gnome-font-install.c: In function `main':
>> gnome-font-install.c:611: warning: statement with no effect
>> gnome-font-install.c:612: warning: statement with no effect
>> gnome-font-install.c:642: warning: assignment from incompatible pointer type
>> make[2]: *** [gnome-font-install.o] Error 1
>> make[2]: Leaving directory `/usr/local/src/GNOME/gnome-print'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/usr/local/src/GNOME/gnome-print'
>> make: *** [all-recursive-am] Error 2
>> 
>>   I also tried the tarball from ftp.gnome.org (gnome-print-0.7.tar.gz) and
>> got the same error.
>>   Haven't had any problems compiling it before, any ideas on how to get this
>> to compile ?
 
  I'm not a programmer but apparently (according to the Changelog) some
things were recently changed in gnome-xml. As James pointed out 'errno'
is a macro in glibc and I guess thats what leads to the problem. Anyway
I don't know what is the proper way to fix things in the long run but I
tried the easier (for me :-) of James options and with the diff below
it compiled alright.

<snip>
--- gnome-font-install.c.ORIG   Mon Sep 13 14:21:30 1999
+++ gnome-font-install.c        Thu Sep 23 00:28:23 1999
@@ -34,9 +34,9 @@
 #include <dirent.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include <errno.h>
 #include <gnome-xml/tree.h>
 #include <gnome-xml/parser.h>
+#include <errno.h>
 #include "config.h"

 /* This program does not delete everything it allocates since it's
        
<snip>

--
Life's a Virgin....A Bitch is too easy !

Mike Hall <mhall@riverside.org>, ICQ: #37292579, http://www.riverside.org
System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)



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