<br><font size=3 face="Verdana">Finally we've installed postigs with geos and proj, the aditional steps above were necessary before ./configure of proj: </font>
<br>
<br><font size=3 face="Verdana">cd /root/proj-4.5.0</font>
<br><font size=3 face="Verdana">grep –r 'fpic' *</font>
<br><font size=3 face="Verdana">vi configure </font>
<br><font size=3 face="Verdana">:1,20000 s/fpic/fPIC/g -> replace fpic by fPIC</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Administracao Postgre</b></font>
<p><font size=1 face="sans-serif">11/05/2007 11:13</font>
<br>
<td>
<br><font size=1 face="sans-serif"> Para: PostGIS Users Discussion <postgis-users@postgis.refractions.net></font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Assunto: Re: [postgis-users] Error installing PostGis</font><a href=Notes:///0325713800517741/DABA975B9FB113EB852564B5001283EA/75D0C7B254539090032572C10070B0C3>Link</a></table>
<br>
<br><font size=2 face="sans-serif">Hi everybody, I'm still looking for help !!! </font>
<br>
<br><font size=2 face="sans-serif">Since then I've found this explanation in an IBM's manual (http://www-306.ibm.com/software/htp/tpf/pages/gtpm1mst.pdf):</font>
<br>
<br><font size=2 face="Arial Narrow"><b>Relocation error Problem</b>: I received error message relocation truncated to fit :. </font>
<br>
<br><font size=2 face="Arial Narrow"><b>Solution</b>: This is actually a binutils error, but the error occurs when you make a call to tpf-gcc and specify the -shared command or the -or command, or both, to tell the compiler to make a call to the linker. <b>This error is caused when your global offset table (GOT) size has exceeded 512 entries</b>. When the GOT has reached this size, you must use the <b>-fPIC</b> option instead of the <b>-fpic</b> option when compiling your code. You must add the -fPIC option to the makefile for your library in all the correct areas because all source code in the shared object must have this option. You can mix and match the -fpic and -fPIC when your GOT contains fewer than 512 entries is allowed. <b>However, you cannot mix and match these options when the GOT has 512 entries or more</b>.</font>
<br>
<br><font size=2 face="sans-serif">It seems that make is using both options but I've found only the string "<b>-fPIC</b>"<b> </b>in files of /postgresql-8.1.4/contrib/postgis-1.0.6 directory (using grep command). </font>
<br>
<br><font size=2 face="sans-serif">Could the option <b>-fpic</b> be a default value of a gcc parameter? How can I check or clear the content of "global offset table"?</font>
<br>
<br><font size=2 face="Arial Narrow">lxpgtst:~/postgresql-8.1.4/contrib/postgis-1.0.6 # make</font>
<br><font size=2 face="Arial Narrow">make -C lwgeom</font>
<br><font size=2 face="Arial Narrow">make[1]: Entering directory `/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom'</font>
<br><font size=2 face="Arial Narrow">sh ../geos_version.sh /usr/local > postgis_geos_version.h</font>
<br><font size=2 face="Arial Narrow">gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline -Wendif-labels -fno-strict-aliasing -DUSE_VERSION=81 -DPOSTGIS_LIB_VERSION='"1.0.6"' -DPOSTGIS_SCRIPTS_VERSION='"0.3.0"' -DPOSTGIS_BUILD_DATE='"2007-04-18 15:21:16"' -I/usr/local/include -DUSE_PROJ -I/usr/local/include -DAUTOCACHE_BBOX=1 -g -O2 </font><font size=2 color=blue face="Arial Narrow"><b>-fPIC</b></font><font size=2 face="Arial Narrow"> -fexceptions -DUSE_GEOS -DUSE_STATS </font><font size=2 color=blue face="Arial Narrow"><b>-fpic</b></font><font size=2 face="Arial Narrow"> -shared -Wl,-soname,liblwgeom.so.1 measures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o lwmpoint.o lwmline.o lwmpoly.o lwcollection.o lwgeom_geos_wrapper.o wktunparse.o lwgparse.o wktparse.tab.o lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o lwgeom_svg.o lwgeom_gml.o lwgeom_triggers.o lwgeom_dump.o -L/root/postgresql-8.1.4/contrib/postgis-1.0.6/../../src/port -L/usr/local/lib -L/usr/local/lib -L/root/postgresql-8.1.4/contrib/postgis-1.0.6/../../src/port -lstdc++ -lgeos -lproj -Wl,-rpath,/usr/local/pgsql/lib -o liblwgeom.so.1.0</font>
<br><font size=2 face="Arial Narrow">measures.o(.text+0xbd8): In function `pt_in_ring_2d':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/measures.c:28: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwerror</font>
<br><font size=2 face="Arial Narrow">ptarray.o(.text+0x572): In function `ptarray_addPoint':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/ptarray.c:289: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwerror</font>
<br><font size=2 face="Arial Narrow">ptarray.o(.text+0x592):/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/ptarray.c:296: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwerror</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0x25e): In function `box3d_to_box2df_p':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:192: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwnotice</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0x3da): In function `getPoint_internal':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:667: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwerror</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0x554): In function `lwgeom_getsubgeometry_inspected':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1071: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwerror</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0x5f2): In function `printBOX3D':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1590: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwnotice</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0x674): In function `printType':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1685: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwnotice</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0xa26): In function `printBYTES':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1635: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwnotice</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0xa8e):/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1641: </font><font size=2 color=red face="Arial Narrow">relocation truncated to fit: R_390_GOT12</font><font size=2 face="Arial Narrow"> lwnotice</font>
<br><font size=2 face="Arial Narrow">lwgeom_api.o(.text+0xac2): In function `parse_lwgeom_wkt':</font>
<br><font size=2 face="Arial Narrow">/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:2167: additional relocation overflows omitted from the output</font>
<br><font size=2 face="Arial Narrow">collect2: ld returned 1 exit status</font>
<br><font size=2 face="Arial Narrow">make[1]: *** [liblwgeom.so.1.0] Error 1</font>
<br><font size=2 face="Arial Narrow">make[1]: Leaving directory `/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom'</font>
<br><font size=2 face="Arial Narrow">make: *** [liblwgeom] Error 2</font>
<br><font size=2 face="Arial Narrow">lxpgtst:~/postgresql-8.1.4/contrib/postgis-1.0.6 #</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>postgreadm@ibge.gov.br</b></font>
<br><font size=1 face="sans-serif">Enviado Por: postgis-users-bounces@postgis.refractions.net</font>
<p><font size=1 face="sans-serif">18/04/2007 17:29</font>
<br><font size=1 face="sans-serif">Favor responder a PostGIS Users Discussion</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> Para: postgis-users@postgis.refractions.net</font>
<br><font size=1 face="sans-serif"> cc: vivacqua@ibge.gov.br, versant@ibge.gov.br</font>
<br><font size=1 face="sans-serif"> Assunto: [postgis-users] Error installing PostGis</font></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Hi, </font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="sans-serif"><br>
I'm trying to install PostGis with GEOS and PROJ and I'm getting this error when running make</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:667: relocation truncated to fit: R_390_GOT12 lwerror</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0x554): In function `lwgeom_getsubgeometry_inspected':</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1071: relocation truncated to fit: R_390_GOT12 lwerror</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0x5f2): In function `printBOX3D':</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1590: relocation truncated to fit: R_390_GOT12 lwnotice</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0x674): In function `printType':</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1685: relocation truncated to fit: R_390_GOT12 lwnotice</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0xa26): In function `printBYTES':</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1635: relocation truncated to fit: R_390_GOT12 lwnotice</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0xa8e):/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:1641: relocation truncated to fit: R_390_GOT12 lwnotice</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lwgeom_api.o(.text+0xac2): In function `parse_lwgeom_wkt':</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom/lwgeom_api.c:2167: additional relocation overflows omitted from the output</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
collect2: ld returned 1 exit status</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
make[1]: *** [liblwgeom.so.1.0] Error 1</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
make[1]: Leaving directory `/root/postgresql-8.1.4/contrib/postgis-1.0.6/lwgeom'</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
make: *** [liblwgeom] Error 2</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
lxpgtst:~/postgresql-8.1.4/contrib/postgis-1.0.6 #</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
We are using the following software versions:</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
z/Linux: <b>SUSE Entreprise Edition SLES9 SP3 </b><br>
GEOS 2.1.4</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Proj 4.5.0</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
PostGis 1.0.6</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
PostgreSQL 8.1.4</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
lxpgtst:~/postgresql-8.1.4/contrib/postgis-1.0.6 # make -v</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><b><br>
GNU Make 3.80</b></font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
lxpgtst:~/postgresql-8.1.4/contrib/postgis-1.0.6 # gcc -v</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Reading specs from /usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/specs</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib64 --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib64 --with-system-zlib --enable</font><font size=2 color=blue face="sans-serif">-shared</font><font size=2 face="sans-serif"> --enable-__cxa_atexit s390x-suse-linux</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
Thread model: posix</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><b><br>
gcc version 3.3.3 (SuSE Linux)</b></font><font size=3 face="Times New Roman"> </font>
<br><font size=2 face="sans-serif"><br>
Any clue? </font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="sans-serif"><br>
Thanks in advance. </font><font size=3 face="Times New Roman"><br>
</font><font size=2 face="Courier New">_______________________________________________<br>
postgis-users mailing list<br>
postgis-users@postgis.refractions.net<br>
http://postgis.refractions.net/mailman/listinfo/postgis-users<br>
</font>
<br>
<br>
<br>
<br>