Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Dec 2001 21:16:47 -0800 (PST)
From:      "Paul A. Hoadley" <paulh@logicsquad.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/32527: gconf-1.0.7 build fails: #includes need fixing in multiple files
Message-ID:  <200112050516.fB55Gln48089@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         32527
>Category:       ports
>Synopsis:       gconf-1.0.7 build fails: #includes need fixing in multiple files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 04 21:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Paul A. Hoadley
>Release:        FreeBSD 4.3-RELEASE
>Organization:
>Environment:
FreeBSD grover.logicsquad.net 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Tue Jul 10 16:06:39 CST 2001     root@:/usr/src/sys/compile/GROVER  i386
>Description:
The following source files are looking for libxml headers in the wrong place:

- GConf-1.0.7/gconf/gconftool.c
- GConf-1.0.7/backends/xml-cache.h
- GConf-1.0.7/backends/xml-backend.c
- GConf-1.0.7/backends/xml-dir.c
- GConf-1.0.7/backends/xml-dir.h
- GConf-1.0.7/backends/xml-entry.c

Using libxml-1.8.11, the headers are in /usr/local/include/gnome-xml, but the files listed above are looking for a path with "libxml" in it.  The Changelog mentions this:

* backends/xml-entry.c, * backends/xml-backend.c, etc.: fix libxml
  headers, should now work with libxml in a funny prefix, reported
  by Tim Mooney

* gconf/gconftool.c: fix libxml headers

on 2001-10-12 -- maybe this is how it got broken.  I also notice that libxml is up to 1.8.15 -- maybe the directory structure has changed.

>How-To-Repeat:
(With libxml-1.8.11 installed:)

# cd /usr/ports/devel/gconf/
# make all install

>Fix:
Assuming it's not a case of upgrading libxml, these are the diffs to working source:

--- gconftool.c.orig    Wed Dec  5 14:26:03 2001
+++ gconftool.c Wed Dec  5 15:17:44 2001
@@ -22,9 +22,9 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <popt.h>
-#include <libxml/tree.h>
-#include <libxml/parser.h>
-#include <libxml/xmlmemory.h>
+#include <tree.h>
+#include <parser.h>
+#include <xmlmemory.h>
 #include <stdlib.h>
 #include <errno.h>


--- xml-backend.c.orig  Wed Dec  5 15:07:16 2001
+++ xml-backend.c       Wed Dec  5 15:05:59 2001
@@ -26,8 +26,8 @@
 #include "xml-cache.h"
 
 
-#include <libxml/tree.h>
-#include <libxml/parser.h>
+#include <tree.h>
+#include <parser.h>
 
 #include <stdio.h>
 #include <time.h>


--- xml-cache.h.orig    Wed Dec  5 15:07:44 2001
+++ xml-cache.h Wed Dec  5 15:07:53 2001
@@ -21,7 +21,7 @@
 #define GCONF_XML_CACHE_H
 
 #include <gconf/gconf.h>
-#include <libxml/tree.h>
+#include <tree.h>
 #include "xml-dir.h"
 
 typedef struct _Cache Cache;


--- xml-dir.h.orig      Wed Dec  5 15:08:31 2001
+++ xml-dir.h   Wed Dec  5 15:08:40 2001
@@ -21,7 +21,7 @@
 #define GCONF_XML_DIR_H
 
 #include <gconf/gconf.h>
-#include <libxml/tree.h>
+#include <tree.h>
 
 /* Dir stores the information about a given directory */
 


--- xml-dir.c.orig      Wed Dec  5 15:08:10 2001
+++ xml-dir.c   Wed Dec  5 15:08:24 2001
@@ -20,7 +20,7 @@
 #include "xml-dir.h"
 #include "xml-entry.h"
 
-#include <libxml/parser.h>
+#include <parser.h>
 
 #include <stdio.h>
 #include <time.h>


--- xml-entry.c.orig    Wed Dec  5 15:08:56 2001
+++ xml-entry.c Wed Dec  5 15:09:10 2001
@@ -20,8 +20,8 @@
 #include "xml-entry.h"
 #include <gconf/gconf-internals.h>
 #include <stdlib.h>
-#include <libxml/entities.h>
-#include <libxml/xmlmemory.h>
+#include <entities.h>
+#include <xmlmemory.h>
 
 static void
 entry_sync_if_needed(Entry* e, GConfValue* val);

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112050516.fB55Gln48089>