tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gobject-introspection on OS X 10.9: clang include <> vs "" fussiness



I tried to build gobject-introspection on OS X 10.9, when it was not
installed.  Compiler is
  Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)

I got lots of failures about not finding include files, which sure
enough were included with <> even though they were in the source
directory with the .c files.  I changed most to "" and got this to
build.  In addition I had to change gitestmacros.h to ../gitestmacros.h.

So my real question is whether others are seeing this, or if it's only
that clang is newly fussy about not looking in the sourcedir for files
included with <>.

Also it seems girepository.h does not have to be in "" (I left some
unpatched), but I don't see why it is different.

I built with clang 3.6.0 on NetBSD 6 without the patches, and that built
ok.

Should I just add commit these patches?  Do something else?


$NetBSD$

--- girepository/giarginfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giarginfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gibaseinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gibaseinfo.h
@@ -28,8 +28,8 @@
 #endif
 
 #include <glib-object.h>
-#include <gitypelib.h>
-#include <gitypes.h>
+#include "gitypelib.h"
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gicallableinfo.c.orig	2014-07-17 17:32:46.000000000 +0000
+++ girepository/gicallableinfo.c
@@ -26,7 +26,7 @@
 
 #include <glib.h>
 
-#include <girepository.h>
+#include "girepository.h"
 #include "girepository-private.h"
 #include "gitypelib-internal.h"
 #include "girffi.h"
$NetBSD$

--- girepository/gicallableinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gicallableinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/giconstantinfo.c.orig	2014-07-17 17:32:46.000000000 +0000
+++ girepository/giconstantinfo.c
@@ -25,7 +25,7 @@
 #include <glib.h>
 #include <string.h> // memcpy
 
-#include <girepository.h>
+#include "girepository.h"
 #include "girepository-private.h"
 #include "gitypelib-internal.h"
 
$NetBSD$

--- girepository/giconstantinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giconstantinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gienuminfo.c.orig	2014-07-17 17:32:46.000000000 +0000
+++ girepository/gienuminfo.c
@@ -24,7 +24,7 @@
 
 #include <glib.h>
 
-#include <girepository.h>
+#include "girepository.h"
 #include "girepository-private.h"
 #include "gitypelib-internal.h"
 
$NetBSD$

--- girepository/gienuminfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gienuminfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gifieldinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gifieldinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gifunctioninfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gifunctioninfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/giinterfaceinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giinterfaceinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/giobjectinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giobjectinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gipropertyinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gipropertyinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/giregisteredtypeinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giregisteredtypeinfo.h
@@ -28,7 +28,7 @@
 #endif
 
 #include <glib-object.h>
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/girepository-private.h.orig	2014-03-06 04:09:17.000000000 +0000
+++ girepository/girepository-private.h
@@ -27,9 +27,9 @@
 
 #define __GIREPOSITORY_H_INSIDE__
 
-#include <gibaseinfo.h>
-#include <girepository.h>
-#include <gitypelib.h>
+#include "gibaseinfo.h"
+#include "girepository.h"
+#include "gitypelib.h"
 
 typedef struct _GIRealInfo GIRealInfo;
 
$NetBSD$

--- girepository/girepository.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/girepository.h
@@ -28,25 +28,25 @@
 
 #define __GIREPOSITORY_H_INSIDE__
 
-#include <giarginfo.h>
-#include <gibaseinfo.h>
-#include <gicallableinfo.h>
-#include <giconstantinfo.h>
-#include <gienuminfo.h>
-#include <gifieldinfo.h>
-#include <gifunctioninfo.h>
-#include <giinterfaceinfo.h>
-#include <giobjectinfo.h>
-#include <gipropertyinfo.h>
-#include <giregisteredtypeinfo.h>
-#include <gisignalinfo.h>
-#include <gistructinfo.h>
-#include <gitypeinfo.h>
-#include <gitypelib.h>
-#include <gitypes.h>
-#include <giunioninfo.h>
-#include <giversionmacros.h>
-#include <givfuncinfo.h>
+#include "giarginfo.h"
+#include "gibaseinfo.h"
+#include "gicallableinfo.h"
+#include "giconstantinfo.h"
+#include "gienuminfo.h"
+#include "gifieldinfo.h"
+#include "gifunctioninfo.h"
+#include "giinterfaceinfo.h"
+#include "giobjectinfo.h"
+#include "gipropertyinfo.h"
+#include "giregisteredtypeinfo.h"
+#include "gisignalinfo.h"
+#include "gistructinfo.h"
+#include "gitypeinfo.h"
+#include "gitypelib.h"
+#include "gitypes.h"
+#include "giunioninfo.h"
+#include "giversionmacros.h"
+#include "givfuncinfo.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gisignalinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gisignalinfo.h
@@ -28,7 +28,7 @@
 #endif
 
 #include <glib-object.h>
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gistructinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gistructinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gitypeinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gitypeinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gitypelib.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gitypelib.h
@@ -29,7 +29,7 @@
 
 #include <glib.h>
 
-#include <giversionmacros.h>
+#include "giversionmacros.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/gitypes.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/gitypes.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <giversionmacros.h>
+#include "giversionmacros.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/giunioninfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/giunioninfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- girepository/givfuncinfo.h.orig	2014-08-31 14:31:38.000000000 +0000
+++ girepository/givfuncinfo.h
@@ -27,7 +27,7 @@
 #error "Only <girepository.h> can be included directly."
 #endif
 
-#include <gitypes.h>
+#include "gitypes.h"
 
 G_BEGIN_DECLS
 
$NetBSD$

--- tests/offsets/offsets.h.orig	2014-09-23 03:40:35.000000000 +0000
+++ tests/offsets/offsets.h
@@ -5,7 +5,7 @@
 #include <glib-object.h>
 #include <time.h>
 
-#include "gitestmacros.h"
+#include "../gitestmacros.h"
 
 /* Test we get the alignment right for various basic types; we put
  * a char in front of of each field to make it more likely that we'll

Attachment: pgpmQRBQqao2K.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index