[lists-vmailmgr_at_biaix.org: issues compiling on FreeBSD-5.1]

From: Joan Picanyol <lists-vmailmgr_at_biaix.org>
Date: Fri, 14 Nov 2003 02:08:24 +0100
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

attached mail follows:


[please Honour Mail-Followup-To:, not subscribed]

vmailmgr-0.96.9 does not compile on FreeBSD-5.1p10:

[joan_at_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_at_peque:~/packages/vmailmgr-0.96.9]0$

Any workarounds?

tks
--
pica
Received on Thu Nov 13 2003 - 16:14:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:29 UTC