[GRASS-user] ./configure error with gdal-grass-1.3.1.2
Yves Jacolin
yjacolin at free.fr
Fri Jun 30 10:10:29 EDT 2006
I had this problem last week end. I create a link from all file
in /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/grass
to /usr/local/src/grass61/grass-6.1.cvs_src_snapshot_2006_06_24/include/
except for those that already exist. And now it works :-)
Y.
Le Vendredi 30 Juin 2006 16:55, David a écrit :
> 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
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
--
Yves Jacolin
-------------
http://yjacolin.gloobe.org
http://softlibre.gloobe.org
More information about the grass-user
mailing list