n32 & o32 at NVIZ2.2 compilation

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

(attachments)

grass_errors.txt (12.8 KB)