[GRASS5] Re: GPJ_osr_to_grass
Markus Neteler
neteler at itc.it
Sat Jan 28 08:15:45 EST 2006
On Fri, Jan 27, 2006 at 07:30:10PM +0100, Radim Blazek wrote:
> There was also another bug involved (G_asprintf, BTW
> use G_store to make a copy of a string; BTW2 asprintf was never
> used on Linux).
>
> I have submited some fixes to QGIS and GRASS.
Now g.region doesn't compile (I used configure):
make[1]: Entering directory `/home/neteler/soft/61grass_cvsexp/general/g.region/cmd'
gcc -Wl,--export-dynamic -L/home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/lib -Wl,-rpath-link,/home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/lib -I/usr/local/include -DPACKAGE=\""grassmods"\" -o /home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/bin/g.region OBJ.i686-pc-linux-gnu/adjust.o OBJ.i686-pc-linux-gnu/main.o OBJ.i686-pc-linux-gnu/printwindow.o OBJ.i686-pc-linux-gnu/zoom.o -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -L/usr/local/lib -lgdal -lgrass_g3d -lgrass_gproj -lproj -L/usr/local/lib -lgdal -lgrass_gis -lgrass_datetime -lz -lgrass_datetime -lm -lz
/home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/lib/libgrass_gproj.so: undefined reference to `G_asprintf'
collect2: ld returned 1 exit status
make[1]: *** [/home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/bin/g.region] Fehler 1
make[1]: Leaving directory `/home/neteler/soft/61grass_cvsexp/general/g.region/cmd'
[neteler at dandre g.region]$ nm /home/neteler/soft/61grass_cvsexp/dist.i686-pc-linux-gnu/lib/libgrass_gis.so | grep G_asprintf
-> not defined
[neteler at dandre g.region]$ grep ASPR ../../include/config.h
#define HAVE_ASPRINTF 1
[neteler at dandre g.region]$
Something seems to be missing in lib/gis/asprintf.c
Markus
More information about the grass-dev
mailing list