grass compile errors on SGI

Justin Hickey jhickey at impact1.hpcc.nectec.or.th
Thu Jul 18 08:00:00 EDT 1996



On Jul 17, 11:00am, Robert White wrote:
> Subject: grass compile errors on SGI
> I am trying to build GRASS 4.1 on an SGI R5000 running IRIX 6.2 and
> come up with the following errors:
>
 (text deleted)
>
> ld: ERROR 33: Unresolved text symbol "screen" -- 1st referenced by
> OBJ.sgi/mark.o.
>
>-- End of excerpt from Robert White

I am also trying to build GRASS 4.1 on an SGI but it is an Indigo2 Impact with
an R4400 CPU running IRIX 5.3. However, I did have the same problem and the
solution I used is as follows:

In the file mark.c there is a function called "get_point2" which calls the
"screen" function. The "screen" function is defined after the "get_point2"
function but it is declared inside the "get_point2" function. The problem is
that the declaration for the "screen" function is not recognized by the loader
since it is inside a function. To fix this you simply need to declare the
"screen" function before the "get_point2" function. The code would look
something like the following:

        static
        int screen();

        static
        get_point2 (east, north)
        ...

This fix solved the compilation error but I have not tested the programs yet.

-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================





More information about the grass-dev mailing list