Operating System - HP-UX
1836592 Members
2656 Online
110102 Solutions
New Discussion

Using uuid_create on HP-UX 11.23

 
Miguel Silva Rentes
Regular Advisor

Using uuid_create on HP-UX 11.23

Hi everyone!

I'm trying to do a simple program in C that uses function uuid_create to obtain an UUID. The problem is that on Linux I used libuuid on the linkage phase, but I don't know what is the apropriate library to use on HP-UX 11.23. I read the uuid_create man page on HP-UX but it doesn't tell me nothing about the library to use. My program is this one:

#include
#include

int
main(void){

uuid_t uid;
uuid_create(&uid, NULL);

printf("a test\n");

return 0;
}

(it doesn't do much, I just wanted to test if the linker could get the symbol uuid_create).

My compilation/linkage command is as follows:

aCC +DD64 -o test test.c

and it fails with the error:

ld: Unsatisfied symbol "uuid_create" in file test.o
1 errors.

Any help would be great.

Thanks,
Miguel
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Using uuid_create on HP-UX 11.23

It looks like it is part of the DCE product and PHSS_36005 is mentioned.
Try -ldce or -ldcekt.
Miguel Silva Rentes
Regular Advisor

Re: Using uuid_create on HP-UX 11.23

I just had to recompile with the following options:

aCC +DD64 -mt -o test test.c -ldcekt

By the way, libdcekt.so is in /usr/lib/hpux64.