Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33687 - gdome2-0.8 compile error with libxml2-2.6.2
Summary: gdome2-0.8 compile error with libxml2-2.6.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Heinrich Wendel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 10:30 UTC by Guido Sohne
Modified: 2003-11-22 11:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to fix compile errors (compilation-error-patch.txt,723 bytes, patch)
2003-11-17 14:48 UTC, Guido Sohne
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Sohne 2003-11-17 10:30:47 UTC
In file included from /usr/include/libxml2/libxml/hash.h:22,
                 from gdome.c:26:
/usr/include/libxml2/libxml/parser.h:265: error: syntax error before
"xmlHashTablePtr"
/usr/include/libxml2/libxml/parser.h:265: warning: no semicolon at end of struct
or union
/usr/include/libxml2/libxml/parser.h:266: warning: type defaults to `int' in
declaration of `attsSpecial'
/usr/include/libxml2/libxml/parser.h:266: warning: data definition has no type
or storage class
/usr/include/libxml2/libxml/parser.h:283: error: syntax error before '}' token


FIX:

Change all occurrences of 
#include <libxml/hash.h> 
to
#include <libxml/parser.h>

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 foser (RETIRED) gentoo-dev 2003-11-17 13:41:32 UTC
lanius, you added 0.8.0 afaics (no ChangeLog entry!) can you take this ?

reporter, could you provide a correct diff (diff -uNr or something)

Did this get fixed/reported upstream in CVS yet ?
Comment 2 Guido Sohne 2003-11-17 14:48:35 UTC
Created attachment 20879 [details, diff]
patch to fix compile errors

#include <libxml/hash.h> should be changed to
#include <libxml/parser.h>
Comment 3 Guido Sohne 2003-11-17 16:52:24 UTC
I don't think there's a bug upstream. It's a header file inclusion problem.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-18 02:50:18 UTC
Sorry for forgeting the changelog entry. It compiles fine here, try to rebuild libxml2.
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-18 05:53:37 UTC
also what's your libxml2 version?
Comment 6 foser (RETIRED) gentoo-dev 2003-11-19 08:52:49 UTC
2.6.2 ( in the description )
Comment 7 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-22 11:09:52 UTC
This is an upstream bug, your fix would fail with libxml 2.5.*, I added the patch from upstream.