Opened 17 years ago

Closed 15 years ago

#12959 closed defect (wontfix)

gnome-keyring build fails Mac OS X 10.3.9 Panther

Reported by: william.allen.simpson@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.5.2
Keywords: panther Cc: karasisi@…, nox@…
Port: gnome-keyring

Description

--->  Fetching gnome-keyring
--->  Attempting to fetch gnome-keyring-2.20.0.tar.bz2 from http://mandril.creatis.insa-lyon.fr/linux/gnome.org/sources/gnome-keyring/2.20/
--->  Verifying checksum(s) for gnome-keyring
--->  Extracting gnome-keyring
--->  Configuring gnome-keyring
--->  Building gnome-keyring with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnome-keyring/work/gnome-keyring-2.20.0" && make all " returned error 2
Command output: /bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..   -I/opt/local/include -L/opt/local/lib -DPREFIX=\""/opt/local"\" -DBINDIR=\""/opt/local/bin"\" -DLIBEXECDIR=\""/opt/local/libexec"\" -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include   -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include  -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -MT libgkr_daemon_common_la-gkr-buffer.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-buffer.Tpo -c -o libgkr_daemon_common_la-gkr-buffer.lo `test -f 'gkr-buffer.c' || echo './'`gkr-buffer.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -L/opt/local/lib -DPREFIX=\"/opt/local\" -DBINDIR=\"/opt/local/bin\" -DLIBEXECDIR=\"/opt/local/libexec\" -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -MT libgkr_daemon_common_la-gkr-buffer.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-buffer.Tpo -c gkr-buffer.c  -fno-common -DPIC -o .libs/libgkr_daemon_common_la-gkr-buffer.o
mv -f .deps/libgkr_daemon_common_la-gkr-buffer.Tpo .deps/libgkr_daemon_common_la-gkr-buffer.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..   -I/opt/local/include -L/opt/local/lib -DPREFIX=\""/opt/local"\" -DBINDIR=\""/opt/local/bin"\" -DLIBEXECDIR=\""/opt/local/libexec"\" -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include   -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include  -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -MT libgkr_daemon_common_la-gkr-cleanup.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-cleanup.Tpo -c -o libgkr_daemon_common_la-gkr-cleanup.lo `test -f 'gkr-cleanup.c' || echo './'`gkr-cleanup.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -L/opt/local/lib -DPREFIX=\"/opt/local\" -DBINDIR=\"/opt/local/bin\" -DLIBEXECDIR=\"/opt/local/libexec\" -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -MT libgkr_daemon_common_la-gkr-cleanup.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-cleanup.Tpo -c gkr-cleanup.c  -fno-common -DPIC -o .libs/libgkr_daemon_common_la-gkr-cleanup.o
mv -f .deps/libgkr_daemon_common_la-gkr-cleanup.Tpo .deps/libgkr_daemon_common_la-gkr-cleanup.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..   -I/opt/local/include -L/opt/local/lib -DPREFIX=\""/opt/local"\" -DBINDIR=\""/opt/local/bin"\" -DLIBEXECDIR=\""/opt/local/libexec"\" -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include   -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include  -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -MT libgkr_daemon_common_la-gkr-dbus.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-dbus.Tpo -c -o libgkr_daemon_common_la-gkr-dbus.lo `test -f 'gkr-dbus.c' || echo './'`gkr-dbus.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -L/opt/local/lib -DPREFIX=\"/opt/local\" -DBINDIR=\"/opt/local/bin\" -DLIBEXECDIR=\"/opt/local/libexec\" -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -MT libgkr_daemon_common_la-gkr-dbus.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-dbus.Tpo -c gkr-dbus.c  -fno-common -DPIC -o .libs/libgkr_daemon_common_la-gkr-dbus.o
mv -f .deps/libgkr_daemon_common_la-gkr-dbus.Tpo .deps/libgkr_daemon_common_la-gkr-dbus.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..   -I/opt/local/include -L/opt/local/lib -DPREFIX=\""/opt/local"\" -DBINDIR=\""/opt/local/bin"\" -DLIBEXECDIR=\""/opt/local/libexec"\" -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include   -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include  -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -MT libgkr_daemon_common_la-gkr-location.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-location.Tpo -c -o libgkr_daemon_common_la-gkr-location.lo `test -f 'gkr-location.c' || echo './'`gkr-location.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -L/opt/local/lib -DPREFIX=\"/opt/local\" -DBINDIR=\"/opt/local/bin\" -DLIBEXECDIR=\"/opt/local/libexec\" -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -MT libgkr_daemon_common_la-gkr-location.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-location.Tpo -c gkr-location.c  -fno-common -DPIC -o .libs/libgkr_daemon_common_la-gkr-location.o
mv -f .deps/libgkr_daemon_common_la-gkr-location.Tpo .deps/libgkr_daemon_common_la-gkr-location.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I..   -I/opt/local/include -L/opt/local/lib -DPREFIX=\""/opt/local"\" -DBINDIR=\""/opt/local/bin"\" -DLIBEXECDIR=\""/opt/local/libexec"\" -DGNOMELOCALEDIR=\""/opt/local/share/locale"\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include   -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include  -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include   -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -O2 -MT libgkr_daemon_common_la-gkr-secure-memory.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-secure-memory.Tpo -c -o libgkr_daemon_common_la-gkr-secure-memory.lo `test -f 'gkr-secure-memory.c' || echo './'`gkr-secure-memory.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/opt/local/include -L/opt/local/lib -DPREFIX=\"/opt/local\" -DBINDIR=\"/opt/local/bin\" -DLIBEXECDIR=\"/opt/local/libexec\" -DGNOMELOCALEDIR=\"/opt/local/share/locale\" -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -DDBUS_MAJOR_VERSION=1 -DDBUS_MINOR_VERSION=0 -DDBUS_MICRO_VERSION=2 -I/opt/local/include -I/opt/local/include -DXTHREADS -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -O2 -MT libgkr_daemon_common_la-gkr-secure-memory.lo -MD -MP -MF .deps/libgkr_daemon_common_la-gkr-secure-memory.Tpo -c gkr-secure-memory.c  -fno-common -DPIC -o .libs/libgkr_daemon_common_la-gkr-secure-memory.o
In file included from gkr-secure-memory.c:34:
/usr/include/sys/mman.h:155: error: parse error before "size_t"
/usr/include/sys/mman.h:158: error: parse error before "size_t"
/usr/include/sys/mman.h:160: error: parse error before "size_t"
/usr/include/sys/mman.h:161: error: parse error before "size_t"
/usr/include/sys/mman.h:162: error: parse error before "size_t"
/usr/include/sys/mman.h:163: error: parse error before "size_t"
/usr/include/sys/mman.h:166: error: parse error before "size_t"
/usr/include/sys/mman.h:170: error: parse error before "caddr_t"
/usr/include/sys/mman.h:171: error: parse error before '*' token
/usr/include/sys/mman.h:174: error: parse error before "size_t"
/usr/include/sys/mman.h:175: error: parse error before "size_t"
/usr/include/sys/mman.h:176: error: parse error before "size_t"
make[2]: *** [libgkr_daemon_common_la-gkr-secure-memory.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Change History (14)

comment:1 Changed 17 years ago by william.allen.simpson@…

r30334 version 2.20.1 still fails in the same place.

comment:2 Changed 17 years ago by william.allen.simpson@…

Sorry, meant r30343. Anyway, Googling tells me that this is a well-known bug in this MacOS version of the header file, it needs a patch something like:

#ifdef __APPLE__
#include <sys/types.h>
#endif
#include <sys/mman.h>

comment:3 Changed 16 years ago by william.allen.simpson@…

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?

comment:4 Changed 16 years ago by jmpp@…

Milestone: Port Bugs

comment:5 Changed 16 years ago by stevewilliams@…

The MLC_CURRENT in mman.h is protected by an ifdef of _P1003_1B_VISIBLE. If you for example #define _P1003_1B_VISIBLE right before including mman.h, the compile completes just fine.

comment:6 Changed 16 years ago by jmroot (Joshua Root)

Cc: karasisi@… added; rhwood@… removed

comment:7 Changed 16 years ago by rhwood@…

Is this still an issue with gnome-keyring 2.22.0?

comment:8 Changed 15 years ago by nox@…

Cc: nox@… added

Cc Me!

comment:9 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: gnome-keyring added

Wanted to test whether this is still a problem, but can't because of #17198.

comment:10 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: gnome-keyring build fails MacOS 10.3.9 Panthergnome-keyring build fails Mac OS X 10.3.9 Panther

comment:11 Changed 15 years ago by rhwood@…

Owner: changed from rhwood@… to macports-tickets@…

comment:12 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:13 Changed 15 years ago by tobypeterson

Keywords: panther added

comment:14 Changed 15 years ago by tobypeterson

Resolution: wontfix
Status: newclosed

We do not support Panther.

Note: See TracTickets for help on using tickets.