Coda File System

Re: Compiling coda-5.3.9 on Solaris 7 with gcc 2.95.2

From: Roland Mainz <Roland.Mainz_at_informatik.med.uni-giessen.de>
Date: Wed, 25 Oct 2000 17:38:07 +0200


Shaun McCullagh wrote:

> I get this error when compiling coda-5.3.9 on solaris 7
>
> > gcc -fno-exceptions -g -O2 -MD -DHAVE_CONFIG_H -I/var/tmp/coda/coda-5.3.9 -I. -I/var/tmp/coda/coda-5.3.9/include -c pioctl.c
> > In file included from pioctl.h:37,
> > from pioctl.c:33:
> > /var/tmp/coda/coda-5.3.9/include/coda.h:132: conflicting types for `int8_t'
> > /usr/include/sys/int_types.h:62: previous declaration of `int8_t'
> > /var/tmp/coda/coda-5.3.9/include/coda.h:134: warning: redefinition of `int16_t'
> > /usr/include/sys/int_types.h:68: warning: `int16_t' previously declared here
> > /var/tmp/coda/coda-5.3.9/include/coda.h:136: warning: redefinition of `int32_t'
> > /usr/include/sys/int_types.h:69: warning: `int32_t' previously declared here
>
> Is there a fix for this?

  1. Try to set -D__sun (gcc seems to use "sun" (bad idea) instead of "__sun" (better)). OR
  2. Try this with Sun Workhop 6 (=Sun Forte, see http://www.sun.com/forte/cplusplus/buy.html - you can choose "try" and get a 30day evalution license)

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) Roland.Mainz_at_informatik.med.uni-giessen.de
  \__\/\/__/  gisburn_at_informatik.med.uni-giessen.de
  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 641 99-13193 FAX +49 641 99-41359
Received on 2000-10-25 11:38:51