Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2001 21:17:52 -0700
From:      Jos Backus <josb@cncdsl.com>
To:        freebsd-hackers@freebsd.org
Subject:   Port-related C++ question
Message-ID:  <20010428211752.E6731@lizzy.bugworks.com>

next in thread | raw e-mail | index | archive | help
[Apologies if this is the wrong list for this type of question.]

I am trying to create a port for a commandline-accessible database tool, but I
am running into the following problem (on RELENG_4 as of today):

===>  Building for dbtool-1.3
c++ -DPACKAGE=\"dbtool\" -DVERSION=\"1.3\" -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_LIBPCRE=1 -DHAVE_GETOPT=1 -DHAVE_FDOPEN=1 -DHAVE_FGETC=1 -DHAVE_GETENV=1 -DHAVE_BERKELEY=1  -I. -I.    -I/usr/local/include/db3  -Wall -Wstrict-prototypes -O2 -c cmd.cc
In file included from cmd.cc:22:
dbtool.h:99: declaration of `__sF' as array of references
gmake: *** [cmd.o] Error 1
*** Error code 2

/*
 * The Engine class will do all gdbm related stuff, i.e.
 * insert, search, create, remove and so on.
 * methods defined in engine.cc
 */
class Engine {
 private:
  void init(const Config& config); /* init() will be called from every member once */

#ifdef HAVE_BERKELEY
  Db *db;
#else
  GDBM_FILE db;
#endif

  string pkg;

 public:
  Engine() {;;};
  void insert(const Config& config);
  void update(const Config& config);
  void remove(const Config& config);
  void select(const Config& config);
  void  stdin(const Config& config);  <-=== line 99
  void   dump(const Config& config);
  void regexp(const Config& config);
};

Anyone have any ideas on how to fix this?

Thanks,
-- 
Jos Backus                 _/  _/_/_/        "Modularity is not a hack."
                          _/  _/   _/                -- D. J. Bernstein
                         _/  _/_/_/             
                    _/  _/  _/    _/
josb@cncdsl.com     _/_/   _/_/_/            use Std::Disclaimer;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010428211752.E6731>