[GRASS-dev] ./configure error

While installing on a high-end machine [1], at ./configure I get:

checking system version (for dynamic loading)... ./configure: line 12467:
syntax error: unexpected end of file

The file seems ok. Any suggestion?
Thanks.
pc

[1] cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 3
cpu MHz : 3200.816
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl cid cx16 xtpr
bogomips : 6409.38

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 3
cpu MHz : 3200.816
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl cid cx16 xtpr
bogomips : 6400.75

processor : 2
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 3
cpu MHz : 3200.816
cache size : 2048 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl cid cx16 xtpr
bogomips : 6400.86

processor : 3
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Xeon(TM) CPU 3.20GHz
stepping : 3
cpu MHz : 3200.816
cache size : 2048 KB
physical id : 3
siblings : 2
core id : 0
cpu cores : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni
monitor ds_cpl cid cx16 xtpr
bogomips : 6400.90
--
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953

Paolo Cavallini wrote:

While installing on a high-end machine [1], at ./configure I get:

checking system version (for dynamic loading)... ./configure: line 12467:
syntax error: unexpected end of file

The file seems ok. Any suggestion?

You could change the first row of 'configure'
from
#! /bin/sh
to
#! /bin/sh -x

then launch again and see more details.

Markus

Following:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
I ran:

/usr/src/grass# autoconf
configure.in:366: warning: AC_CANONICAL_HOST invoked multiple times
autoconf/specific.m4:362: AC_CYGWIN is expanded from...
configure.in:366: the top level

./configure now stops at:

checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line 8097:
syntax error near unexpected token `('
./configure: line 8097: ` case `(uname -sr) 2>/dev/null` in'

running it with -x stops at:

