I'm trying to build openpkg-20060204 on OS X Tiger this morning.

The first problem I found was in OSSP uuid where there's a conflict with
the system definition of uuid_t in /usr/include/unistd.h and the uuid.h.in
file,

So far I've tried a few things including running ``aclocal'' in the
directory, but the only one that allowed uuid to build is to hack the
uuid.h.in file to redefine uuid_t when building on Tiger.

I did this with this patch, and modifying the openpkg.spec file to apply
the patch and add ``-DDARWIN'' to CFLAGS.  I would prefer to use something
that's defined by gcc automatically, but haven't been able to find the
default CPP definitions on Apple's site.

--- uuid.h.in.orig      2006-02-04 11:33:10.000000000 -0800
+++ uuid.h.in   2006-02-04 11:06:05.000000000 -0800
@@ -79,6 +79,9 @@
 
 /* UUID abstract data type */
 struct uuid_st;
+#ifdef DARWIN /*{*/
+#define uuid_t myuuid_t
+#endif /*} DARWIN */
 typedef struct uuid_st uuid_t;
 
 /* UUID object handling */

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``If ye love wealth greater than liberty, the tranquillity of servitude
greater than the animating contest for freedom, go home from us in peace.
We seek not your consul, nor your arms.  Crouch down and lick the hand that
feeds you.  May your chains set lightly upon you;  and may posterity forget
ye were our countrymen.'' -- Samuel Adams (American Patriot)
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   openpkg-dev@openpkg.org

Reply via email to