Date: Mon, 22 Apr 1996 09:35:39 -0700 (PDT) From: Michael Dillon <michael@memra.com> To: freebsd-ports@freebsd.org Subject: Re: Berkeley DB 1.8.5 Message-ID: <Pine.BSI.3.93.960422093312.26275B-100000@sidhe.memra.com> In-Reply-To: <199604220934.LAA07447@nixpbe.pdb.sni.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 22 Apr 1996, Greg Lehey wrote: > > Has anyone ported this to 2.1R? I unpack the source code from > > ftp.cs.berkeley.edu, go into the PORT/bsd.4.4 and type "make". > > It dies quickly with a bunch of errors like... > > > > cc -c -D__DBINTERFACE_PRIVATE -O -I. -Iinclude -I../../hash > > ../../hash/hash.c > > In file included from ../../hash/hash.c:48: > > /usr/include/stdlib.h:80: parse error before `__dead2' > > /usr/include/stdlib.h:80: warning: data definition has no type or storage > > class > > (etc) > This has nothing to do with the library itself. For some reason, the > compiler is getting confused by the definitions in the library header > files. Try looking at the preprocessor output: > > cc -c -D__DBINTERFACE_PRIVATE -O -I. -Iinclude -I../../hash -C -E -dD >junk.c > > junk.c will contain all the header files, and will have the #defines > substituted. Search for the string '@(#)stdlib.h', and then further > occurrences of the name 'stdlib.h'. The lines starting with # specify > line numbers within the source files. I'd guess that you'll find > something obvious about the definitions at line 80 and on. Thanks, I'll try this. In the meantime.... > > Actually, the linux PORT seems to compile better. I get the following > > errors but I think I can deal with them.... > This one should be pretty obvious: the Linux version includes > definitions in include/db.h which have already been made in the system > header files. Remove them, or, better, #ifdef them out (#ifdef Linux, > or whatever Linux uses to recognize its environment). I did this and it compiles clean. I haven't run the tests yet though. Michael Dillon Voice: +1-604-546-8022 Memra Software Inc. Fax: +1-604-546-3049 http://www.memra.com E-mail: michael@memra.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.93.960422093312.26275B-100000>