[asterisk-bugs] [JIRA] (ASTERISK-25586) uuid_generate_random detection failure

John Nemeth (JIRA) noreply at issues.asterisk.org
Sun Nov 22 05:27:33 CST 2015


John Nemeth created ASTERISK-25586:
--------------------------------------

             Summary: uuid_generate_random detection failure
                 Key: ASTERISK-25586
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25586
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Core/BuildSystem
    Affects Versions: 13.6.0
            Reporter: John Nemeth
            Severity: Minor


configure.ac has the following (checked gitweb and trunk has the same):

# Find required UUID support.
#  * -luuid on Linux
#  * -le2fs-uuid on OpenBSD
#  * in libsystem on OS X
AST_EXT_LIB_CHECK([LIBUUID], [uuid], [uuid_generate_random], [uuid/uuid.h], [])
AST_EXT_LIB_CHECK([E2FSUUID], [e2fs-uuid], [uuid_generate_random], [uuid/uuid.h]
, [])
AC_CHECK_FUNCS([uuid_generate_random], [SYSUUID=true], [SYSUUID=""])

On my system (NetBSD with libuuid package installed), the first test returns "yes", and the rest return "no":

checking for uuid_generate_random in -luuid... yes
checking uuid/uuid.h usability... yes
checking uuid/uuid.h presence... yes
checking for uuid/uuid.h... yes
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... no

The problem is that the result of the later tests overwrite the results of the earlier test.  Thus the final answer is "no", even though it should be "yes".

I have marked this bug as "minor" because the test result isn't actually used.  This could be considered to be a seperate bug, i.e. the result should be used, or the test should be eliminated.

i386devel: {1266} grep -r HAVE_UUID_GENERATE_RANDOM *
configure:#define HAVE_UUID_GENERATE_RANDOM 1
include/asterisk/autoconfig.h.in:#undef HAVE_UUID_GENERATE_RANDOM
include/asterisk/autoconfig.h:/* #undef HAVE_UUID_GENERATE_RANDOM */




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list