[GRASS-dev] error compiling against gdal with oracle support
Markus Metz
markus.metz.giswork at gmail.com
Thu Aug 9 00:32:02 PDT 2012
What does gdalinfo --formats say?
When you compile GRASS with gdal, all the libraries that gdal needs
must be in the library path, even if GRASS itself does not link to
them directly. Therefore I guess that gdalinfo --formats and ogrinfo
--formats are currently not working on your system. Correct?
HTH,
Markus M
On Thu, Aug 9, 2012 at 9:04 AM, Margherita Di Leo
<dileomargherita at gmail.com> wrote:
> Sorry I forgot to mention that I'm on Red-Hat
> uname -r
> 2.6.32-279.2.1.el6.x86_64
>
>
> On Wed, Aug 8, 2012 at 2:37 PM, Margherita Di Leo
> <dileomargherita at gmail.com> wrote:
>>
>> Dear all,
>>
>> 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:
>> http://www.paolocorti.net/2011/03/22/compiling-gdal-with-oracle-support/
>> Everything went smooth and the support is working properly.
>> 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:
>>
>> GRASS GIS compilation log
>> -------------------------
>> Started compilation: Wed Aug 8 13:59:04 CEST 2012
>> --
>> Errors in:
>> /home/leomarg/gis/grass64_release/misc/m.nviz.image
>> /home/leomarg/gis/grass64_release/vector/v.net.allpairs
>> /home/leomarg/gis/grass64_release/vector/v.net.bridge
>> /home/leomarg/gis/grass64_release/vector/v.net.centrality
>> /home/leomarg/gis/grass64_release/vector/v.net.components
>> /home/leomarg/gis/grass64_release/vector/v.net.connectivity
>> /home/leomarg/gis/grass64_release/vector/v.net.distance
>> /home/leomarg/gis/grass64_release/vector/v.net.flow
>> /home/leomarg/gis/grass64_release/vector/v.net.spanningtree
>> /home/leomarg/gis/grass64_release/vector/v.net.timetable
>> --
>> In case of errors please change into the directory with error and run
>> 'make'.
>> If you get multiple errors, you need to deal with them in the order they
>> appear in the error log. If you get an error building a library, you will
>> also get errors from anything which uses the library.
>> --
>> Finished compilation: Wed Aug 8 14:11:01 CEST 2012
>>
>> So I go into /home/leomarg/gis/grass64_release/misc/m.nviz.image and run
>> "make", and it says:
>>
>> ../../include/Make/Module.make:25: warning: overriding commands for target
>> `install'
>> ../../include/Make/Rules.make:90: warning: ignoring old commands for
>> target `install'
>> 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
>> /usr/bin/ld: warning: libclntsh.so.11.1, needed by
>> /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.6.4.3svn.so,
>> not found (try using -rpath or -rpath-link)
>> /usr/bin/ld: warning: libnnz11.so, needed by
>> /home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/lib/libgrass_ogsf.6.4.3svn.so,
>> not found (try using -rpath or -rpath-link)
>> /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
>> /usr/bin/ld: final link failed: Nonrepresentable section on output
>> collect2: ld returned 1 exit status
>> make: ***
>> [/home/leomarg/gis/grass64_release/dist.x86_64-unknown-linux-gnu/bin/m.nviz.image]
>> Error 1
>>
>> The questions are:
>>
>> 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)
>> 2) How can I solve it? where am I supposed to use -rpath or -rpath-link
>> as suggested by the error log?
>>
>> Thanks in advance
>>
>>
>> --
>> Dr. Margherita Di Leo
>>
>>
>>
>
>
>
> --
> Dr. Margherita Di Leo
>
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
More information about the grass-dev
mailing list