Bug 20935

Summary: gnomecore ports doesn't build
Product: Ports & Packages Reporter: Andrew Stevenson <andrew>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andrew Stevenson 2000-08-30 07:10:01 UTC
When I try and make the gnomecore port is dies with:

Making all in gnome-hint
gmake[2]: Entering directory `/usr/ports/x11/gnomecore/work/gnome-core-1.2.1/gnome-hint'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include                          -I../intl                        -I../intl        -I/usr/X11R6/include -DNEED_GNOMESUPPORT_H -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include/gtk12         -DGNOMELOCALEDIR=\""/usr/X11R6/share/locale\""  -I/usr/local/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include -I/usr/X11R6/include  -O2 -pipe -m486 -Wall -Wunused  -c gnome-hint.c
gnome-hint.c:10: gnome-xml/tree.h: No such file or directory
gnome-hint.c:11: gnome-xml/parser.h: No such file or directory
gnome-hint.c:76: syntax error before `doc'
gnome-hint.c: In function `get_i18n_string':
gnome-hint.c:80: syntax error before `cur'
gnome-hint.c:88: `cur' undeclared (first use in this function)
gnome-hint.c:88: (Each undeclared identifier is reported only once
gnome-hint.c:88: for each function it appears in.)
gnome-hint.c:88: `child' undeclared (first use in this function)
gnome-hint.c:90: `name' undeclared (first use in this function)
gnome-hint.c:92: warning: implicit declaration of function `xmlGetProp'
gnome-hint.c:92: warning: assignment makes pointer from integer without a cast
gnome-hint.c:96: warning: implicit declaration of function `xmlNodeList

Fix: 

I'm guessing gnomecore requires the libxml1 port installed (by looking at the
PLIST for the libxml1 port) but the dependency test in the gnomecore Makefile
succeeds for libxml1 or libxml2. The workaround is to not have libxml2 installed
when installing gnomecore. If you dont have any libxml installed libxml1 will
be.

To fix the Makefile for gnomecore would have to be changed to test for libxml1
although exactly how escapes me atm.

I haven't verified this yet but when libxml finishes building (been an hour so
far) I'll let you know.
How-To-Repeat: 
cd /usr/ports/x11/gnomecore && make
Comment 1 Ade Lovett freebsd_committer freebsd_triage 2000-08-30 17:28:50 UTC
On Wed, Aug 30, 2000 at 04:04:00PM +1000, andrew@ugh.net.au wrote:
> ports cvsupped about a week ago. (gnomecore/Makefile,v 1.44)
> I have the libxml2 port installed.

Don't do that.  Use textproc/libxml.  The two are not compatible
with each other.

-aDe [really, really, wishing he hadn't imported libxml2]

-- 
Ade Lovett, Austin, TX.			ade@FreeBSD.org
FreeBSD: The Power to Serve		http://www.FreeBSD.org/
Comment 2 Maxim Sobolev freebsd_committer freebsd_triage 2000-09-02 15:12:12 UTC
State Changed
From-To: open->feedback
Comment 3 Ade Lovett freebsd_committer freebsd_triage 2000-09-03 02:54:44 UTC
State Changed
From-To: feedback->closed

Private email with the submitter confirms that using libxml 
instead of libxml2 works just fine. 

Another nail in the coffin of the libxml author for producing 
two incompatible versions using the same library namespace. 


Comment 4 Ade Lovett freebsd_committer freebsd_triage 2000-09-03 02:54:44 UTC
Responsible Changed
From-To: freebsd-ports->ade

gnomecore is mine.