FS#56296 - [postgis] Cannot load extension in PostgreSQL 10.1
Attached to Project:
Community Packages
Opened by Jesse Denardo (denaje) - Friday, 10 November 2017, 20:23 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 12 November 2017, 20:40 GMT
Opened by Jesse Denardo (denaje) - Friday, 10 November 2017, 20:23 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Sunday, 12 November 2017, 20:40 GMT
|
Details
Description:
Creating postgis extension fails in PostgreSQL 10.1. Error: local=# create extension postgis; ERROR: could not load library "/usr/lib/postgresql/postgis-2.4.so": /usr/lib/postgresql/postgis-2.4.so: undefined symbol: Float8GetDatum Package version: 2.4.1-1 ld -v output: $ ld -v /usr/lib/postgresql/postgis-2.4.so GNU ld (GNU Binutils) 2.29.1 ld: warning: cannot find entry symbol _start; not setting start address /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_palloc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `WinGetPartitionLocalMemory' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DirectFunctionCall3Coll' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `numeric_int4' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DatumGetFloat8' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `examine_variable' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_do_encoding_conversion' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `GetCurrentTransactionId' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `per_MultiFuncCall' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `Float8GetDatum' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errhint' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errfinish' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `datumCopy' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_modifytuple' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_typlenbyvalalign' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `deconstruct_array' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_attnum' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `WinGetFuncArgInPartition' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_fnumber' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `makeMdArrayResult' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DirectFunctionCall1Coll' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_atoi' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_guc_variables' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `heap_freetuple' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `init_MultiFuncCall' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_call_result_type' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `palloc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `MemoryContextDelete' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errmsg' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `WinGetFuncArgCurrent' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_detoast_datum_slice' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `accumArrayResult' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `MemoryContextCreate' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `hash_search' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `TupleDescGetAttInMetadata' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `ProcessInterrupts' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_qsort' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_finish' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `list_nth' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `textout' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `ReleaseSysCache' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_exec' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `WinGetCurrentPosition' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DirectFunctionCall2Coll' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DirectFunctionCall4Coll' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_gettype' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_connect' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errstart' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_getbinval' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `end_MultiFuncCall' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `regclassin' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `repalloc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `WinGetPartitionRowCount' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `BlessTupleDesc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `CurrentMemoryContext' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `AggCheckCallContext' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_tuptable' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DirectFunctionCall5Coll' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_fn_expr_argtype' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_attstatsslot' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `array_iterate' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_detoast_datum' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pg_detoast_datum_copy' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `default_statistics_target' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `hash_create' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `array_create_iterator' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_getvalue' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `HeapTupleHeaderGetDatum' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `GetDatabaseEncoding' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `GetNumConfigOptions' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `my_exec_path' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `heap_form_tuple' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `construct_array' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `ArrayGetNItems' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pfree' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SearchSysCache' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `elog_start' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_share_path' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `hash_any' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_typbyval' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errcode' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `MemoryContextAlloc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `palloc0' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_typlen' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `array_free_iterator' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `get_rel_name' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `BuildTupleFromCStrings' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `RelationNameGetTupleDesc' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `SPI_processed' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `errmsg_internal' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `vacuum_delay_point' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pqsignal' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `free_attstatsslot' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `DefineCustomStringVariable' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `elog_finish' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `pstrdup' /usr/lib/postgresql/postgis-2.4.so: undefined reference to `InterruptPending' Steps to reproduce: 1. Upgrade postgresql to 10.1-1 2. Init database (initdb --locale en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data) 3. Create new database 4. Attempt to create the postgis extension in the database ("create extension postgis;") |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Sunday, 12 November 2017, 20:40 GMT
Reason for closing: Fixed
Additional comments about closing: postgis-2.4.1-2 released
Sunday, 12 November 2017, 20:40 GMT
Reason for closing: Fixed
Additional comments about closing: postgis-2.4.1-2 released