[Integrit-devel] Re: stdint.h and inttypes.h (was Re: integrit file verification system)
Brought to you by:
ecashin
|
From: Andreas S. <an...@ph...> - 2000-12-06 17:10:44
|
On Wed, Dec 06, 2000 at 11:36:52AM -0500, Ed L Cashin wrote: > Andreas Schweitzer <an...@ph...> writes: > > ... > > I downloaded it and tried to compile it on FreeBSD. > > I include a small patch to make it compile. > > The first patch part is probably very FreeBSD specific, > > the other two may also work in Linux (I didn't try it > > on Linux). The diff is against an earlier version, but > > also worked agaisnt the latest (15 minutes ago) version > > on sourceforge. > > Regarding ENODATA, I've changed it to EIO, since that works on my > Linux box, and is pretty much just as expressive as ENODATA for the > context of a short read in cdb_seq_start. That's about the best I found in /usr/include/errno.h > getopt.h: There is some platform where I found I needed to #include > <getopt.h> to use getopt -- unistd wasn't enough. However, since I > can't remember, I'm including unistd and not getopt now. Actually, I double checked. getopt is in /usr/local, so adjusting the Makefile to use /usr/local/include will work. Or, ultimately, via ./configure > inttypes.h: This is weird. I looked into it, and now I really don't > understand why a C implementation would provide inttypes.h without > stdint.h. According to the headers themselves, they are both for ISO > C9X conformance, so I don't know why FreeBSD would provide one without > the other. Well, FreeBSD does not have stdint.h. I checked their mailing list archives and it seems they are working on it. I don't know the C standards and even much less the implementation in FreeBSD. > The C99 standard says that stdint is for defining fixed-width and > at-least-width types, and that's what I need in integrit. I'm now > trying to get access to sourceforge's compile farm, where they have a > FreeBSD system, and I'll look into it. I forgot, you need GNU make, which is gmake on FreeBSD. So, when including the getopt from above, the prerequisites for FreeBSD are the GNU make and the getopt package, plus the boehm-gc package. OpenSSL is more or less standard on FreeBSD. The term 'package' means something to FreeBSD users :-) it's like rpm. Andreas P.S.: obviously I subscribed to the mailing list :-) -- Department of Physics & Astronomy and Center for Simulational Physics University of Georgia Phone ++1 (706) 542 5043 Athens, GA 30602-2451 Fax ++1 (706) 542 2492 USA http://dilbert.physast.uga.edu/~andy/ NEW ! WWW page for phoenix : http://phoenix.physast.uga.edu |