[MacPorts] #12959: gnome-keyring build fails MacOS 10.3.9
Panther
MacPorts
trac at macosforge.org
Fri Jan 11 06:36:46 PST 2008
#12959: gnome-keyring build fails MacOS 10.3.9 Panther
----------------------------------------------+-----------------------------
Reporter: william.allen.simpson at gmail.com | Owner: rhwood at macports.org
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.5.2
Resolution: | Keywords:
----------------------------------------------+-----------------------------
Comment (by william.allen.simpson at gmail.com):
I'm trying to get this thing to compile. The easy patch for the indicated
bug is to match the same #include order already used in ui/gkr-ask-tool.c:
{{{
--- common/gkr-secure-memory.c~ Fri Jan 11 08:13:27 2008
+++ common/gkr-secure-memory.c Fri Jan 11 08:15:52 2008
@@ -31,12 +31,12 @@
#include "gkr-secure-memory.h"
-#include <sys/mman.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
+#include <sys/mman.h>
#include <unistd.h>
#include <assert.h>
}}}
Now, it fails with the error:
{{{
gkr-ask-tool.c: In function `lock_memory':
gkr-ask-tool.c:156: error: `MCL_CURRENT' undeclared (first use in this
function)
gkr-ask-tool.c:156: error: (Each undeclared identifier is reported only
once
gkr-ask-tool.c:156: error: for each function it appears in.)
}}}
That's impossible! The aforementioned #includes are:
{{{
#include "config.h"
#include "gkr-ask-tool.h"
#include "gkr-ask-request.h"
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/mman.h>
#include <unistd.h>
}}}
There's no question that MCL_CURRENT is defined on line 94 of both
{{{
/usr/include/sys/mman.h
/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/mman.h
}}}
Lord only knows which is being used!
But something is seriously wrong.... Like the #include isn't actually
including the file? Does anybody have any ideas?
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/12959#comment:3>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list