pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedCan't build uuid-ossp extension from source
2+ messages / 2 participants
[nested] [flat]
Commits from this thread:
2016-12-22 b86515da1a 60ad2ff586 1cfdb29c7d 2807080fb9 Give a useful error message if uuid-ossp is built without preconfiguration.
* Can't build uuid-ossp extension from source
@ 2016-12-22 11:01 Michael Kartashov <legacy.pteronura@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Michael Kartashov @ 2016-12-22 11:01 UTC (permalink / raw)
To: pgsql-bugs
Dear PostgreSQL bug-squasher-team,
recently I've installed PostgreSQL-9.6.1 and detected that I'm not able to
build its extension "uuid-oss".
I've built database from source code using instructions from the "Short
Version" section of its INSTALL file and I've tried to build uuid-ossp with
simple make & sudo make install in its directory in contrib, but "make"
command always ends with errors. You can find its output in attached file
"uuid-ossp_make_errors.txt". Also you can find there my "config.log" file.
Before I've got this issue, I had successfully built "pgcrypto" extension
and installed uuid-ossp lib (with sudo apt install uuid-dev).
I'm running Ubuntu 16.04.1 LTS, using gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4)
5.4.0 20160609 and GNU Make 4.1.
Can you help me with this issue, please?
Respectfully, Michael Kartashov.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Attachments:
uuid-ossp_make_errors.txt (text/plain, 5.3K) download
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(),
^
<builtin>: recipe for target 'uuid-ossp.o' failed
make: *** [uuid-ossp.o] Error 1
config.log (text/x-log, 360.4K) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Can't build uuid-ossp extension from source
@ 2016-12-22 15:42 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Kartashov <legacy.pteronura@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-12-22 15:42 UTC (permalink / raw)
To: Michael Kartashov <legacy.pteronura@gmail.com>; +Cc: pgsql-bugs
Michael Kartashov <legacy.pteronura@gmail.com> writes:
> I've built database from source code using instructions from the "Short
> Version" section of its INSTALL file and I've tried to build uuid-ossp with
> simple make & sudo make install in its directory in contrib, but "make"
> command always ends with errors.
You can't build uuid-ossp unless you've configured the appropriate uuid
library through configure's --with-uuid switch.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-12-22 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-12-22 11:01 Can't build uuid-ossp extension from source Michael Kartashov <legacy.pteronura@gmail.com>
2016-12-22 15:42 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox