Instalacion desde codigo fuente de la extension uuid-ossp de Postgres
Budget: $10 – $30 USD
Se realizo toda la instalacion de Postgres desde codigo fuente instalo la mayoria de las extensiones menos la extension uuid-ossp.
Se requiere instalar la extension uuid-ossp postgres desde codigo fuente pero me sale el siguiente error al compilar:
Al ejecutar make me salen los sigueintes errores:
make -C ../../src/backend generated-headers
make[1]: Entering directory `/root/postgresql-14.3/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-14.3/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-14.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-14.3/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-14.3/src/backend/utils'
make[1]: Leaving directory `/root/postgresql-14.3/src/backend'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fPIC -I../../contrib/pgcrypto -I. -I. -I../../src/include -D_GNU_SOURCE -c -o uuid-ossp.o uuid-ossp.c
uuid-ossp.c:39:2: error: #error "please use configure's --with-uuid switch to select a UUID library"
uuid-ossp.c: In function ‘uuid_generate_internal’:
uuid-ossp.c:274: error: ‘uuid_t’ undeclared (first use in this function)
uuid-ossp.c:274: error: (Each undeclared identifier is reported only once
uuid-ossp.c:274: error: for each function it appears in.)
uuid-ossp.c:274: error: expected ‘;’ before ‘uu’
uuid-ossp.c:275: error: ‘uuid_s_ok’ undeclared (first use in this function)
uuid-ossp.c:275: warning: ISO C90 forbids mixed declarations and code
uuid-ossp.c:278: warning: implicit declaration of function ‘uuid_create’
uuid-ossp.c:278: error: ‘uu’ undeclared (first use in this function)
uuid-ossp.c:282: warning: implicit declaration of function ‘uuid_to_string’
uuid-ossp.c:311: error: expected ‘;’ before ‘uu’
uuid-ossp.c:358: error: ‘str’ undeclared (first use in this function)
uuid-ossp.c:358: error: ‘status’ undeclared (first use in this function)
uuid-ossp.c:367: warning: left-hand operand of comma expression has no effect
uuid-ossp.c:386: warning: implicit declaration of function ‘arc4random’
make: *** [uuid-ossp.o] Error 1
Servidor Red Hat 6.5
Se requiere instalar la extension uuid-ossp postgres desde codigo fuente pero me sale el siguiente error al compilar:
Al ejecutar make me salen los sigueintes errores:
make -C ../../src/backend generated-headers
make[1]: Entering directory `/root/postgresql-14.3/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-14.3/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-14.3/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/root/postgresql-14.3/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/root/postgresql-14.3/src/backend/utils'
make[1]: Leaving directory `/root/postgresql-14.3/src/backend'
gcc -std=gnu99 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -O2 -fPIC -I../../contrib/pgcrypto -I. -I. -I../../src/include -D_GNU_SOURCE -c -o uuid-ossp.o uuid-ossp.c
uuid-ossp.c:39:2: error: #error "please use configure's --with-uuid switch to select a UUID library"
uuid-ossp.c: In function ‘uuid_generate_internal’:
uuid-ossp.c:274: error: ‘uuid_t’ undeclared (first use in this function)
uuid-ossp.c:274: error: (Each undeclared identifier is reported only once
uuid-ossp.c:274: error: for each function it appears in.)
uuid-ossp.c:274: error: expected ‘;’ before ‘uu’
uuid-ossp.c:275: error: ‘uuid_s_ok’ undeclared (first use in this function)
uuid-ossp.c:275: warning: ISO C90 forbids mixed declarations and code
uuid-ossp.c:278: warning: implicit declaration of function ‘uuid_create’
uuid-ossp.c:278: error: ‘uu’ undeclared (first use in this function)
uuid-ossp.c:282: warning: implicit declaration of function ‘uuid_to_string’
uuid-ossp.c:311: error: expected ‘;’ before ‘uu’
uuid-ossp.c:358: error: ‘str’ undeclared (first use in this function)
uuid-ossp.c:358: error: ‘status’ undeclared (first use in this function)
uuid-ossp.c:367: warning: left-hand operand of comma expression has no effect
uuid-ossp.c:386: warning: implicit declaration of function ‘arc4random’
make: *** [uuid-ossp.o] Error 1
Servidor Red Hat 6.5