*BSD News Article 54775


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!goanna.cs.rmit.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!fizban.solace.mh.se!paladin.american.edu!europa.chnt.gtegsc.com!news.msfc.nasa.gov!bcm.tmc.edu!cs.utexas.edu!news.cs.utah.edu!cc.usu.edu!brandon
From: brandon@cc.usu.edu (Brandon Gillespie)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: NDBM broken in FreeBSD?
Message-ID: <1995Nov8.122815.66306@cc.usu.edu>
Date: 8 Nov 95 12:28:15 MDT
Organization: Utah State University
Lines: 29

I develop a software package which uses the standard unix 'ndbm' library. 
When I attempted to compile it in FreeBSD I received an error, which is leading
me to believe that FreeBSD's ndbm includes are broken somewhere.  Although I
could be mistaken, and the problem could be in the software package, I doubt it
simply because the package compiles in Linux, Ultrix, OSF/1, Solaris, and even
other more extreme systems.

The error received is:

In file included from lookup.c:16:
/usr/include/ndbm.h:62: parse error before `DBM'
/usr/include/ndbm.h:62: warning: data definition has no type or storage class
/usr/include/ndbm.h:66: parse error before `*'
/usr/include/ndbm.h:67: parse error before `*'
/usr/include/ndbm.h:68: parse error before `*'
/usr/include/ndbm.h:69: parse error before `*'
/usr/include/ndbm.h:70: parse error before `*'
/usr/include/ndbm.h:71: parse error before `*'
/usr/include/ndbm.h:72: parse error before `*'
/usr/include/ndbm.h:72: warning: data definition has no type or storage class
/usr/include/ndbm.h:73: parse error before `*'
/usr/include/ndbm.h:74: parse error before `*'
lookup.c:46: parse error before `*'
lookup.c:46: warning: data definition has no type or storage class

I can just install gdbm, but I figured I would notify the FreeBSD group...  I
am using FreeBSD 2.0.1...

-Brandon Gillespie-