n32 & o32 at NVIZ2.2 compilation
Rado Bonk
bonkr at s-cwis.unomaha.edu
Thu Jan 13 01:12:44 EST 2000
Hello grassusers,
There was a real progress at compilation of grass5.0beta6e on ONYX
server under IRIX6.5. Whole source code was compiled succesfuly by typing:
export CC='gcc -include /usr/include/stdlib.h'
but it was recquired to comment out malloc & realloc and some
other functions at some source code (at least at 15 modules) Following
source code has not been compiled:
/src/mapdev/v.geom /src/sites/s.sv
/src.contrib/GMSL/ogl3d_linux
/src.contrib/CERL/imagery/i.rvi.prediction2 /src.contrib/CERL/raster/r.rvi
/src.contrib/CERL/raster/r.water.fea/src
/src.contrib/PURDUE/d.linegraph
but these are some minor functions and modules which are not used very
often. Compile errors are at attached document for those who can figure
out what is wrong with source code.
But the problem appeared when I tried to compile NVIZ2.2. Compilation
stopped at following error:
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/LIB.mips-sgi-irix6.5/libdatetime.a
-L/usr/lib -L/usr/people/geo/thesis/rado/bin/tcltk/lib -ltk8.1 -ltcl8.1
-lGLU -lGL -lSM -lICE -lX11 -lXmu -lXext -lm -ldl ld: FATAL 12 : Expecting
o32 objects: /usr/people/geo/thesis/rado/bin/tcltk/lib/libtk8.1.so is n32.
*** Error code 1 (bu21)
*** Error code 1 (bu21)
I had to compile tcllib8.1 and tklib8.1 libes because libes on server are
outdated. It seems like I compiled -n32 object but NVIZ2.2 wants -o32
objects. So I tried to compile tcl/tk libes with the same compiling
options but no success. Here is the message from compilator:
cc -o32 -c -O
-I./../generic -I. -n32 -DHAVE_GETCWD=1 -DHAVE_UNISTD_H=1
-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_TZNAME=1 -DHAVE_TIMEZONE_VAR=1
-DHAVE_ST_=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 -DRETSIGTYPE=void
-Dvfork=fork -DHAVE_BSDGETTIMEOFDAY=1 -D__CHAR_UNSIGNED__=1
-DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1
-DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c cc ERROR: cannot mix -n32
abi with -o32 abi
*** Error code 1 (bu21)
Since NVIZ2.2 is the last tool to compile any suggestions are welcome.
-Rado Bonk
---
Rado Bonk
Dept. of Geography-Geology
UNO, NE
-------------- next part --------------
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/geom
make -f OBJ.mips-sgi-irix6.5/make.rules
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/CMD/gmake5.0 -all
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/geom/basic
make -f OBJ.mips-sgi-irix6.5/make.rules
rm -f OBJ.mips-sgi-irix6.5/malloc.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c malloc.c
malloc.c: In function `basic_malloc_debug':
malloc.c:151: `M_DEBUG' undeclared (first use in this function)
malloc.c:151: (Each undeclared identifier is reported only once
malloc.c:151: for each function it appears in.)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src/libes/geom
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/mapdev/v.geom
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/CMD/gmake5.0 ../../libes/geom
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/geom
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/CMD/gmake5.0 -all
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/geom/basic
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
rm -f OBJ.mips-sgi-irix6.5/basic.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c basic.c
basic.c:19: warning: large integer implicitly truncated to unsigned type
mv basic.o OBJ.mips-sgi-irix6.5/basic.o
rm -f OBJ.mips-sgi-irix6.5/malloc.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c malloc.c
malloc.c: In function `basic_malloc_debug':
malloc.c:151: `M_DEBUG' undeclared (first use in this function)
malloc.c:151: (Each undeclared identifier is reported only once
malloc.c:151: for each function it appears in.)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src/mapdev/v.geom
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/sites/s.sv
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
rm -f OBJ.mips-sgi-irix6.5/main.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c main.c
mv main.o OBJ.mips-sgi-irix6.5/main.o
rm -f OBJ.mips-sgi-irix6.5/readsite.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c readsite.c
mv readsite.o OBJ.mips-sgi-irix6.5/readsite.o
rm -f OBJ.mips-sgi-irix6.5/cdpath.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c cdpath.c
mv cdpath.o OBJ.mips-sgi-irix6.5/cdpath.o
rm -f OBJ.mips-sgi-irix6.5/save.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c save.c
mv save.o OBJ.mips-sgi-irix6.5/save.o
rm -f OBJ.mips-sgi-irix6.5/nbins.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c nbins.c
mv nbins.o OBJ.mips-sgi-irix6.5/nbins.o
rm -f OBJ.mips-sgi-irix6.5/angleok.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c angleok.c
mv angleok.o OBJ.mips-sgi-irix6.5/angleok.o
rm -f OBJ.mips-sgi-irix6.5/plthgpt.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c plthgpt.c
mv plthgpt.o OBJ.mips-sgi-irix6.5/plthgpt.o
don't know how to make -lsun (bu42).
GISGEN failure at STEP: src/sites/s.sv
*** Error code 1 (bu21)
##########################################################
src.contrib/GMSL/ogl3d_linux
. " a lot of lines with: Matrix.c:XXXX: dereferencing pointer to incomplete type"
.
.
Matrix.c:6799: dereferencing pointer to incomplete type
Matrix.c:6800: dereferencing pointer to incomplete type
Matrix.c:6801: dereferencing pointer to incomplete type
Matrix.c:6807: dereferencing pointer to incomplete type
Matrix.c: In function `CancelEditACT':
Matrix.c:6868: dereferencing pointer to incomplete type
Matrix.c: In function `CommitEditACT':
Matrix.c:6928: dereferencing pointer to incomplete type
Matrix.c: In function `EventToXY':
Matrix.c:6964: dereferencing pointer to incomplete type
Matrix.c:6964: dereferencing pointer to incomplete type
Matrix.c:6964: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6966: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6967: dereferencing pointer to incomplete type
Matrix.c:6971: dereferencing pointer to incomplete type
Matrix.c:6971: dereferencing pointer to incomplete type
Matrix.c:6971: dereferencing pointer to incomplete type
Matrix.c:6973: dereferencing pointer to incomplete type
Matrix.c:6973: dereferencing pointer to incomplete type
Matrix.c:6973: dereferencing pointer to incomplete type
Matrix.c:6976: dereferencing pointer to incomplete type
Matrix.c: In function `SelectCellACT':
Matrix.c:7022: dereferencing pointer to incomplete type
Matrix.c:7041: dereferencing pointer to incomplete type
Matrix.c:7042: dereferencing pointer to incomplete type
Matrix.c:7047: dereferencing pointer to incomplete type
Matrix.c: In function `TraverseNextACT':
Matrix.c:7082: dereferencing pointer to incomplete type
Matrix.c:7083: dereferencing pointer to incomplete type
Matrix.c:7084: dereferencing pointer to incomplete type
Matrix.c: In function `TraversePrevACT':
Matrix.c:7117: dereferencing pointer to incomplete type
Matrix.c:7118: dereferencing pointer to incomplete type
Matrix.c:7119: dereferencing pointer to incomplete type
Matrix.c: At top level:
Matrix.c:7519: warning: static declaration for `StringsAreEqual' follows non-static
Matrix.c: In function `XbaeMatrixGetRow':
Matrix.c:7861: dereferencing pointer to incomplete type
Matrix.c:7862: dereferencing pointer to incomplete type
Matrix.c:7864: dereferencing pointer to incomplete type
Matrix.c:7865: dereferencing pointer to incomplete type
Matrix.c:7866: warning: passing arg 1 of `XbaeMatrixGetCell' from incompatible pointer type
Matrix.c:7870: dereferencing pointer to incomplete type
Matrix.c:7875: dereferencing pointer to incomplete type
Matrix.c:7875: dereferencing pointer to incomplete type
Matrix.c:7876: dereferencing pointer to incomplete type
Matrix.c:7877: dereferencing pointer to incomplete type
Matrix.c:7882: dereferencing pointer to incomplete type
Matrix.c:7887: warning: passing arg 1 of `XtFree' from incompatible pointer type
Matrix.c: In function `XbaeMatrixSetRow':
Matrix.c:7899: dereferencing pointer to incomplete type
Matrix.c:7900: warning: passing arg 1 of `XbaeMatrixSetCell' from incompatible pointer type
Matrix.c: In function `XbaeMatrixSetColumn':
Matrix.c:7912: dereferencing pointer to incomplete type
Matrix.c:7913: warning: passing arg 1 of `XbaeMatrixSetCell' from incompatible pointer type
*** Error code 1 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src.contrib/GMSL/ogl3d_linux
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/CERL/imagery/i.rvi.prediction2
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
make: file `OBJ.mips-sgi-irix6.5/make.rules' line 141: Syntax error
GISGEN failure at STEP: src.contrib/CERL/imagery/i.rvi.prediction2
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/CERL/raster/r.rvi
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
make: file `OBJ.mips-sgi-irix6.5/make.rules' line 141: Syntax error
GISGEN failure at STEP: src.contrib/CERL/raster/r.rvi
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/CERL/raster/r.water.fea/src
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/CMD/gmake5.0 -all
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/CERL/raster/r.water.fea/src/inter
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
rm -f OBJ.mips-sgi-irix6.5/main.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c main.c
mv main.o OBJ.mips-sgi-irix6.5/main.o
rm -f OBJ.mips-sgi-irix6.5/menu.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c menu.c
mv menu.o OBJ.mips-sgi-irix6.5/menu.o
rm -f OBJ.mips-sgi-irix6.5/choicehand.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c choicehand.c
mv choicehand.o OBJ.mips-sgi-irix6.5/choicehand.o
rm -f OBJ.mips-sgi-irix6.5/shell.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c shell.c
mv shell.o OBJ.mips-sgi-irix6.5/shell.o
don't know how to make -lsun (bu42).
*** Error code 1 (bu21)
GISGEN failure at STEP: src.contrib/CERL/raster/r.water.fea/src
*** Error code 1 (bu21)
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/PURDUE/d.linegraph
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/CMD/gmake5.0 -all
#################################################################
/usr/people/geo/thesis/rado/grass5/grass5.0beta/src.contrib/PURDUE/d.linegraph/cmd
mkdir OBJ.mips-sgi-irix6.5
make -f OBJ.mips-sgi-irix6.5/make.rules
rm -f OBJ.mips-sgi-irix6.5/linegraph.o
gcc -include /usr/include/stdlib.h -g -O2 -I/usr/people/geo/thesis/rado/grass5/grass5.0beta/src/include -c linegraph.c
mv linegraph.o OBJ.mips-sgi-irix6.5/linegraph.o
gcc -include /usr/include/stdlib.h -s -o /usr/people/geo/thesis/rado/bin/grass5x/etc/bin/contrib/cmd/d.linegraph OBJ.mips-sgi-irix6.5/linegraph.o -lm /usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/LIB.mips-sgi-irix6.5/libdisplay.a /usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/LIB.mips-sgi-irix6.5/libraster.a /usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/LIB.mips-sgi-irix6.5/libgis.a -lsun
ld: ERROR 33 : Unresolved text symbol "log" -- 1st referenced by /usr/people/geo/thesis/rado/grass5/grass5.0beta/src/libes/LIB.mips-sgi-irix6.5/libgis.a(put_row.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld: INFO 152: Output file removed because of error.
*** Error code 1 (bu21)
*** Error code 1 (bu21)
GISGEN failure at STEP: src.contrib/PURDUE/d.linegraph
*** Error code 1 (bu21)
More information about the grass-user
mailing list