[Top][All Lists]

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

RE: More notes on Mac OS X 10.3.6 (Panther)

From: Marshall DeBerry
Subject: RE: More notes on Mac OS X 10.3.6 (Panther)
Date: Tue, 30 Nov 2004 22:32:44 -0500

There's a slight problem with Ben's patch for the Mac.  If HAVE_FSEEKO is
defined, then the define off_t long int  check will not be executed. I had
to move this chunk out of the check for HAVE_FSEEKO for it work properly on
Mac OS X 10.3.6 . I put the off_t check immediately after the HAVE_FSEEKO

Second, I have the X11 "modules" and software developer modules as
distributed by Apple installed on my Powerbook.  To get pspp to link
properly, I had to have the X11 libs searched.  I have this set of
parameters as part of my LDFLAGS environment variable:

export LDFLAGS="-L/sw/lib -L/usr/X11R6/lib -lXt -lXaw -lXext -lX11"

Not sure of the best way for having the configure you've set up check for
the X11 libs  and set up the appropriate library search flags, but this
seems to work ok.

I've now got in the src directory an executable pspp module, which complains
about not having the right output drivers setup when I try to run it in that
directory.  I'm hoping that when I do a make install that that problem will
go away. (pspp --help does dump out lots of help info, though)


-----Original Message-----
From: Ben Pfaff [mailto:address@hidden On Behalf Of Ben Pfaff
Sent: Tuesday, November 30, 2004 11:52 AM
To: Marshall DeBerry
Cc: address@hidden
Subject: Re: More notes on Mac OS X 10.3.6 (Panther)

"Marshall DeBerry" <address@hidden> writes:

> flip.c: In function `flip_file':
> flip.c:423: error: `off_t' undeclared (first use in this function)
> flip.c:423: error: (Each undeclared identifier is reported only once
> flip.c:423: error: for each function it appears in.)
> flip.c:423: error: parse error before "i"

I checked in the following:

Tue Nov 30 08:47:41 2004  Ben Pfaff  <address@hidden>

        * flip.c: (flip_file) If fseeko() is not available, use long int
        for off_t.  Thanks to "Marshall DeBerry" <address@hidden> for
        reporting the problem.

Index: flip.c
RCS file: /cvsroot/pspp/pspp/src/flip.c,v
retrieving revision 1.15
diff -u -p -u -p -r1.15 flip.c
--- flip.c      15 Nov 2004 09:51:22 -0000      1.15
+++ flip.c      30 Nov 2004 16:54:24 -0000
@@ -416,6 +416,10 @@ flip_file (struct flip_pgm *flip)
 #ifndef HAVE_FSEEKO
 #define fseeko fseek
+#ifndef off_t
+#define off_t long int
          if (fseeko (output_file,

"Premature optimization is the root of all evil."
--D. E. Knuth, "Structured Programming with go to Statements"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]