...
+ echo 'LTLIBOBJS='\'''\'''
+ echo
+ test -n ''
+ test -s confdefs.h
+ cat
+ echo
+ sed '/^$/d' confdefs.h
+ sort
+ echo
+ test 0 '!=' 0
+ echo 'configure: exit 258'
+ rm -f core '*.core'
+ rm -rf 'conftest*' confdefs.h 'conf22817*'
+ exit 258

Dos this help understanding the problem?

At 16:11, lunedì 15 maggio 2006, Markus Neteler has probably written:

Paolo Cavallini wrote:
>While installing on a high-end machine [1], at ./configure I get:
>===
>checking system version (for dynamic loading)... ./configure: line 12467:
>syntax error: unexpected end of file
>===
>The file seems ok. Any suggestion?

You could change the first row of 'configure'
from
#! /bin/sh
to
#! /bin/sh -x

then launch again and see more details.

Markus

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

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

On Mon, May 15, 2006 at 06:30:31PM +0200, Paolo Cavallini wrote:

Following:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
I ran:

/usr/src/grass# autoconf
configure.in:366: warning: AC_CANONICAL_HOST invoked multiple times
autoconf/specific.m4:362: AC_CYGWIN is expanded from...
configure.in:366: the top level

NO good!

You have to use the old autoconf (autoconf-2.13) IF you want to use it.
But better don't use it and use the file from CVS instead.

./configure now stops at:

checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: line 8097:
syntax error near unexpected token `('
./configure: line 8097: ` case `(uname -sr) 2>/dev/null` in'

running it with -x stops at:

...
+ echo 'LTLIBOBJS='\'''\'''
+ echo
+ test -n ''
+ test -s confdefs.h
+ cat
+ echo
+ sed '/^$/d' confdefs.h
+ sort
+ echo
+ test 0 '!=' 0
+ echo 'configure: exit 258'
+ rm -f core '*.core'
+ rm -rf 'conftest*' confdefs.h 'conf22817*'
+ exit 258

Dos this help understanding the problem?

Not really - I don't see the error message which you posted
earlier. The idea was to not run autoconf* but to run -x
on the original file in CVS (which I just used again, it is
ok).

ciao

Markus

At 16:11, lunedì 15 maggio 2006, Markus Neteler has probably written:
> Paolo Cavallini wrote:
> >While installing on a high-end machine [1], at ./configure I get:
> >===
> >checking system version (for dynamic loading)... ./configure: line 12467:
> >syntax error: unexpected end of file
> >===
> >The file seems ok. Any suggestion?
>
> You could change the first row of 'configure'
> from
> #! /bin/sh
> to
> #! /bin/sh -x
>
> then launch again and see more details.
>
> Markus
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev

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

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

--
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

OK, so I ran ./configure (with -x, without autoconf) again and I got:

+ echo ranlib
ranlib
+ echo -n 'checking how to run the C preprocessor... '
checking how to run the C preprocessor... + echo 'configure:1758: checking how
to run the C preprocessor'
+ test -n ''
+ test -z ''
+ CPP='gcc -E'
+ cat
+ ac_try='$CPP $CPPFLAGS conftest.c >/dev/null 2>conftest.out'
+ eval echo configure:1777: '"$CPP' '$CPPFLAGS'
conftest.c '>/dev/null' '2>conftest.out"'
++ echo configure:1777: 'gcc -E conftest.c >/dev/null 2>conftest.out'
++ grep -v '^ *+' conftest.out
++ grep -v '^conftest.c$'
+ ac_err=
+ test -z ''
+ :
+ rm -f conftest.c conftest.out
+ ac_cv_prog_CPP='gcc -E'
+ CPP='gcc -E'
+ echo 'gcc -E'
gcc -E
+ echo -n 'checking if 64bit support is requested... '
checking if 64bit support is requested... + echo 'configure:1839: checking if
64bit support is requested'
+ test '' = set
+ enableval=no
+ test no = yes
+ do64bit=no
+ echo no
no
+ echo -n 'checking if 64bit Sparc VIS support is requested... '
checking if 64bit Sparc VIS support is requested... + echo 'configure:1859:
checking if 64bit Sparc VIS support is requested'
+ test '' = set
+ enableval=no
+ test no = yes
+ do64bitVIS=no
+ echo no
no
+ echo -n 'checking system version (for dynamic loading)... '
checking system version (for dynamic loading)... + echo 'configure:1883:
checking system version (for dynamic loading)'
./configure: line 12467: syntax error: unexpected end of file

At 18:38, lunedì 15 maggio 2006, Markus Neteler has probably written:
...

> Dos this help understanding the problem?

Not really - I don't see the error message which you posted
earlier. The idea was to not run autoconf* but to run -x
on the original file in CVS (which I just used again, it is
ok).

ciao

Markus

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

Found it:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
just remove an excess apostrophe from:
            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
                system=MP-RAS-`awk '{print }' /etc/.relid'`
                                                                             ^
Please update the cvs.
All the best.
pc

At 19:00, lunedì 15 maggio 2006, Paolo Cavallini has probably written:

OK, so I ran ./configure (with -x, without autoconf) again and I got:

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

I got this errors during make:

Compilation error in module: src/imagery/i.cca (ignored)
Compilation error in module: src/raster/r.grow2 (ignored)
Compilation error in module: src/sites/s.in.ascii (ignored)
Compilation error in module: src.contrib/SDTS (ignored)
Compilation error in module: src.garden/grass.postgresql (ignored)
Compilation error in module: src.contrib/GMSL/NVIZ2.2 (ignored)
Compilation error in module: src.contrib/DUKE/r.terraflow (ignored)

Is this normal? What to do?
pc
At 06:36, martedì 16 maggio 2006, Paolo Cavallini has probably written:

Found it:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
just remove an excess apostrophe from:
            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
                system=MP-RAS-`awk '{print }' /etc/.relid'`
                                                                           
^ Please update the cvs.
All the best.
pc

At 19:00, lunedì 15 maggio 2006, Paolo Cavallini has probably written:
> OK, so I ran ./configure (with -x, without autoconf) again and I got:

...

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

Paolo,

I guess that this is another Debian related issue somewhere in the 64bit
test section
(I also have 64bit here, but RHEL4). We had the same some time ago:

2006-01-02 17:40 markus
        * aclocal.m4 (1.16.2.3): re-activated MP-RAS test with bugfix
          (merge from HEAD)

2006-01-02 17:35 markus
        * aclocal.m4 (1.24): re-activated MP-RAS test with bugfix

2005-12-30 15:46 markus
        * aclocal.m4 (1.16.2.2): commented MP-RAS test due to syntax error;
          caused Debian to fail

2005-12-30 15:17 markus
        * aclocal.m4 (1.23): commented MP-RAS test due to syntax error;
          caused Debian to fail

I think that Paul discovered the syntax error last time.
You could open 'configure' in a text editor with syntax highlighting and
search
for the offending line, maybe between lines 1100-2000 or so. The
offending line
from last time was 1364 (system=MP-RAS...).

Markus

Paolo Cavallini wrote:

OK, so I ran ./configure (with -x, without autoconf) again and I got:

+ echo ranlib
ranlib
+ echo -n 'checking how to run the C preprocessor... '
checking how to run the C preprocessor... + echo 'configure:1758: checking how
to run the C preprocessor'
+ test -n ''
+ test -z ''
+ CPP='gcc -E'
+ cat
+ ac_try='$CPP $CPPFLAGS conftest.c >/dev/null 2>conftest.out'
+ eval echo configure:1777: '"$CPP' '$CPPFLAGS'
conftest.c '>/dev/null' '2>conftest.out"'
++ echo configure:1777: 'gcc -E conftest.c >/dev/null 2>conftest.out'
++ grep -v '^ *+' conftest.out
++ grep -v '^conftest.c$'
+ ac_err=
+ test -z ''
+ :
+ rm -f conftest.c conftest.out
+ ac_cv_prog_CPP='gcc -E'
+ CPP='gcc -E'
+ echo 'gcc -E'
gcc -E
+ echo -n 'checking if 64bit support is requested... '
checking if 64bit support is requested... + echo 'configure:1839: checking if
64bit support is requested'
+ test '' = set
+ enableval=no
+ test no = yes
+ do64bit=no
+ echo no
no
+ echo -n 'checking if 64bit Sparc VIS support is requested... '
checking if 64bit Sparc VIS support is requested... + echo 'configure:1859:
checking if 64bit Sparc VIS support is requested'
+ test '' = set
+ enableval=no
+ test no = yes
+ do64bitVIS=no
+ echo no
no
+ echo -n 'checking system version (for dynamic loading)... '
checking system version (for dynamic loading)... + echo 'configure:1883:
checking system version (for dynamic loading)'
./configure: line 12467: syntax error: unexpected end of file

At 18:38, lunedì 15 maggio 2006, Markus Neteler has probably written:
...

Dos this help understanding the problem?
     

Not really - I don't see the error message which you posted
earlier. The idea was to not run autoconf* but to run -x
on the original file in CVS (which I just used again, it is
ok).

ciao

Markus
   

Paolo Cavallini wrote:

Found it:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
just remove an excess apostrophe from:
           if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
               system=MP-RAS-`awk '{print }' /etc/.relid'`
                                                                            ^
Please update the cvs.

The CVS *is* updated (for some weeks now) (also GRASS 6.0-CVS).
Apparently your local copy is outdated. If you read at bottom of
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
you see that I fixed it and closed the report.

Markus

Paolo Cavallini wrote:

I got this errors during make:

Compilation error in module: src/imagery/i.cca (ignored)
Compilation error in module: src/raster/r.grow2 (ignored)
Compilation error in module: src/sites/s.in.ascii (ignored)
Compilation error in module: src.contrib/SDTS (ignored)
Compilation error in module: src.garden/grass.postgresql (ignored)
Compilation error in module: src.contrib/GMSL/NVIZ2.2 (ignored)
Compilation error in module: src.contrib/DUKE/r.terraflow (ignored)

Is this normal? What to do?

Question: You are compiling GRASS *5*, is that intended (maybe I missed
that in the
original mail)?

If yes: enter into these directories and run the compile script (gmake53
or gmake55, don't
remember). Then post the error messages.

Markus

Markus Neteler wrote:

Paolo Cavallini wrote:

Found it:
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
just remove an excess apostrophe from:
          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
              system=MP-RAS-`awk '{print }' /etc/.relid'`
                                                                           ^
Please update the cvs.

The CVS *is* updated (for some weeks now) (also GRASS 6.0-CVS).
Apparently your local copy is outdated. If you read at bottom of
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
you see that I fixed it and closed the report.

Sorry for being dense, I didn't understand that you work with GRASS 5.
I have fixed it now also in GRASS-5-CVS.

Markus

sorry - my fault.
pc
At 10:27, martedì 16 maggio 2006, Markus Neteler has probably written:

Sorry for being dense, I didn't understand that you work with GRASS 5.
I have fixed it now also in GRASS-5-CVS.

Markus

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

On Tue, 16 May 2006, Markus Neteler wrote:

http://www.intevation.de/rt/webrt?serial_num=3918&display=History
just remove an excess apostrophe from:
          if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
              system=MP-RAS-`awk '{print }' /etc/.relid'`
                                                                           ^
Please update the cvs.

The CVS *is* updated (for some weeks now) (also GRASS 6.0-CVS).
Apparently your local copy is outdated. If you read at bottom of
http://www.intevation.de/rt/webrt?serial_num=3918&display=History
you see that I fixed it and closed the report.

Sorry for being dense, I didn't understand that you work with GRASS 5.
I have fixed it now also in GRASS-5-CVS.

And now I have also updated 5.4 release branch!

Paul