compile error on Fedora Core 9 for coda 6.9.3 and 6.9.4 RC

View: New views
2 Messages — Rating Filter:   Alert me  

compile error on Fedora Core 9 for coda 6.9.3 and 6.9.4 RC

by Shane T. Drinkwater :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello,
I am trying to build a coda test system using fedora core 9. I am using the following supporting code in my coda 6.9.3/6.9.4 rc compiles
Lwp ver lwp-2.4
Rpc2 ver 2.7
Rvm ver 1.15
 
During the make I get the following error
        then mv -f ".deps/getpeereid.Tpo" ".deps/getpeereid.Plo"; else rm -f ".deps/getpeereid.Tpo"; exit 1; fi
gcc -Wall -fno-exceptions -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/coda/lwp/include -I/usr/local/coda/rvm/include -I/usr/local/
coda/rpc2/include -g -O2 -MT getpeereid.lo -MD -MP -MF .deps/getpeereid.Tpo -c getpeereid.c  -fPIC -DPIC -o .libs/getpeereid.o
getpeereid.c: In function 'getpeereid':
getpeereid.c:48: error: storage size of 'cred' isn't known
getpeereid.c:49: error: invalid application of 'sizeof' to incomplete type 'struct ucred'
getpeereid.c:48: warning: unused variable 'cred'
make[3]: *** [getpeereid.lo] Error 1
make[3]: Leaving directory `/usr/src/coda-6.9.3/lib-src/base'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/coda-6.9.3/lib-src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/coda-6.9.3'
I check in coda-6.9.2 to see how cred is defined. The file getpeerid.c does not exsit  in the 6.9.2 version.
What can I do to get the 6.9.3 or 6.9.4rc compile to work.
                          Thank you
                         Shane

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.6.0/1601 - Release Date: 8/8/2008 9:02 AM
 

NOTICE: This email may contain legally privileged information. The inform ation is for the use of only the intended recipient(s) even if addressed inc orrectly. If you are not the intended recipient, please notify the sender th at you have received it in error and then delete it along with any attachmen ts. Thank you.

Re: compile error on Fedora Core 9 for coda 6.9.3 and 6.9.4 RC

by Jan Harkes :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Aug 09, 2008 at 09:05:13AM -0500, Shane T. Drinkwater wrote:
> I check in coda-6.9.2 to see how cred is defined. The file getpeerid.c does not exsit  in the 6.9.2 version.
> What can I do to get the 6.9.3 or 6.9.4rc compile to work.

Fedora 9 has a version on glibc that hides a lot of data structures, and
the structures needed for getpeerid are only defined if you use some
define which introduces some other side-effects that I didn't want. I
think I've disabled compiling getpeerid support in the current version
in git.

here is the related changeset,

http://www.coda.cs.cmu.edu/trac/changeset/ebe03924f683c612f9ac5684b276ef82e634cb15

Jan