[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solution to a problem installing mash...



Well, I had my own little problems installing mash on my linux machine
this past weekend. Let me give you a brief outline:

1) 2 weeks ago I installed Redhat 6.2Beta on my machine and then tried to
install mash. It worked fine, no problems at all (I followed Chema's
instructions). There were a few small changes, but nothing major.

2) due to other reasons, I decided last week to reformat and install
MandrakeLinux 7.0 (a customized version of Redhat Linux, supposed to be
faster). So I did that.

3) Then I start to do the same thing I did when I compiled it all under
redhat 6.2beta. Everything seemed to be going fine until I tried to
configure the mash-1 tree.

4) First symptom of problems... configure couldn't find the tclcl
directory. So I needed to add the --with-tclcl=... line in. That fixed it.
For future purposes, make sure that the directory name is "tclcl" not
"tclcl1.0" or whatever. Then it will not have that problem.

5) alright, small errors thus far, now a weird one. When I run make, I get
my first error:

mplug/otcl-mplug.cc: In method `void MPlugClient_Class::otcl_mappings()': 
mplug/otcl-mplug.cc:8: assuming & on `MPlugClient::dispatch'
mplug/otcl-mplug.cc:9: assuming & on overloaded member function
make: *** [mplug/otcl-mplug.o] Error 1 

try to figure that one out... it goes back to otcl and a bunch of macros.
It's a real mess. But look all you want, it won't fix the problem.

6) smart guy I am, I just say "I don't need MPlug, I'll just comment that
out of the makefile." So I do that. Then I get other files with errors
such as not knowing the type "register" and also more problems of the
nature "assuming & on..." in files such as codec/jpeg/jpeg.cc (can't
comment that file out of the makefile). Anyways, so I decided that this is
not the solution. Hey, I got a seemless compile with the same code under
redhat, it must be something else.

7) Who would have guessed it, this version of Linux is supposed to be the
newest and the fastest, so of course it comes with the newest version of
gcc (gcc-2.95.2). Too bad that this compiler doesn't compile mash... yes,
it took me forever till I said "who knows, maybe it is the compiler." So I
just logged into another machine that I know compiles mash (elmer) and
then looked at the compiler there and saw that it was egcs-1.1.2 (which
uses gcc-2.91.66). I downloaded that older compiler and installed it and
voila, it compiles without a glitch...

So, mark another software package, compiler cannot be gcc 2.95.2. How do
you know if this is your error: works fine until you make mash, and then
it gives errors like "assuming & ...".

That's it for now...

Tim