Coda File System

FC5 coda source compilation

From: Andrzej Wieczorek <andrzej.wieczorek_at_gridwisetech.com>
Date: Thu, 25 May 2006 07:50:08 -0400
I am trying to compile coda-6.0.14 from sources (tar.gz sources not  
src.rpm) on a FC5 machine (gcc-4.1.0) and I get compile errors all the  
time. I have read the thread "FC5 compile error", in the archives  
online, but couldn't get any solution there (maybe I don't understand  
what's the solution) and the thread seems pretty dead now.

The first error is similar to Jerry Amundson's, it looks like this:
g++ -fno-exceptions -fcheck-new -Wall -MD -DHAVE_CONFIG_H -I.  
-I/root/coda/newcoda/coda-6.0.14/include  
-I/root/coda/newcoda/coda-6.0.14 -g -O2 -DVENUS -DTIMING -DVENUSDEBUG  
-DRVM_USELWP   -c -o adv_monitor.o adv_monitor.cc
./comm.h:319: error: extra qualification 'probeslave::' on member 'probeslave'
fso.h:695: error: extra qualification 'fsobj::' on member 'EstimatedFetchCost'

This I can handle by changing the appropriate lines in the source files.

After the change I get this error message:
g++ -fno-exceptions -fcheck-new -Wall -MD -DHAVE_CONFIG_H -I.  
-I/root/coda/newcoda/coda-6.0.14/include  
-I/root/coda/newcoda/coda-6.0.14 -g -O2 -DVENUS -DTIMING -DVENUSDEBUG  
-DRVM_USELWP   -c -o vsg.o vsg.cc
vsg.cc: In member function 'int vsgent::GetMgrp(mgrpent**, uid_t, int)':
vsg.cc:105: error: 'Mgrp_Wait' was not declared in this scope

So I add the lines:
void Mgrp_Wait();
void Mgrp_Signal();
at the end of mgrp.h file.

Afterward I get a similar error:
g++ -fno-exceptions -fcheck-new -Wall -MD -DHAVE_CONFIG_H -I.  
-I/root/coda/newcoda/coda-6.0.14/include  
-I/root/coda/newcoda/coda-6.0.14 -g -O2 -DVENUS -DTIMING -DVENUSDEBUG  
-DRVM_USELWP   -c -o worker.o worker.cc
worker.cc: In function 'void VFSMount()':
worker.cc:411: error: 'WorkerCloseMuxfd' was not declared in this scope

So I add the line:
int WorkerCloseMuxfd();
at the end of worker.h file.

But then I get an error I can't handle :)
../volutil/libvolutil.a(readstuff.o): In function `get':
/root/coda/newcoda/coda-6.0.14/coda-src/volutil/readstuff.cc:125:  
undefined reference to `ReadDump'
../volutil/libvolutil.a(dumpstuff.o): In function `FlushBuf(DumpBuffer_t*)':
/root/coda/newcoda/coda-6.0.14/coda-src/volutil/dumpstuff.cc:130:  
undefined reference to `WriteDump'

Is there any patch or any other solution to this problem? What causes  
the problem? Is it FC5 or gcc-4.1?

Thanks in advance for any help/hints. :)

--
Andrzej Wieczorek
Received on 2006-05-25 09:14:00