[GRASS5] Re: [GRASSLIST:9669] compilation (again)

Hi all.

At 10:03, venerdì 30 dicembre 2005, Markus Neteler has probably written:

Ciao Paolo,

[maybe better posted to the devel list]

On Thu, Dec 29, 2005 at 05:47:25PM +0100, Paolo Cavallini wrote:
> Hi all.
> Still problems compiling grass from 6.1cvs:

... "still"? I thought it worked for you recently...

It worked after several trials, but only removing a couple of modules
(r.sim.water r.sim.sediment).

> checking if 64bit Sparc VIS support is requested... no
> checking system version (for dynamic loading)... ./configure: line 13675:
> unexpected EOF while looking for matching `''
> ./configure: line 13805: syntax error: unexpected end of file
> make: *** [config.status] Error 2
>
> Any hint?

Tried again:
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line 13675:
unexpected EOF while looking for matching `''
./configure: line 13805: syntax error: unexpected end of file
make: *** [config.status] Error 2

What does
cvs up configure
say (conflict)?

nothing.

Best
Markus

--
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953

Ciao Paolo, Pavel,

found it! Details below:

On Fri, Dec 30, 2005 at 11:31:41AM +0100, Paolo Cavallini wrote:

At 10:03, venerdì 30 dicembre 2005, Markus Neteler has probably written:
> On Thu, Dec 29, 2005 at 05:47:25PM +0100, Paolo Cavallini wrote:

...

> > checking if 64bit Sparc VIS support is requested... no
> > checking system version (for dynamic loading)... ./configure: line 13675:
> > unexpected EOF while looking for matching `''
> > ./configure: line 13805: syntax error: unexpected end of file
> > make: *** [config.status] Error 2
> >
> > Any hint?

In fact, there is a bug in 'configure' which is happily ignored
on RHEL and Mandriva (also others) but not on Debian:

configure, line 1361:
            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
                system=MP-RAS-`awk '{print }' /etc/.relid'`
            fi
                                   ^- 1 ^- 2 ^- 3

This doesn't look good. My 'vim' does syntax highlighting, so it
was rather easy to find it.

Culprit is in
aclocal.m4: system=MP-RAS-`awk '{print $3}' /etc/.relid'`

Strange, that it existed for years. Also other programs contain it
like that. Maybe it's right? I have commented it in aclocal.m4
and re-generated the configure script. Both is updated in CVS.

This should also fix bug#3918.
https://intevation.de/rt/webrt?serial_num=3918&display=History

Happy compiling (again),

Markus

PS: @Paolo:

On Fri, Dec 30, 2005 at 11:31:41AM +0100, Paolo Cavallini wrote:

It worked after several trials, but only removing a couple of modules
(r.sim.water r.sim.sediment).

After loggin in, I just compiled the entire on your machine without
problems (but I used 'make' instead of the Debian approach to compile).
Enjoy!

Markus: great! Thanks a lot.
Trying again the debian way, I got:
dpkg-shlibdeps: failure: ldd on
`debian/libgrass/usr/lib/grass/lib/libgrass_sim.6.1.cvs.so' gave error exit
status 1
dh_shlibdeps: command returned error code 256
make: *** [binary-arch] Error 1
so it must be something debian-specific. I'll ask the debiangis list.
All the best.
pc

At 15:42, venerdì 30 dicembre 2005, Markus Neteler has probably written:

Ciao Paolo, Pavel,

found it! Details below:

...

PS: @Paolo:

On Fri, Dec 30, 2005 at 11:31:41AM +0100, Paolo Cavallini wrote:
> It worked after several trials, but only removing a couple of modules
> (r.sim.water r.sim.sediment).

After loggin in, I just compiled the entire on your machine without
problems (but I used 'make' instead of the Debian approach to compile).
Enjoy!

--
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953

On Fri, Dec 30, 2005 at 04:12:34PM +0100, Paolo Cavallini wrote:

Markus: great! Thanks a lot.
Trying again the debian way, I got:
dpkg-shlibdeps: failure: ldd on
`debian/libgrass/usr/lib/grass/lib/libgrass_sim.6.1.cvs.so' gave error exit
status 1
dh_shlibdeps: command returned error code 256
make: *** [binary-arch] Error 1
so it must be something debian-specific. I'll ask the debiangis list.

Good idea since it works the "GRASS way" of compiling.
There will be a fancy Debian flag to see what's going on
using dpkg.

In any case you have the compiled version already. :slight_smile:

Markus

All the best.
pc

At 15:42, venerdì 30 dicembre 2005, Markus Neteler has probably written:
> Ciao Paolo, Pavel,
>
> found it! Details below:
>
...
>
> PS: @Paolo:
>
> On Fri, Dec 30, 2005 at 11:31:41AM +0100, Paolo Cavallini wrote:
> > It worked after several trials, but only removing a couple of modules
> > (r.sim.water r.sim.sediment).
>
> After loggin in, I just compiled the entire on your machine without
> problems (but I used 'make' instead of the Debian approach to compile).
> Enjoy!

--
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953

_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5

--
Markus Neteler <neteler itc it> http://mpa.itc.it
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

On 12/30/05, Markus Neteler <neteler@itc.it> wrote:

In fact, there is a bug in 'configure' which is happily ignored
on RHEL and Mandriva (also others) but not on Debian:

configure, line 1361:
            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
                system=MP-RAS-`awk '{print }' /etc/.relid'`
            fi
                                   ^- 1 ^- 2 ^- 3

This doesn't look good. My 'vim' does syntax highlighting, so it
was rather easy to find it.

Culprit is in
aclocal.m4: system=MP-RAS-`awk '{print $3}' /etc/.relid'`

Strange, that it existed for years. Also other programs contain it
like that. Maybe it's right? I have commented it in aclocal.m4
and re-generated the configure script. Both is updated in CVS.

Well, the syntax error comes from an excess apostrophe; try instead of
commenting it to delete that last ', after .relid and before the
backquote.

It seems there would exist a system for autotools called MP-RAS-XXX
where XXX is contained in that system in a file called /etc/.relid

Daniel.

-- Daniel Calvelo Aros

Daniel Calvelo wrote:

On 12/30/05, Markus Neteler <neteler@itc.it> wrote:

In fact, there is a bug in 'configure' which is happily ignored
on RHEL and Mandriva (also others) but not on Debian:

configure, line 1361:
           if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
               system=MP-RAS-`awk '{print }' /etc/.relid'`
           fi
                                  ^- 1 ^- 2 ^- 3

This doesn't look good. My 'vim' does syntax highlighting, so it
was rather easy to find it.

Culprit is in
aclocal.m4: system=MP-RAS-`awk '{print $3}' /etc/.relid'`

Strange, that it existed for years. Also other programs contain it
like that. Maybe it's right? I have commented it in aclocal.m4
and re-generated the configure script. Both is updated in CVS.
   
Well, the syntax error comes from an excess apostrophe; try instead of
commenting it to delete that last ', after .relid and before the
backquote.

It seems there would exist a system for autotools called MP-RAS-XXX
where XXX is contained in that system in a file called /etc/.relid

Thanks Daniel,

fix applied to both 6.1-CVS and 6.0-CVS (for RC2 and 6.0.2 final).

Markus