Sorry I forgot to mention that I'm on Red-Hat <div><div>uname -r</div><div>2.6.32-279.2.1.el6.x86_64</div><div><br></div><br><div class="gmail_quote">On Wed, Aug 8, 2012 at 2:37 PM, Margherita Di Leo <span dir="ltr"><<a href="mailto:dileomargherita@gmail.com" target="_blank">dileomargherita@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<div><br></div><div>today I have ri-compiled gdal 1.9.1 because i needed to add the Oracle support, and I've followed step by step the excellent "how to" listed here: <a href="http://www.paolocorti.net/2011/03/22/compiling-gdal-with-oracle-support/" target="_blank">http://www.paolocorti.net/2011/03/22/compiling-gdal-with-oracle-support/</a></div>

<div>Everything went smooth and the support is working properly.</div><div>Problem raises when I ri-compile grass 6.4 svn against gdal (after have run "make distclean" and "svn up"). I use the _same configure options I've always used before_, because I don't really need the oracle support in grass. BUT now I get the following error:</div>

<div><br></div><div><div>GRASS GIS compilation log</div><div>-------------------------</div><div>Started compilation: Wed Aug  8 13:59:04 CEST 2012</div><div>--</div><div>Errors in:</div><div>/home/leomarg/gis/grass64_release/misc/m.nviz.image</div>

<div>/home/leomarg/gis/grass64_release/vector/v.net.allpairs</div><div>/home/leomarg/gis/grass64_release/vector/v.net.bridge</div><div>/home/leomarg/gis/grass64_release/vector/v.net.centrality</div><div>/home/leomarg/gis/grass64_release/vector/v.net.components</div>

<div>/home/leomarg/gis/grass64_release/vector/v.net.connectivity</div><div>/home/leomarg/gis/grass64_release/vector/v.net.distance</div><div>/home/leomarg/gis/grass64_release/vector/v.net.flow</div><div>/home/leomarg/gis/grass64_release/vector/v.net.spanningtree</div>

<div>/home/leomarg/gis/grass64_release/vector/v.net.timetable</div><div>--</div><div>In case of errors please change into the directory with error and run 'make'.</div><div>If you get multiple errors, you need to deal with them in the order they</div>

<div>appear in the error log. If you get an error building a library, you will</div><div>also get errors from anything which uses the library.</div><div>--</div><div>Finished compilation: Wed Aug  8 14:11:01 CEST 2012</div>

</div><div><br></div><div>So I go into /home/leomarg/gis/grass64_release/misc/m.nviz.image and run "make", and it says:</div><div><br></div><div><div>../../include/Make/Module.make:25: warning: overriding commands for target `install'</div>

<div>../../include/Make/Rules.make:90: warning: ignoring old commands for target `install'</div><div>gcc -L/home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib    -o /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/bin/m.nviz.image OBJ.x86_64-unknown-linux-gnu/args.o OBJ.x86_64-unknown-linux-gnu/cplane.o OBJ.x86_64-unknown-linux-gnu/main.o OBJ.x86_64-unknown-linux-gnu/surface.o OBJ.x86_64-unknown-linux-gnu/vector.o OBJ.x86_64-unknown-linux-gnu/volume.o OBJ.x86_64-unknown-linux-gnu/write_img.o  -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_ogsf.6.4.3svn -lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn  -lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_sites.6.4.3svn -lgrass_datetime.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_rtree.6.4.3svn  -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn   -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_rtree.6.4.3svn  -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn   -lgrass_nviz.6.4.3svn -lgrass_bitmap.6.4.3svn -lgrass_linkm.6.4.3svn  -lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_rtree.6.4.3svn  -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz     -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn   -lgrass_g3d.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz      -lm  -lz </div>

<div>/usr/bin/ld: warning: libclntsh.so.11.1, needed by /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib/<a href="http://libgrass_ogsf.6.4.3svn.so" target="_blank">libgrass_ogsf.6.4.3svn.so</a>, not found (try using -rpath or -rpath-link)</div>

<div>/usr/bin/ld: warning: libnnz11.so, needed by /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib/<a href="http://libgrass_ogsf.6.4.3svn.so" target="_blank">libgrass_ogsf.6.4.3svn.so</a>, not found (try using -rpath or -rpath-link)</div>

<div>/usr/bin/ld: /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/bin/m.nviz.image: hidden symbol `stat' in /usr/lib64/libc_nonshared.a(stat.oS) is referenced by DSO</div><div>/usr/bin/ld: final link failed: Nonrepresentable section on output</div>

<div>collect2: ld returned 1 exit status</div><div>make: *** [/home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/bin/m.nviz.image] Error 1</div></div><div><br></div><div>The questions are:</div><div><br></div>

<div>1) Why grass looks for libclntsh.so.11.1 and libnnz11.so? They are actually present on the system and correctly linked to gdal, but I've not specified grass to require them (i.e. I did not require the oracle support for grass)</div>

<div>2) How can I solve it? where am I supposed to use  -rpath or -rpath-link as suggested by the error log?</div><div><br></div><div>Thanks in advance</div><span class="HOEnZb"><font color="#888888"><div><br clear="all">
<div><br></div>-- <br><span style="color:rgb(102,102,102)">Dr. Margherita Di Leo</span><font color="#666666"><br>
</font><span style="color:rgb(102,102,102)"></span><br><br><br>
</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(102,102,102)">Dr. Margherita Di Leo</span><font color="#666666"><br></font><span style="color:rgb(102,102,102)"></span><br>
<br><br>
</div>