[Dovecot] dovecot 2.0 (revision 9271:d467712aee77) compile problems on AIX 5.3

Jonathan Siegle jsiegle at psu.edu
Wed May 13 22:04:12 EEST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2541 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20090513/08209d0e/attachment-0001.bin 


More information about the dovecot mailing list