Author Michael.Felt
Recipients Michael.Felt
Date 2017-12-21.19:13:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513883620.07.0.213398074469.issue32399@psf.upfronthosting.co.za>
In-reply-to
Content
So - KISS principle:

This diff shows what can compile:

diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index d4bc3c7..5550705 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -1,7 +1,11 @@
 #define PY_SSIZE_T_CLEAN

 #include "Python.h"
+#ifndef _AIX
 #include <uuid/uuid.h>
+#else
+#include <uuid.h>
+#endif


 static PyObject *
@@ -16,7 +20,11 @@ py_uuid_generate_time_safe(void)
 #else
     uuid_t out;
     uuid_generate_time(out);
+#ifndef _AIX
     return Py_BuildValue("y#O", (const char *) out, sizeof(out), Py_None);
+#else
+    return Py_BuildValue("y#O", (const char *) &out, sizeof(out), Py_None);
+#endif
 #endif
 }

However, no uuid_generate_time(). So, ends with:
ld: 0711-317 ERROR: Undefined symbol: .uuid_generate_time
History
Date User Action Args
2017-12-21 19:13:40Michael.Feltsetrecipients: + Michael.Felt
2017-12-21 19:13:40Michael.Feltsetmessageid: <1513883620.07.0.213398074469.issue32399@psf.upfronthosting.co.za>
2017-12-21 19:13:40Michael.Feltlinkissue32399 messages
2017-12-21 19:13:40Michael.Feltcreate