<div dir="ltr"><div>Hi,</div><div><br></div><div>This is my first posting, I´m new to Postgis. I´ve seen similar problems related in lists all around, but this one, I couldn´t manage to solve.</div><div><br></div><div>I have an OpenBSD 5.3 server, with PostgreSQL 9.2.4 on it, which always worked fine. I have to transfer some geospatial databases from a Windows server, so I downloaded Postgis from the source (I needed the latest versions), configured, compiled & installed it.</div>

<div>Everything seems to be fine, but when I try to create the postgis extension (with raster support) on psql:</div><div><br></div><div>  <b>postgres=# CREATE EXTENSION postgis;</b></div><div><b>  ERROR:  could not load library "/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>": dlopen (/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>) failed: Cannot load specified object</b></div>

<div><br></div><div>The paths seems all to be OK:</div><div><br></div><div>  <b># ls -l /usr/local/pgsql/lib/*post*</b></div><div><b>  -rwxr-xr-x  1 root  wheel  1276039 Jul  1 16:50 /usr/local/pgsql/lib/<a href="http://postgis-2.2.so">postgis-2.2.so</a></b></div>

<div><b>  -rwxr-xr-x  1 root  wheel  1208861 Jul  1 16:50 /usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a></b></div><div><br></div><div>(I know it´s the development, and not the stable release, but the results are the same with all other releases.)</div>

<div><br></div><div>When I try to preload the rtpostgis shared object setting the LD_PRELOAD environment variable, I get this on psql:</div><div><br></div><div> <b> $ psql                   </b></div><div><b>  psql:/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>: undefined symbol 'CurrentMemoryContext'</b></div>

<div><b>  psql:/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>: undefined symbol 'SPI_tuptable'</b></div><div><b>  psql:/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>: undefined symbol 'SPI_result'</b></div>

<div><b>  psql:/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>: undefined symbol 'InterruptPending'</b></div><div><b>  psql:/usr/local/pgsql/lib/<a href="http://rtpostgis-2.2.so">rtpostgis-2.2.so</a>: undefined symbol 'SPI_processed'</b></div>

<div><b>  psql (9.2.4)</b></div><div><br></div><div>Didn´t find any further useful info setting LD_DEBUG (I may list the output if necessary, anyway).</div><div><br></div><div>Any hint on how to solve this? I´m running out of ideas.</div>

<div><br></div><div>Thanks in advance,</div><div>Marcelo</div><div><br></div></div>