[GRASS5] v.voronoi fails to build
Markus Neteler
neteler at itc.it
Fri Oct 15 08:25:20 EDT 2004
On Thu, Oct 14, 2004 at 01:13:28PM +0100, Glynn Clements wrote:
>
> Markus Neteler wrote:
>
> > > The new v.voronoi fails to build,
> > >
> > >
> > > "libgrasss_raster.so not found, needed by libgrass_display.so"
> > >
> > > libgrass_display.so: undefined reference to `R_pad_delete'
> >
> > On RH7/RH9/MDK10 no problem. Which OS/platform are you refering to?
>
> AFAICT, the error will occur if the shared libraries aren't in a
> directory where the loader would normally find them.
You are right. I forgot that I linked the libgrass* into
/usr/local/lib for QGIS convenience (yes, one could also write
a startup script for QGIS and extend the LD_LIBRARY_PATH).
> The link command for shared libraries on Linux (possibly other
> platforms) should include:
>
> -Wl,-rpath-link,$(ARCH_LIBDIR)
>
> This will tell the linker to look in $(ARCH_LIBDIR) for shared
> libraries which aren't explicitly linked via a -l switch but are
> dependencies of other shared libraries.
Should this go into aclocal.m4?
There is something like this for Linux:
747 Linux*)
748 SHLIB_CFLAGS="-fPIC"
749 SHLIB_LD_LIBS='${LIBS}'
750 SHLIB_SUFFIX=".so"
751
752 CFLAGS_OPTIMIZE=-O2
753 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings
754 # when you inline the string and math operations. Turn this off to
755 # get rid of the warnings.
756 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
757
758 if test "$have_dl" = yes; then
759 SHLIB_LD="${CC} -shared"
760 LDFLAGS="-Wl,--export-dynamic"
761 CC_SEARCH_FLAGS='-Wl,-rpath-link,${LIB_RUNTIME_DIR}'
762 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
763 else
764 AC_CHECK_HEADER(dld.h, [
765 SHLIB_LD="ld -shared"
766 LDFLAGS=""
767 CC_SEARCH_FLAGS=""
768 LD_SEARCH_FLAGS=""])
769 fi
Markus
More information about the grass-dev
mailing list