[GRASS-user] ./configure error with gdal-grass-1.3.1.2

David dpleydel at univ-fcomte.fr
Fri Jun 30 10:55:48 EDT 2006


Here's another of those gdal-grass plugin don't work threads.

My ld.so.conf reads like this

/usr/X11R6/lib

## Grass 6.0.2
## /usr/lib/grass/lib

## Grass 6.1.cvs
/usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/lib

## Proj Library
/usr/lib

## gdal-config file
/usr/bin

## geos-config
/usr/local/bin


I have run ldconfig as root.

Then I did

./configure --with-gdal=/usr/local/bin/gdal-config --with-grass=/usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24

which produced the following output

_24
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking for g++ -shared ... yes
user supplied gdal-config (/usr/local/bin/gdal-config)
using /usr/local/lib/gdalplugins as GDAL shared library autoload directory
checking for G_asprintf in -lgrass_gis... no
configure: error: --with-grass=/usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24 requested, but libraries not found!

In config-log there were two hints at errors, the first...

configure:1999: $? = 0
configure:2002: test -s conftest.o
configure:2005: $? = 0
configure:2023: result: none needed
configure:2041: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: syntax error before 'me'
configure:2047: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif


The second...

configure:2461: $? = 0
configure:2464: test -s conftest.o
configure:2467: $? = 0
configure:2493: g++ -c -g -O2  conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:2499: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| exit (42);
|   ;
|   return 0;
| }


How might I overcome these errors?

Many thanks
David




More information about the grass-user mailing list