Re: gnome-print problems



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 ?
>  
> --
> Humpty Dumpty was pushed !
> 
> Mike Hall <mhall@riverside.org>, ICQ: #37292579, http://www.riverside.org
> System Administrator (MH993) (*nix, OS/2 certified - C, Perl, CGI hacker)
> 
> 
> -- 
>         FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
>          To unsubscribe: mail gnome-list-request@gnome.org with 
>                        "unsubscribe" as the Subject.
> 



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