Having some problems compiling on AIX 5.3 with IBM vac version 8.
Programs that I had problems building: test-mail test-imap test-index
To fix the undefined symbols problem:
ld: 0711-317 ERROR: Undefined symbol: .charset_to_utf8_end ld: 0711-317 ERROR: Undefined symbol: .charset_to_utf8_begin ld: 0711-317 ERROR: Undefined symbol: .charset_to_utf8 ld: 0711-317 ERROR: Undefined symbol: .charset_is_utf8 ld: 0711-317 ERROR: Undefined symbol: .charset_to_utf8_str
ld: 0711-317 ERROR: Undefined symbol: .message_header_decode_utf8 ld: 0711-317 ERROR: Undefined symbol: .rfc822_parser_init ld: 0711-317 ERROR: Undefined symbol: .rfc822_skip_lwsp ld: 0711-317 ERROR: Undefined symbol: .rfc822_parse_content_type ld: 0711-317 ERROR: Undefined symbol: .rfc2231_parse ld: 0711-317 ERROR: Undefined symbol: .rfc822_parse_mime_token ld: 0711-317 ERROR: Undefined symbol: .rfc822_parse_atom ld: 0711-317 ERROR: Undefined symbol: .message_address_parse
ld: 0711-317 ERROR: Undefined symbol: .iconv ld: 0711-317 ERROR: Undefined symbol: .iconv_open ld: 0711-317 ERROR: Undefined symbol: .iconv_close
I add this ../lib-charset/.libs/libcharset.a -liconv to the Makefiles
(./src/lib-imap/Makefile;./src/lib-index/Makefile;./src/lib-mail/
Makefile)
below:
$ find . -name Makefile -exec egrep -p libcharset.a {} \; -print
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; for p in $$list; do
f=echo $$p|sed 's/$(EXEEXT)$$//'
;
echo " rm -f $$p $$f";
rm -f $$p $$f ;
done
test-imap$(EXEEXT): $(test_imap_OBJECTS) $(test_imap_DEPENDENCIES)
@rm -f test-imap$(EXEEXT)
$(LINK) $(test_imap_LDFLAGS) $(test_imap_OBJECTS) $
(test_imap_LDADD) $(LIBS)
../lib-mail/.libs/libmail.a ../lib-charset/.libs/libcharset.a
-liconv
./src/lib-imap/Makefile
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; for p in $$list; do
f=echo $$p|sed 's/$(EXEEXT)$$//'
;
echo " rm -f $$p $$f";
rm -f $$p $$f ;
done
test-index$(EXEEXT): $(test_index_OBJECTS) $(test_index_DEPENDENCIES)
@rm -f test-index$(EXEEXT)
$(LINK) $(test_index_LDFLAGS) $(test_index_OBJECTS) $
(test_index_LDADD) $(LIBS) ../lib-charset/.libs/libcharset.a -liconv
./src/lib-index/Makefile
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; for p in $$list; do
f=echo $$p|sed 's/$(EXEEXT)$$//'
;
echo " rm -f $$p $$f";
rm -f $$p $$f ;
done
test-mail$(EXEEXT): $(test_mail_OBJECTS) $(test_mail_DEPENDENCIES)
@rm -f test-mail$(EXEEXT)
$(LINK) $(test_mail_LDFLAGS) $(test_mail_OBJECTS) $
(test_mail_LDADD) $(LIBS) ../lib-charset/.libs/libcharset.a -liconv
./src/lib-mail/Makefile
Then compilation occurs fine.
Thanks! Jonathan