Forum OpenACS Development: Cannot install tDOM0.8.0 for aolserver 40r10

Hi,
This is error i'm getting while following the below step
sh CONFIG
I tried by even copying the statements in CONFIG file
but while "make install" an error is thrown
"No rule to make target" . I exported the AOLSERVER path
even then the error continues.

Any help is appreciated

My Os # suse linux 10.1
Gcc version # gcc (GCC) 4.1.0 (SUSE Linux)

Error :

checking how to build libraries... shared
checking if 64bit support is enabled... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ../configure: line 6740: syntax error near unexpected token `('../configure: line 6740: ` ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)`'

-----------------------------------------------------------

Regards
Ashwin Kumar

Collapse
Posted by Gustaf Neumann on
Ashwin,

There is a misplaced single quote (hard to spot) in the .m4 files that causes a problem with some shells (e.g. newer bash in linux distros) at different places. A really ugly bug. As a TEA compliant packacge, tdom uses the tcl.m4-file as the source for configure, so the bug manifests itself there although this is not a tdom bug). The following patch should solve the problem:

-gustaf

*** configure.orig      Tue Sep  5 08:39:52 2006
--- configure   Tue Sep  5 08:39:18 2006
***************
*** 4285,4291 ****
            # results, and the version is kept in special file).

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
!               system=MP-RAS-`awk '{print }' /etc/.relid'`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`
--- 4285,4291 ----
            # results, and the version is kept in special file).

            if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
!               system=MP-RAS-`awk '{print }' /etc/.relid`
            fi
            if test "`uname -s`" = "AIX" ; then
                system=AIX-`uname -v`.`uname -r`

Collapse
Posted by Darren Nye on
Gustaf,

Thank you for helping us out.

I was also having this problem, and noticed that tcl.m4 was located in four places on my SuSE 10.1 server (running on athlon 64):

/usr/local/src/aolserver40r10/tDOM-0.8.0/extensions/example/tcl.m4
/usr/local/src/aolserver40r10/tDOM-0.8.0/tclconfig/tcl.m4
/usr/local/src/postgresql-7.4.14/config/tcl.m4

The one in the example folder, had two areas where there was a misplaced quote. The one in tclconfig only had one area. The tcl.m4 in config, didn't have any matches. Here is what I changed - but note that in the original files, the |print ] was actually |print $3]

# ORIGINAL
# system=MP-RAS-`awk '{print $3}' /etc/.relid'`

# NEW
system=MP-RAS-`awk '{print $3}' /etc/.relid`

However even after making the changes, I am still getting the same error as originally noted, and pasted below.

checking system version (for dynamic loading)... ../configure: line 6740: syntax error near unexpected token `('
../configure: line 6740: ` ac_cv_c_aolserver=`(cd ${with_aolserver}; pwd)`'

Another point of interest -- even if I add an extra line to the code, the error is always at line 6740. I'm not sure if this means anything?

I'm not sure if there is maybe another tcl.m4 somewhere, which contains the actual file I should be editing? But searching didn't turn another one up. Or am I supposed to repeat other steps rather than:

../configure --enable-threads --disable-tdomalloc --prefix=/usr/local/aolserver40r10 --with-tcl=/usr/local/lib

Any help would be greatly appreciated!

Collapse
Posted by Gustaf Neumann on
did you run autoconf, after changing the .m4 files?
Collapse
Posted by Darren Nye on
Hi Gustaf,

No I did not run autoconf - can you please explain how to do that?

Thank you for responding!

Collapse
Posted by Gustaf Neumann on
go to the directory, where the "configure" script is (e.g. tDOM-0.8.0), and type there autoconf. The procede with running configure .....
Collapse
Posted by Darren Nye on
Gustaf,

I went to both the tdom and the tdom/unix directory, and tried typing/running "autoconf" - but I receive the response:

-bash: autoconf: command not found

Should I just rerun ../configure (now if I can only remember
all the options I originally specified!)

Thank you for your help!

-- Darren

Collapse
Posted by Gustaf Neumann on
the error message indicates, that you have no autoconf on your system. what, suse has not autoconf?

then you have make the change in the configure file as described earlier in the thread and run configure again.

now if I can only remember all the options I originally specified!

you will find in tDOM-0.8.0/unix/config.log in the seventh line the parameters used in the last run.

Collapse
Posted by Darren Nye on
Gustaf,

Thank you for your continued help.

Apparently autoconf is not installed by default. I installed it.

Though AutoConf still didn't seem to work. I kinda started back at the beginning of the configure steps for tDOM and somehow I got past the make install.... so I'm onto the next step.

Thank you again!

Collapse
Posted by Jade Rubick on
Index: configure
===================================================================
@@ -4285,7 +4285,7 @@
# results, and the version is kept in special file).

if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
- system=MP-RAS-`awk '{print }' /etc/.relid'`
+ system=MP-RAS-`awk '{print }' /etc/.relid`
fi
if test "`uname -s`" = "AIX" ; then
system=AIX-`uname -v`.`uname -r`

Thanks, Gustaf!