Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2003 02:08:24 +0100
From:      Joan Picanyol <lists-vmailmgr@biaix.org>
To:        bruceg@em.ca, patrick@rinke-bochum.de
Cc:        current@freebsd.org
Subject:   [lists-vmailmgr@biaix.org: issues compiling on FreeBSD-5.1]
Message-ID:  <20031114010824.GB4445@grummit.biaix.org>

next in thread | raw e-mail | index | archive | help

--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 <string.h> 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 <sys/types.h> 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 <string.h> 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<bool, hash_node<bool>, 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<unsigned>&) 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 <lists-vmailmgr@biaix.org>
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--



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