src.contrib problems...
Michael Shapiro
shapiro at zorro.cecer.army.mil
Tue Mar 30 23:00:07 EST 1993
In info.grass.user you write:
ABS is a #define that was somehow missing from the code. YOu can
either figure out where it is used in the code and replace it
with abs() for integer, of fabs()( for floats. Or define it
#define ABS(x) ( (x) < 0 : -(x) : (x) )
Although for all but constants these kinds of #define contructs
are fraught with gotchas. Best use the abs() or fabs().
>Hello,
>Problems building SCS stuff in src.contrib:
>#################################################################
>/usr/local/grass4.1/src.contrib/SCS/imp_exp/dig_dlg
> make -f OBJ.sun4/make.rules
>cp /usr/local/grass4.1/src/../src.related/mapgen/proj/SetProj.c SetProj.c
>cp /usr/local/grass4.1/src/../src.related/mapgen/proj/projects.h projects.h
>rm -f OBJ.sun4/SetProj.o
>cc -O -DUSE_SETREUID -DUSE_SETEUID -DUSE_SETPRIORITY -I/usr/local/grass4.1/src/mapdev/Vlib -I/usr/local/grass4.1/src/mapdev/diglib -I/usr/local/grass4.1/src/include -c SetProj.c
>mv SetProj.o OBJ.sun4/SetProj.o
>cc -s -o /usr/local/grass4.1/sun4/etc/bin/contrib/cmd/v.out.dlg.scs OBJ.sun4/v.exp_dlg.o OBJ.sun4/area_one.o OBJ.sun4/get_label.o OBJ.sun4/shuffle_dots.o OBJ.sun4/struct_swap.o OBJ.sun4/write_lines.o OBJ.sun4/write_areas.o OBJ.sun4/write_nodes.o OBJ.sun4/write_head.o OBJ.sun4/write.o OBJ.sun4/SetProj.o /usr/local/grass4.1/src/libes/LIB.sun4/libgis.a /usr/local/grass4.1/src/libes/LIB.sun4/libvect.a /usr/local/grass4.1/src/libes/LIB.sun4/libdig2.a /usr/local/grass4.1/src/../src.related/mapgen/lib/LIB.s
>bproj.a /usr/local/grass4.1/src/../src.related/mapgen/lib/LIB.sun4/libsupp.a /usr/local/grass4.1/src/libes/LIB.sun4/libvect.a /usr/local/grass4.1/src/libes/LIB.sun4/libdig2.a /usr/local/grass4.1/src/libes/LIB.sun4/libgis.a -lm
>ld: Undefined symbol
> _ABS
>Compilation failed
>*** Error code 2
>make: Fatal error: Command failed for target `/usr/local/grass4.1/sun4/etc/bin/contrib/cmd/v.out.dlg.scs'
>Current working directory /usr/local/grass4.1/src.contrib/SCS/imp_exp/dig_dlg
>*** Error code 1
>Thanks again for any help,
>Andrew Hertz
>hertz at geog.psu.edu
More information about the grass-user
mailing list