[lists-vmailmgr@biaix.org: issues compiling on FreeBSD-5.1]
Joan Picanyol
lists-vmailmgr at biaix.org
Thu Nov 13 17:14:06 PST 2003
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 at 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 at 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 at 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 at 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
-------------- next part --------------
An embedded message was scrubbed...
From: Joan Picanyol <lists-vmailmgr at biaix.org>
Subject: issues compiling on FreeBSD-5.1
Date: Tue, 11 Nov 2003 13:31:52 +0100
Size: 1825
Url: http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031114/9feef7fc/attachment.eml
More information about the freebsd-current
mailing list