[GRASS5] v.out.ascii: Segmentation fault

Jachym Cepicky jachym.cepicky at centrum.cz
Mon Nov 29 07:07:40 EST 2004


On Thu, Nov 25, 2004 at 02:01:21PM +0100, Markus Neteler wrote:
> > ./configure --with-cxx   --with-postgres-includes=/usr/include/postgresql/   --with-gdal=/usr/local/bin/gdal-config   --with-proj   --with-motif   --with-glw   --with-nls   --with-freetype  --with-freetype-includes=/usr/include/freetype2 --with-tcltk-includes=/usr/include/tcl8.4/
> 
> SO: did configure report to have found Motif and glw and GL etc?
> 
[...]
checking whether to use Motif... yes
checking for location of Motif includes... 
checking for Xm/Xm.h... yes
checking for location of Motif library... 
checking for XmStringCreate in -lXm... yes
checking whether to use GLw... yes
checking for location of GLw includes... 
checking for GL/GLwMDrawA.h... yes
checking for location of GLw library... 
checking for GLwCreateMDrawingArea in -lGLw... no
checking for GLwCreateM1DrawingArea in -lGLw... yes
[...]

 Source directory:            /usr/src/grass/grass51
 Build directory:             /usr/src/grass/grass51
 Installation directory:      /usr/local/grass-5.7.cvs
 Startup script in directory: ${exec_prefix}/bin
 C compiler:                  gcc -g -O2 
 C++ compiler:                c++ -g -O2
 FORTRAN compiler:            g77
 Building shared libraries:   yes

  NVIZ:                       yes

  X11 support:                yes
  JPEG support:               yes
  TIFF support:               yes
  PNG support:                yes
  Tcl/Tk support:             yes
  PostgreSQL support:         yes
  MySQL support:              no
  OpenGL(R) support:          yes
  ODBC support:               yes
  FFTW support:               yes
  BLAS support:               no
  LAPACK support:             no
  Motif support:              yes
  FreeType support:           yes
  GLw support:                yes
  NLS support:                yes
  Readline support:           no
  C++ support:                yes
  openDWG support:            no
  GDAL support:               yes
  OGR support:                no


I would say, they are there.

