Error al compilar courier-imap en Aix 5.2

jopeme
16 de Abril del 2004
Hola a todos.
Estoy intentando compilar este soft con gcc 3.3.2 o con gcc 2.95.
El proceso configure va bien, pero al hacer gmake obtengo estos errores.
source='deliverquota.c' object='deliverquota.o' libtool=no
depfile='.deps/deliverquota.Po' tmpdepfile='.deps/deliverquota.TPo'
depmode=gcc /bin/sh ./../depcomp
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -Wall -I./.. -I.. -c `test -f 'deliverquota.c' || echo './'`deliverquota.c
gcc -g -O2 -Wall -I./.. -I.. -o deliverquota deliverquota.o libmaildir.a ../rfc822/librfc822.a ../numlib/libnumlib.a
libmaildir.a(maildirkeywords4.o): In function `mail::keywords::Hashtable::~Hashtable(void)':
maildirkeywords4.cpp:34: undefined reference to `cerr'
maildirkeywords4.cpp(.pr+0x12c): undefined reference to `ostream::operator<<(char const *)'
maildirkeywords4.cpp(.pr+0x136): undefined reference to `endl(ostream &)'
libmaildir.a(maildirkeywords4.o): In function `mail::keywords::Message::getFlags(set<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, allocator<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > > > &) const':
maildirkeywords4.cpp:90: undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
maildirkeywords4.cpp:90: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:90: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o): In function `mail::keywords::Message::addFlag(mail::keywords::Hashtable &, basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >)':
maildirkeywords4.cpp:150: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:150: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:150: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o):maildirkeywords4.cpp:150: more undefined references to `__default_alloc_template<false, 0>::_S_free_list' follow
libmaildir.a(maildirkeywords4.o): In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::replace(unsigned long, unsigned long, char const *, unsigned long)':
maildirkeywords4.cpp:156: undefined reference to `__out_of_range(char const *)'
maildirkeywords4.cpp:159: undefined reference to `__length_error(char const *)'
maildirkeywords4.cpp:177: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:177: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o): In function `_Rb_tree<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >, _Identity<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, less<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > >, allocator<basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > > >::_M_insert(_Rb_tree_node_base *, _Rb_tree_node_base *, basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const &)':
maildirkeywords4.cpp:852: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:852: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:852: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o):maildirkeywords4.cpp:852: more undefined references to `__default_alloc_template<false, 0>::_S_free_list' follow
libmaildir.a(maildirkeywords4.o): In function `__malloc_alloc_template<0>::_S_oom_malloc(unsigned long)':
maildirkeywords4.cpp:197: undefined reference to `__malloc_alloc_template<0>::__malloc_alloc_oom_handler'
maildirkeywords4.cpp:202: undefined reference to `cerr'
maildirkeywords4.cpp(.pr+0x2c0c): undefined reference to `ostream::operator<<(char const *)'
maildirkeywords4.cpp(.pr+0x2c16): undefined reference to `endl(ostream &)'
libmaildir.a(maildirkeywords4.o): In function `__default_alloc_template<false, 0>::_S_chunk_alloc(unsigned long, int &)':
maildirkeywords4.cpp:467: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirkeywords4.cpp(.pr+0x2cfe): undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirkeywords4.cpp:504: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirkeywords4.cpp:503: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirkeywords4.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_heap_size'
maildirkeywords4.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:510: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirkeywords4.cpp:511: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirkeywords4.cpp:516: undefined reference to `__default_alloc_template<false, 0>::_S_heap_size'
maildirkeywords4.cpp:517: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirkeywords4.cpp:517: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
libmaildir.a(maildirkeywords4.o): In function `__default_alloc_template<false, 0>::_S_refill(unsigned long)':
maildirkeywords4.cpp:554: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o): In function `vector<char const *, allocator<char const *> >::_M_insert_aux(char const **, char const *const &)':
maildirkeywords4.cpp:614: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:614: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirkeywords4.cpp:614: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o): In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::compare(basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const &, unsigned long, unsigned long) const':
maildirkeywords4.cpp:399: undefined reference to `__out_of_range(char const *)'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `cerr'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `endl(ostream &)'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `__malloc_alloc_template<0>::__malloc_alloc_oom_handler'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
libmaildir.a(maildirkeywords4.o)(.tc+0x0):maildirkeywords4.cpp: undefined reference to `__default_alloc_template<false, 0>::_S_heap_size'
libmaildir.a(maildirsearchC.o): In function `mail::Search::Search(void)':
maildirsearchC.cpp:14: undefined reference to `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep'
maildirsearchC.cpp:14: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirsearchC.cpp:14: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirsearchC.o): In function `mail::Search::~Search(void)':
maildirsearchC.cpp:19: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirsearchC.cpp:19: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirsearchC.o): In function `basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::Rep::clone(void)':
maildirsearchC.cpp:74: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirsearchC.o):maildirsearchC.cpp:65633: more undefined references to `__default_alloc_template<false, 0>::_S_free_list' follow
libmaildir.a(maildirsearchC.o): In function `__malloc_alloc_template<0>::_S_oom_malloc(unsigned long)':
maildirsearchC.cpp:197: undefined reference to `__malloc_alloc_template<0>::__malloc_alloc_oom_handler'
maildirsearchC.cpp:202: undefined reference to `cerr'
maildirsearchC.cpp(.pr+0x94c): undefined reference to `ostream::operator<<(char const *)'
maildirsearchC.cpp(.pr+0x956): undefined reference to `endl(ostream &)'
libmaildir.a(maildirsearchC.o): In function `__default_alloc_template<false, 0>::_S_refill(unsigned long)':
maildirsearchC.cpp:554: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
libmaildir.a(maildirsearchC.o): In function `__default_alloc_template<false, 0>::_S_chunk_alloc(unsigned long, int &)':
maildirsearchC.cpp:467: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirsearchC.cpp(.pr+0xb32): undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirsearchC.cpp:504: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirsearchC.cpp:503: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirsearchC.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_heap_size'
maildirsearchC.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirsearchC.cpp:518: undefined reference to `__default_alloc_template<false, 0>::_S_free_list'
maildirsearchC.cpp:510: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
maildirsearchC.cpp:511: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirsearchC.cpp:516: undefined reference to `__default_alloc_template<false, 0>::_S_heap_size'
maildirsearchC.cpp:517: undefined reference to `__default_alloc_template<false, 0>::_S_start_free'
maildirsearchC.cpp:517: undefined reference to `__default_alloc_template<false, 0>::_S_end_free'
collect2: ld returned 1 exit status
gmake[2]: *** [deliverquota] Error 1
gmake[2]: Leaving directory `/software/courier-imap-3.0.3/maildir'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/software/courier-imap-3.0.3/maildir'
gmake: *** [all-recursive] Error 1

Deberia compilar con g++, pero esa linea la compila con gcc. He probado con gnu ld, ld, make, gmake , tambien cambiando CC=gcc por CC=g++, pero nada.
Alguien sabe como solucionarlo ?

Gracias.