apr icon indicating copy to clipboard operation
apr copied to clipboard

Force libuuid usage for IBM i (os400).

Open rgala opened this issue 6 months ago • 3 comments

Force using libuuid on IBM i (OS400). LIBC procedures do not work on this platform (https://github.com/IBM/ibmi-oss-issues/issues/82)

rgala avatar Jun 27 '25 08:06 rgala

I have forced ac_cv_func_uuid_generate and ac_cv_search_uuid_generate to yes, but will have to test it. I remember I had problems with AC_CHECK_HEADERS finding uuid.h, which is for uuid functions in libc which have not been implemented by IBM, though the uuid.h file exists on the system anyway. This is why I made a logic to force use of uuid.h file from libuuid for IBM i.

This is the part of usability test that was the issue:

#if defined(HAVE_UUID_H)
#include <uuid.h>

Can HAVE_UUID_H be forced through hints too, with AC_DEFINE(HAVE_UUID_H, 0) maybe?

rgala avatar Aug 09 '25 19:08 rgala

I have forced ac_cv_func_uuid_generate and ac_cv_search_uuid_generate to yes, but will have to test it. I remember I had problems with AC_CHECK_HEADERS finding uuid.h, which is for uuid functions in libc which have not been implemented by IBM, though the uuid.h file exists on the system anyway. This is why I made a logic to force use of uuid.h file from libuuid for IBM i.

This is the part of usability test that was the issue:

#if defined(HAVE_UUID_H)
#include <uuid.h>

Can HAVE_UUID_H be forced through hints too, with AC_DEFINE(HAVE_UUID_H, 0) maybe?

Use:

ac_cv_header_uuid_h=no
ac_cv_header_uuid_uuid_h=no

etc in the hints.

notroj avatar Aug 11 '25 14:08 notroj

Looks OK now wrt conditionals, since there are no new ones any more.

Next time, please don't squash commits before merging; it's impossible to see what changed during review.

brainy avatar Aug 18 '25 14:08 brainy