> [...]
> What happens if you run
> 
> cd grass57src
> cd lib/vector/Vlib/
> make clean
> make
> (I only want to know the last (g)cc line where the library is generated.
> 
There they are:
gcc -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include  -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\"     -DPACKAGE=\""grasslibs"\"    -DPACKAGE=\""grasslibs"\"  -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/tin.o -c tin.c
gcc -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include  -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\"     -DPACKAGE=\""grasslibs"\"    -DPACKAGE=\""grasslibs"\"  -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/type.o -c type.c
gcc -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include  -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\"     -DPACKAGE=\""grasslibs"\"    -DPACKAGE=\""grasslibs"\"  -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/window.o -c window.c
gcc -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include  -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\"     -DPACKAGE=\""grasslibs"\"    -DPACKAGE=\""grasslibs"\"  -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/write.o -c write.c
write.c:43: warning: initialization from incompatible pointer type
write.c:43: warning: initialization from incompatible pointer type
gcc -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include  -g -O2  -Wall -Wconversion -Wno-implicit-int   -fPIC    -DPACKAGE=\""grasslibs"\"     -DPACKAGE=\""grasslibs"\"    -DPACKAGE=\""grasslibs"\"  -I/usr/src/grass/grass51/include -I/usr/src/grass/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/write_nat.o -c write_nat.c
write_nat.c: In function `V2_write_line_nat':
write_nat.c:103: warning: `line' might be used uninitialized in this function
write_nat.c:103: warning: `area' might be used uninitialized in this function
write_nat.c: In function `V2_delete_line_nat':
write_nat.c:613: warning: passing arg 1 of `G_malloc' as signed due to prototype
write_nat.c:497: warning: `type' might be used uninitialized in this function
write_nat.c:497: warning: `first' might be used uninitialized in this function
write_nat.c:498: warning: `Line' might be used uninitialized in this function
write_nat.c:502: warning: `n_adjacent' might be used uninitialized in this function
gcc -shared -o /usr/src/grass/grass51/dist.i686-pc-linux-gnu/lib/libgrass_vect.5.7.cvs.so -Wl,--export-dynamic -L/usr/src/grass/grass51/dist.i686-pc-linux-gnu/lib    OBJ.i686-pc-linux-gnu/area.o OBJ.i686-pc-linux-gnu/array.o OBJ.i686-pc-linux-gnu/box.o OBJ.i686-pc-linux-gnu/break_lines.o OBJ.i686-pc-linux-gnu/break_polygons.o OBJ.i686-pc-linux-gnu/bridges.o OBJ.i686-pc-linux-gnu/buffer.o OBJ.i686-pc-linux-gnu/build.o OBJ.i686-pc-linux-gnu/build_nat.o OBJ.i686-pc-linux-gnu/build_ogr.o OBJ.i686-pc-linux-gnu/cats.o OBJ.i686-pc-linux-gnu/cindex.o OBJ.i686-pc-linux-gnu/clean_nodes.o OBJ.i686-pc-linux-gnu/close.o OBJ.i686-pc-linux-gnu/close_nat.o OBJ.i686-pc-linux-gnu/close_ogr.o OBJ.i686-pc-linux-gnu/constraint.o OBJ.i686-pc-linux-gnu/dangles.o OBJ.i686-pc-linux-gnu/error.o OBJ.i686-pc-linux-gnu/field.o OBJ.i686-pc-linux-gnu/find.o OBJ.i686-pc-linux-gnu/graph.o OBJ.i686-pc-linux-gnu/header.o OBJ.i686-pc-linux-gnu/hist.o OBJ.i686-pc-linux-gnu/init_head.o OBJ.i686-pc-linux-gnu/intersect.o OBJ.i686-pc-linux-gnu/legal_vname.o OBJ.i686-pc-linux-gnu/level.o OBJ.i686-pc-linux-gnu/level_two.o OBJ.i686-pc-linux-gnu/line.o OBJ.i686-pc-linux-gnu/list.o OBJ.i686-pc-linux-gnu/map.o OBJ.i686-pc-linux-gnu/net.o OBJ.i686-pc-linux-gnu/open.o OBJ.i686-pc-linux-gnu/open_nat.o OBJ.i686-pc-linux-gnu/open_ogr.o OBJ.i686-pc-linux-gnu/overlap.o OBJ.i686-pc-linux-gnu/overlay.o OBJ.i686-pc-linux-gnu/poly.o OBJ.i686-pc-linux-gnu/read.o OBJ.i686-pc-linux-gnu/read_nat.o OBJ.i686-pc-linux-gnu/read_ogr.o OBJ.i686-pc-linux-gnu/remove_areas.o OBJ.i686-pc-linux-gnu/remove_duplicates.o OBJ.i686-pc-linux-gnu/rewind.o OBJ.i686-pc-linux-gnu/rewind_nat.o OBJ.i686-pc-linux-gnu/rewind_ogr.o OBJ.i686-pc-linux-gnu/select.o OBJ.i686-pc-linux-gnu/sindex.o OBJ.i686-pc-linux-gnu/snap.o OBJ.i686-pc-linux-gnu/tin.o OBJ.i686-pc-linux-gnu/type.o OBJ.i686-pc-linux-gnu/window.o OBJ.i686-pc-linux-gnu/write.o OBJ.i686-pc-linux-gnu/write_nat.o -lgrass_gis -lgrass_datetime -lz    -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase   && ln -sf libgrass_vect.5.7.cvs.so /usr/src/grass/grass51/dist.i686-pc-linux-gnu/lib/libgrass_vect.so


How does it look?

Jachym
-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20041129/e67452f4/attachment.bin


More information about the grass-dev mailing list