gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fpic -I../../contrib/pgcrypto -I. -I. -I../../src/include -D_GNU_SOURCE -c -o uuid-ossp.o uuid-ossp.c uuid-ossp.c: In function ‘uuid_generate_internal’: uuid-ossp.c:281:5: error: unknown type name ‘uuid_t’ uuid_t uu; ^ uuid-ossp.c:282:23: error: ‘uuid_s_ok’ undeclared (first use in this function) uint32_t status = uuid_s_ok; ^ uuid-ossp.c:282:23: note: each undeclared identifier is reported only once for each function it appears in uuid-ossp.c:285:5: warning: implicit declaration of function ‘uuid_create’ [-Wimplicit-function-declaration] uuid_create(&uu, &status); ^ uuid-ossp.c:289:6: warning: implicit declaration of function ‘uuid_to_string’ [-Wimplicit-function-declaration] uuid_to_string(&uu, &str, &status); ^ uuid-ossp.c:81:20: error: unknown type name ‘uuid_t’ #define dce_uuid_t uuid_t ^ uuid-ossp.c:318:5: note: in expansion of macro ‘dce_uuid_t’ dce_uuid_t uu; ^ uuid-ossp.c:89:4: error: request for member ‘time_low’ in something not a structure or union uu.time_low = htonl(uu.time_low); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ In file included from /usr/include/netdb.h:27:0, from ../../src/include/port.h:17, from ../../src/include/c.h:1105, from ../../src/include/postgres.h:47, from uuid-ossp.c:14: uuid-ossp.c:89:24: error: request for member ‘time_low’ in something not a structure or union uu.time_low = htonl(uu.time_low); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ uuid-ossp.c:90:4: error: request for member ‘time_mid’ in something not a structure or union uu.time_mid = htons(uu.time_mid); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ In file included from /usr/include/x86_64-linux-gnu/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/x86_64-linux-gnu/bits/waitstatus.h:64, from /usr/include/stdlib.h:42, from ../../src/include/c.h:82, from ../../src/include/postgres.h:47, from uuid-ossp.c:14: uuid-ossp.c:90:24: error: request for member ‘time_mid’ in something not a structure or union uu.time_mid = htons(uu.time_mid); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ uuid-ossp.c:91:4: error: request for member ‘time_hi_and_version’ in something not a structure or union uu.time_hi_and_version = htons(uu.time_hi_and_version); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ In file included from /usr/include/x86_64-linux-gnu/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/x86_64-linux-gnu/bits/waitstatus.h:64, from /usr/include/stdlib.h:42, from ../../src/include/c.h:82, from ../../src/include/postgres.h:47, from uuid-ossp.c:14: uuid-ossp.c:91:35: error: request for member ‘time_hi_and_version’ in something not a structure or union uu.time_hi_and_version = htons(uu.time_hi_and_version); \ ^ uuid-ossp.c:347:5: note: in expansion of macro ‘UUID_TO_NETWORK’ UUID_TO_NETWORK(uu); ^ uuid-ossp.c:103:4: error: request for member ‘time_hi_and_version’ in something not a structure or union uu.time_hi_and_version &= 0x0FFF; \ ^ uuid-ossp.c:348:5: note: in expansion of macro ‘UUID_V3_OR_V5’ UUID_V3_OR_V5(uu, v); ^ uuid-ossp.c:104:4: error: request for member ‘time_hi_and_version’ in something not a structure or union uu.time_hi_and_version |= (v << 12); \ ^ uuid-ossp.c:348:5: note: in expansion of macro ‘UUID_V3_OR_V5’ UUID_V3_OR_V5(uu, v); ^ uuid-ossp.c:105:4: error: request for member ‘clock_seq_hi_and_reserved’ in something not a structure or union uu.clock_seq_hi_and_reserved &= 0x3F; \ ^ uuid-ossp.c:348:5: note: in expansion of macro ‘UUID_V3_OR_V5’ UUID_V3_OR_V5(uu, v); ^ uuid-ossp.c:106:4: error: request for member ‘clock_seq_hi_and_reserved’ in something not a structure or union uu.clock_seq_hi_and_reserved |= 0x80; \ ^ uuid-ossp.c:348:5: note: in expansion of macro ‘UUID_V3_OR_V5’ UUID_V3_OR_V5(uu, v); ^ uuid-ossp.c:355:26: error: ‘str’ undeclared (first use in this function) uuid_to_string(&uu, &str, &status); ^ uuid-ossp.c:355:32: error: ‘status’ undeclared (first use in this function) uuid_to_string(&uu, &str, &status); ^ uuid-ossp.c:383:24: warning: implicit declaration of function ‘arc4random’ [-Wimplicit-function-declaration] (unsigned long) arc4random(), ^ : recipe for target 'uuid-ossp.o' failed make: *** [uuid-ossp.o] Error 1