From owner-freebsd-current@FreeBSD.ORG Thu Nov 13 17:14:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FC1C16A4CE for ; Thu, 13 Nov 2003 17:14:06 -0800 (PST) Received: from grummit.biaix.org (86.Red-213-97-212.pooles.rima-tde.net [213.97.212.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 4ECA243FE3 for ; Thu, 13 Nov 2003 17:14:04 -0800 (PST) (envelope-from joan@grummit.biaix.org) Received: (qmail 9084 invoked by uid 1000); 14 Nov 2003 01:08:24 -0000 Date: Fri, 14 Nov 2003 02:08:24 +0100 From: Joan Picanyol To: bruceg@em.ca, patrick@rinke-bochum.de Message-ID: <20031114010824.GB4445@grummit.biaix.org> Mail-Followup-To: lists-vmailmgr@biaix.org, current@freebsd.org, bruceg@em.ca, patrick@rinke-bochum.de, vmailmgr@lists.em.ca Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: current@freebsd.org Subject: [lists-vmailmgr@biaix.org: issues compiling on FreeBSD-5.1] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2003 01:14:06 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I can't compile vmailmgr on FreeBSD 5.1-RELEASE-p10, find the initial details in the attached message (which can't make it to vmailmgr@lists.em.ca). What follows is copy'n'pasted compiler output of my attempts at 'fixing' the issue. However, the error messages don't give me more hints, and I have no further clue (why shouldn't configure find strlen or uid_t?, why shouldn't gcc know about constructors?) I've tried adding #include to config.h, and then it fails at: g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -W -c datum.cc In file included from ../fdbuf/fdbuf.h:78, from datum.h:4, from datum.cc:17: ../fdbuf/fdobuf.h:52: `uid_t' was not declared in this scope ../fdbuf/fdobuf.h:52: `gid_t' was not declared in this scope ../fdbuf/fdobuf.h:52: invalid data member initialization ../fdbuf/fdobuf.h:52: (use `=' to initialize static data members) gmake[3]: *** [datum.o] Error 1 gmake[3]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib/cdb++' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9' gmake: *** [all-recursive-am] Error 2 [joan@peque:~/packages/vmailmgr-0.96.9]0$ If I then add #include to config.h I get: gmake[3]: Entering directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib/mystring' g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -W -c append.cc append.cc: In member function `void mystring::append(const char*)': append.cc:17: `strlen' undeclared (first use this function) append.cc:17: (Each undeclared identifier is reported only once for each function it appears in.) gmake[3]: *** [append.o] Error 1 gmake[3]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib/mystring' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9' gmake: *** [all-recursive-am] Error 2 [joan@peque:~/packages/vmailmgr-0.96.9]0$ Adding #include to lib/mystring/append.cc gets me to: gmake[2]: Entering directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/authenticate' gcc -g -O2 -fno-rtti -fno-exceptions -Wall -W -o authvmailmgr authvmailmgr.o authvlib.o ../lib/libvmailmgr.a -L../lib/courier-authlib -lauthmod -lcrypt authvlib.o: In function `set_user(pwentry const*)': /home/joan/packages/vmailmgr-0.96.9/authenticate/authvlib.cc:63: undefined reference to `operator new(unsigned)' authvlib.o: In function `check': /home/joan/packages/vmailmgr-0.96.9/authenticate/authvlib.cc:81: undefined reference to `operator new(unsigned)' /home/joan/packages/vmailmgr-0.96.9/authenticate/authvlib.cc:93: undefined reference to `operator new(unsigned)' [about 50 more lines of undefined linking references] ../lib/libvmailmgr.a(list_table.o): In function `hash_table, crc_hash>::realloc(unsigned)': ../misc/hash_table.h:91: undefined reference to `operator new[](unsigned)' ../lib/libvmailmgr.a(cdb_get.o): In function `cdb_reader::get(mystring const&)': ../mystring/mystring.h:111: undefined reference to `operator new(unsigned)' ../lib/libvmailmgr.a(read_uns.o): In function `configuration::read_uns(mystring const&, unsigned, config_cache&) const': /home/joan/packages/vmailmgr-0.96.9/lib/config/read_uns.cc:42: undefined reference to `operator new(unsigned)' gmake[2]: *** [authvmailmgr] Error 1 gmake[2]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/authenticate' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9' gmake: *** [all-recursive-am] Error 2 [joan@peque:~/packages/vmailmgr-0.96.9]0$ And here I have to give up. Obviously configure it's not doing it's job, but I have no idea how to solve this. Any workarounds? tks -- pica --k+w/mQv8wyuph6w0 Content-Type: message/rfc822 Content-Disposition: inline Date: Tue, 11 Nov 2003 13:31:52 +0100 From: Joan Picanyol To: vmailmgr@lists.em.ca Subject: issues compiling on FreeBSD-5.1 Message-ID: <20031111123152.GA49685@grummit.biaix.org> Mail-Followup-To: lists-vmailmgr@biaix.org, vmailmgr@lists.em.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i [please Honour Mail-Followup-To:, not subscribed] vmailmgr-0.96.9 does not compile on FreeBSD-5.1p10: [joan@peque:~/packages]0$rm -rf vmailmgr-0.96.9; \ tar xzf vmailmgr-0.96.9.tar.gz ; cd vmailmgr-0.96.9; \ ./configure --prefix=/package/host/peque.upc.es/vamilmgr-0 .96.9; gmake creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c [...] creating config.h gmake all-recursive [...] Making all in misc gmake[3]: Entering directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib/misc' c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -W -c exec.cc exec.cc: In function `int presetenv(const char*, const mystring&)': exec.cc:29: `strlen' undeclared (first use this function) exec.cc:29: (Each undeclared identifier is reported only once for each function it appears in.) exec.cc:31: `strcpy' undeclared (first use this function) gmake[3]: *** [exec.o] Error 1 gmake[3]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib/misc' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9/lib' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/fs/home/mount/home/joan/packages/vmailmgr-0.96.9' gmake: *** [all-recursive-am] Error 2 [joan@peque:~/packages/vmailmgr-0.96.9]0$ Any workarounds? tks -- pica --k+w/mQv8wyuph6w0--