Archlinux, ossp-uuid
Hi, guys.
I try to build postgresql on archlinux server.
I use "--prefix=user --with-ossp-uuid" flags
Build process succeed, but when I try to execute following query
=======
create or replace function uuid_generate_v1() returns uuid as
'$libdir/uuid-ossp', 'uuid_generate_v1' volatile strict language C
=======
I got error
"could not load libraty /usr/lib/postgresql/uuid-ossp.so":
/usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error"
How I can fix it?t
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
On Dec 25, 2010, at 12:55 PM, Николай Ижиков <nizhikov@gmail.com> wrote:
I got error
"could not load libraty /usr/lib/postgresql/uuid-ossp.so": /usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error"
How I can fix it?
cd contrib/uuid-ossp
make install
...Robert
I got following error when try your advice.
uuid-ossp.c:29:2: ошибка: #error OSSP uuid.h not found
uuid-ossp.c:35:2: ошибка: #error UUID length mismatch
uuid-ossp.c:68:27: ошибка: expected ')' before 'rc'
uuid-ossp.c:83:22: предупреждение: type defaults to 'int' in declaration of
'uuid_t'
uuid-ossp.c:83:29: ошибка: expected ';', ',' or ')' before '*' token
uuid-ossp.c:99:33: ошибка: expected declaration specifiers or '...' before
'uuid_t'
uuid-ossp.c: В функции 'string_to_uuid':
uuid-ossp.c:101:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:101:2: замечание: each undeclared identifier is reported only
once for each function it appears in
uuid-ossp.c:101:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:103:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:103:2: предупреждение: неявная декларация функции 'uuid_import'
uuid-ossp.c:103:19: ошибка: 'uuid' undeclared (first use in this function)
uuid-ossp.c:103:25: ошибка: 'UUID_FMT_STR' undeclared (first use in this
function)
uuid-ossp.c:103:44: ошибка: 'UUID_LEN_STR' undeclared (first use in this
function)
uuid-ossp.c:104:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:105:3: предупреждение: неявная декларация функции
'pguuid_complain'
uuid-ossp.c: В функции 'special_uuid_value':
uuid-ossp.c:112:2: ошибка: 'uuid_t' undeclared (first use in this function)
uuid-ossp.c:112:13: ошибка: 'uuid' undeclared (first use in this function)
uuid-ossp.c:113:2: предупреждение: ISO C90 forbids mixed declarations and
code
uuid-ossp.c:114:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:114:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:116:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:116:2: предупреждение: неявная декларация функции 'uuid_create'
uuid-ossp.c:117:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:119:2: предупреждение: неявная декларация функции 'uuid_load'
uuid-ossp.c:122:2: предупреждение: неявная декларация функции
'uuid_to_string'
uuid-ossp.c:123:2: предупреждение: неявная декларация функции 'uuid_destroy'
uuid-ossp.c: На верхнем уровне:
uuid-ossp.c:167:40: предупреждение: type defaults to 'int' in declaration of
'uuid_t'
uuid-ossp.c:167:47: ошибка: expected ';', ',' or ')' before '*' token
uuid-ossp.c: В функции 'uuid_generate_v1':
uuid-ossp.c:191:2: предупреждение: неявная декларация функции
'uuid_generate_internal'
uuid-ossp.c:191:32: ошибка: 'UUID_MAKE_V1' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v1mc':
uuid-ossp.c:198:32: ошибка: 'UUID_MAKE_V1' undeclared (first use in this
function)
uuid-ossp.c:198:47: ошибка: 'UUID_MAKE_MC' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v35_internal':
uuid-ossp.c:205:2: ошибка: 'uuid_t' undeclared (first use in this function)
uuid-ossp.c:205:13: ошибка: 'ns_uuid' undeclared (first use in this
function)
uuid-ossp.c:206:2: предупреждение: ISO C90 forbids mixed declarations and
code
uuid-ossp.c:207:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:207:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:209:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:210:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:213:8: ошибка: слишком много аргументов в вызове функции
'string_to_uuid'
uuid-ossp.c:99:1: замечание: declared here
uuid-ossp.c: В функции 'uuid_generate_v3':
uuid-ossp.c:233:36: ошибка: 'UUID_MAKE_V3' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v4':
uuid-ossp.c:240:32: ошибка: 'UUID_MAKE_V4' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v5':
uuid-ossp.c:250:36: ошибка: 'UUID_MAKE_V5' undeclared (first use in this
function)
uuid-ossp.c:251:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v4':
uuid-ossp.c:241:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v3':
uuid-ossp.c:234:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v1mc':
uuid-ossp.c:199:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v1':
uuid-ossp.c:192:1: предупреждение: control reaches end of non-void function
make: *** [uuid-ossp.o] Ошибка 1
26 декабря 2010 г. 18:50 пользователь Robert Haas
<robertmhaas@gmail.com>написал:
On Dec 25, 2010, at 12:55 PM, Николай Ижиков <nizhikov@gmail.com> wrote:
I got error
"could not load libraty /usr/lib/postgresql/uuid-ossp.so":
/usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error"How I can fix it?
cd contrib/uuid-ossp
make install...Robert
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
Hello?
Any body here?
I just want to build postgresql from source.
Can you tell me what I doing wrong?
27 декабря 2010 г. 12:28 пользователь Николай Ижиков
<nizhikov@gmail.com>написал:
I got following error when try your advice.
uuid-ossp.c:29:2: ошибка: #error OSSP uuid.h not found
uuid-ossp.c:35:2: ошибка: #error UUID length mismatch
uuid-ossp.c:68:27: ошибка: expected ')' before 'rc'
uuid-ossp.c:83:22: предупреждение: type defaults to 'int' in declaration of
'uuid_t'
uuid-ossp.c:83:29: ошибка: expected ';', ',' or ')' before '*' token
uuid-ossp.c:99:33: ошибка: expected declaration specifiers or '...' before
'uuid_t'
uuid-ossp.c: В функции 'string_to_uuid':
uuid-ossp.c:101:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:101:2: замечание: each undeclared identifier is reported only
once for each function it appears in
uuid-ossp.c:101:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:103:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:103:2: предупреждение: неявная декларация функции 'uuid_import'
uuid-ossp.c:103:19: ошибка: 'uuid' undeclared (first use in this function)
uuid-ossp.c:103:25: ошибка: 'UUID_FMT_STR' undeclared (first use in this
function)
uuid-ossp.c:103:44: ошибка: 'UUID_LEN_STR' undeclared (first use in this
function)
uuid-ossp.c:104:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:105:3: предупреждение: неявная декларация функции
'pguuid_complain'
uuid-ossp.c: В функции 'special_uuid_value':
uuid-ossp.c:112:2: ошибка: 'uuid_t' undeclared (first use in this function)
uuid-ossp.c:112:13: ошибка: 'uuid' undeclared (first use in this function)
uuid-ossp.c:113:2: предупреждение: ISO C90 forbids mixed declarations and
code
uuid-ossp.c:114:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:114:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:116:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:116:2: предупреждение: неявная декларация функции 'uuid_create'
uuid-ossp.c:117:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:119:2: предупреждение: неявная декларация функции 'uuid_load'
uuid-ossp.c:122:2: предупреждение: неявная декларация функции
'uuid_to_string'
uuid-ossp.c:123:2: предупреждение: неявная декларация функции
'uuid_destroy'
uuid-ossp.c: На верхнем уровне:
uuid-ossp.c:167:40: предупреждение: type defaults to 'int' in declaration
of 'uuid_t'
uuid-ossp.c:167:47: ошибка: expected ';', ',' or ')' before '*' token
uuid-ossp.c: В функции 'uuid_generate_v1':
uuid-ossp.c:191:2: предупреждение: неявная декларация функции
'uuid_generate_internal'
uuid-ossp.c:191:32: ошибка: 'UUID_MAKE_V1' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v1mc':
uuid-ossp.c:198:32: ошибка: 'UUID_MAKE_V1' undeclared (first use in this
function)
uuid-ossp.c:198:47: ошибка: 'UUID_MAKE_MC' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v35_internal':
uuid-ossp.c:205:2: ошибка: 'uuid_t' undeclared (first use in this function)
uuid-ossp.c:205:13: ошибка: 'ns_uuid' undeclared (first use in this
function)
uuid-ossp.c:206:2: предупреждение: ISO C90 forbids mixed declarations and
code
uuid-ossp.c:207:2: ошибка: 'uuid_rc_t' undeclared (first use in this
function)
uuid-ossp.c:207:12: ошибка: expected ';' before 'rc'
uuid-ossp.c:209:2: ошибка: 'rc' undeclared (first use in this function)
uuid-ossp.c:210:12: ошибка: 'UUID_RC_OK' undeclared (first use in this
function)
uuid-ossp.c:213:8: ошибка: слишком много аргументов в вызове функции
'string_to_uuid'
uuid-ossp.c:99:1: замечание: declared here
uuid-ossp.c: В функции 'uuid_generate_v3':
uuid-ossp.c:233:36: ошибка: 'UUID_MAKE_V3' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v4':
uuid-ossp.c:240:32: ошибка: 'UUID_MAKE_V4' undeclared (first use in this
function)
uuid-ossp.c: В функции 'uuid_generate_v5':
uuid-ossp.c:250:36: ошибка: 'UUID_MAKE_V5' undeclared (first use in this
function)
uuid-ossp.c:251:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v4':
uuid-ossp.c:241:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v3':
uuid-ossp.c:234:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v1mc':
uuid-ossp.c:199:1: предупреждение: control reaches end of non-void function
uuid-ossp.c: В функции 'uuid_generate_v1':
uuid-ossp.c:192:1: предупреждение: control reaches end of non-void function
make: *** [uuid-ossp.o] Ошибка 126 декабря 2010 г. 18:50 пользователь Robert Haas <robertmhaas@gmail.com>написал:
On Dec 25, 2010, at 12:55 PM, Николай Ижиков <nizhikov@gmail.com> wrote:
I got error
"could not load libraty /usr/lib/postgresql/uuid-ossp.so":
/usr/lib/postgresql/uuid-ossp.so: undefined symbol: uuid_error"How I can fix it?
cd contrib/uuid-ossp
make install...Robert
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
******* ******<nizhikov@gmail.com> wrote:
Can you tell me what I doing wrong?
Did you configure --with_ossp_uuid? Did you get any errors or
warnings when you ran ./configure?
-Kevin
=?KOI8-R?B?7snLz8zByiDp1snLz9c=?= <nizhikov@gmail.com> writes:
Hello?
Any body here?
I just want to build postgresql from source.
Can you tell me what I doing wrong?
contrib/uuid-ossp relies on OSSP's uuid library, which you don't seem to
have installed. See
http://www.ossp.org/pkg/lib/uuid/
Most Linux distros offer this prepackaged, though I don't know one way
or the other about archlinux.
regards, tom lane
yes. I configure with this flag.
Configure ends successfull.
It print a lot to output so where I have to see for warning messages?
2010/12/27 Kevin Grittner <Kevin.Grittner@wicourts.gov>
******* ******<nizhikov@gmail.com> wrote:
Can you tell me what I doing wrong?
Did you configure --with_ossp_uuid? Did you get any errors or
warnings when you ran ./configure?-Kevin
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
Yes.
I install ossp-uuid package.
[/usr/src/postgresql-9.0.2] $ ls /usr/lib | grep uuid
drwxr-xr-x 3 root root 4,0K Дек 20 22:39 ossp_uuid
-rw-r--r-- 1 root root 17K Авг 2 18:27 libuuid.a
lrwxrwxrwx 1 root root 22 Дек 23 21:35 libuuid.so ->
/usr/lib/libuuid.so.16
lrwxrwxrwx 1 root root 18 Дек 20 22:02 libuuid.so.16 ->
libuuid.so.16.0.22
-rwxr-xr-x 1 root root 45K Дек 20 14:50 libuuid.so.16.0.22
2010/12/27 Tom Lane <tgl@sss.pgh.pa.us>
=?KOI8-R?B?7snLz8zByiDp1snLz9c=?= <nizhikov@gmail.com> writes:
Hello?
Any body here?
I just want to build postgresql from source.
Can you tell me what I doing wrong?contrib/uuid-ossp relies on OSSP's uuid library, which you don't seem to
have installed. See
http://www.ossp.org/pkg/lib/uuid/
Most Linux distros offer this prepackaged, though I don't know one way
or the other about archlinux.regards, tom lane
--
С уважением, Николай Ижиков
NIzhikov@gmail.com
******* ******<nizhikov@gmail.com> wrote:
2010/12/27 Kevin Grittner <Kevin.Grittner@wicourts.gov>
Did you configure --with_ossp_uuid? Did you get any errors or
warnings when you ran ./configure?
yes. I configure with this flag.
Configure ends successfull.
Odd. I don't have the required packages installed (which on my
system would be libossp-uuid-dev and libossp-uuid15), and I get this
when I configure with that flag:
configure: error: library 'ossp-uuid' or 'uuid' is required for
OSSP-UUID
It print a lot to output so where I have to see for warning
messages?
Look through it or grep it for uuid (probably using the grep -i
switch).
Oh, by the way, my copy/paste of the switch (from the Makefile) used
underscores; on the ./configure line you'd need to use dashes:
--with-ossp-uuid
-Kevin
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
******* ******<nizhikov@gmail.com> wrote:
2010/12/27 Kevin Grittner <Kevin.Grittner@wicourts.gov>
Did you configure --with_ossp_uuid? Did you get any errors or
warnings when you ran ./configure?
yes. I configure with this flag.
Configure ends successfull.
Oh, by the way, my copy/paste of the switch (from the Makefile) used
underscores; on the ./configure line you'd need to use dashes:
--with-ossp-uuid
I think if you spell it with underscores, configure will ignore it as an
unrecognized switch. There is a warning that comes out about that, but
only a warning. Possibly that's why the reconfiguration appeared
successful but nothing useful happened.
As far as the underlying problem is concerned, my bet is on one of two
cases
(1) OP forgot to install -devel or -dev subpackage
(2) OP does not in fact have OSSP's uuid installed, but some other
library calling itself uuid; there is a reasonably popular one from
ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng for instance.
regards, tom lane