[GRASS5] Re: [GRASSLIST:9066] Compiling Grass on Solaris 9

Hi Irek,
(cc grass5)

the same problem I got recently on a new machine:

On Wed, Nov 23, 2005 at 11:16:52AM +1100, Irek.Porebski@csiro.au wrote:
...

rootksh@theo#pwd
/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/display/d.measure

rootksh@theo# make
gcc -I/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/include
-I/var/tmp/1/gras

...

GISRC=/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/dist.sparc-sun-so
laris2.9
/demolocation/.grassrc61
GISBASE=/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_1
2/dist.sparc-sun-solaris2.9
PATH=/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_1
2/dist.sparc-sun-solaris2.9/bin:$PATH
LD_LIBRARY_PATH="/var/tmp/1/grass-6.1.cvs_
src_snapshot_2005_11_12/dist.sparc-sun-solaris2.9/lib:"
/var/tmp/1/grass-6.1.cvs
_src_snapshot_2005_11_12/dist.sparc-sun-solaris2.9/bin/d.measure
--html-descript
ion | grep -v '</body>\|</html>' > d.measure.tmp.html ; true
ERROR: MAPSET PERMANENT - permission denied

The problem is, that the 'demolocation' in the source code
directory is copied into dist.$ARCH/demolocation/ but, depending
on the settings, sometimes get's the wrong owner.

In the main Makefile, there is a line (line 344):
        @ cp -rpf demolocation ${ARCH_DISTDIR}/

which should be probably changed to:
        -tar cBf - demolocation | (cd ${ARCH_DISTDIR}/ ; tar xBf - ) 2>/dev/null

To try this change, run then in the main source code directory:

make builddemolocation

### after add the $(CURSES) to the Makefile

I don't know where $(CURSES) is needed (it should not be the
d.measure/Makefile).

rootksh@theo# make
gcc -I/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/include
-I/var/tmp/1/gras
s-6.1.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solaris2.9/include/gras
s -I/usr
/sfw/include -g -O2 -Wall -Wconversion -Wno-implicit-int
-I/usr/sfw/include
  -DPACKAGE=\""grassmods"\"
-I/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/
include
-I/var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solari
s2.9/include/grass \
        -o OBJ.sparc-sun-solaris2.9/draw_line.o -c draw_line.c
make: *** No rule to make target `OBJ.sparc-sun-solaris2.9/main.o',
needed by `/
var/tmp/1/grass-6.1.cvs_src_snapshot_2005_11_12/dist.sparc-sun-solaris2.
9/bin/d.
measure'. Stop.

At the moment I don't know why this doesn't work.

####################

It looks like the problem is there but is different than this what was
describe in that mail.
Sorry that I send you whole log but I don't wont miss something.

I hope I don't disturb you too much.

Absolutely not! I would love to see it working on Solaris 2.9
as well.

Maybe a list member can suggest for above problems.

Markus