[Gretl-devel] gretl on mac os10.5

Allin Cottrell cottrell at wfu.edu
Mon Nov 26 10:27:35 EST 2007


On Mon, 26 Nov 2007, Sven Schreiber wrote:

> Allin Cottrell schrieb:
> > On Mon, 26 Nov 2007, Sven Schreiber wrote:
> > 
> >   
> > > "../plugin/libole2/ms-ole.c:952: error: 'caddr_t' undeclared     
> > 
> > Thanks.  I'm committing a change to CVS that might fix that.
> > This is puzzling because no such error is produced on 10.4.
> >   
> Do you want me to try building from cvs without that patch? 
> Don't know what you did, but if it's just a shot in the dark it 
> may be interesting to see what happens without it; I mean the 
> 1.6.5 tarball is already a bit old, I imagine a lot has changed 
> since then.

Yes, a lot has changed, but the ms-ole files haven't been touched 
for years, until today.  I've committed a change now; I'm pretty 
sure that without that change you'd get the same error.

> Anyway, maybe the compiler version in 10.5 is pickier than the 
> one from 10.4?

It's not a matter of pickiness; I think it must be a matter of 
reorganization of the system header files.  If "caddr_t" is 
undefined any compiler is going to barf.  Apparently the 
definition of caddr_t must have been moved: previously it was 
getting picked up, now it's not.  Today's change was to explicitly

#include <sys/types.h>

in the hope of picking up the typedef.

Allin.



More information about the Gretl-devel mailing list