OSSP CVS Repository

ossp - Ticket #81 History
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Attach]  [Edit]  [View

Ticket 81 History: Compiliation Problems on Mac OS X 10.4

  1. Created 2005-Dec-05 20:52:15 by anonymous
  2. Added remarks:
    2005-Dec-31 17:24:07 by anonymous:
    A sufficient solution is to define _POSIX_SOURCE=1

    Apple's unistd.h has the following:

      #ifndef _POSIX_C_SOURCE
      #ifndef _UUID_T
      #define _UUID_T
      typedef __darwin_uuid_t         uuid_t;
      #endif /* _UUID_T */
      #endif /* _POSIX_C_SOURCE */
    

    -- mefisk@gmail.com

    by anonymous on 2005-Dec-31 17:24
  3. Appended to remarks:

    2006-Jan-20 23:15:53 by anonymous:
    I got the C library to compile by setting _POSIX_C_SOURCE, but not the Perl library. It seems that perl.h loads unistd.h, but if I define _POSIX_C_SOURCE before uuid.xs includes perl.h, I get all kinds of errors.

    Unfortunately, I think that the only solution is to give uuid_t another name. Maybe it can just be done where uuid_t is already defined elsewhere, and then dependent libraries would have to make the same test?

    —Theory

    by anonymous on 2006-Jan-20 23:15

CVSTrac 2.0.1