From owner-freebsd-hackers Sat Apr 28 21:18:33 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from w250.z064001178.sjc-ca.dsl.cnc.net (w250.z064001178.sjc-ca.dsl.cnc.net [64.1.178.250]) by hub.freebsd.org (Postfix) with SMTP id C9E3C37B423 for ; Sat, 28 Apr 2001 21:18:30 -0700 (PDT) (envelope-from josb@cncdsl.com) Received: (qmail 65267 invoked by uid 1000); 29 Apr 2001 04:18:14 -0000 Date: Sat, 28 Apr 2001 21:17:52 -0700 From: Jos Backus To: freebsd-hackers@freebsd.org Subject: Port-related C++ question Message-ID: <20010428211752.E6731@lizzy.bugworks.com> Reply-To: Jos Backus Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [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