[Dovecot] Compile issue Dovecot 2.1.8, OS X 10.6.x
Hey all. I'm running Mac OS X 10.6.4, and had Dovecot 2.0.7 installed built from source. I'm now wanting to upgrade to Dovecot 2.1.8, but I can't get MAKE to finish without errors:
./configure --with-mysql
(snip)
Install prefix . : /usr/local File offsets ... : 64bit I/O polling .... : kqueue I/O notifys .... : kqueue SSL ............ : yes (OpenSSL) GSSAPI ......... : no passdbs ........ : static passwd passwd-file pam checkpassword sql : -shadow -bsdauth -sia -ldap -vpopmail userdbs ........ : static prefetch passwd passwd-file checkpassword sql : -ldap -vpopmail -nss SQL drivers .... : mysql : -pgsql -sqlite Full text search : squat : -lucene -solr
sudo make
(snip)
Undefined symbols: "_libiconv_open", referenced from: _charset_to_utf8_begin in libcharset.a(charset-iconv.o) "_libiconv", referenced from: _charset_to_utf8_reset in libcharset.a(charset-iconv.o) _charset_to_utf8 in libcharset.a(charset-iconv.o) "_libiconv_close", referenced from: _charset_to_utf8_end in libcharset.a(charset-iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libdovecot.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
The reason for the 'sudo make' was to get around a permissions issue, but I don't think that's related to my issue here. I had build Dovecot 2.0.7 and earlier without issue on this system, but I'm a bit stumped on this particular problem.
I also found that the configure parameter --with-sql-drivers no longer seems to work, even though it's still shown in the wiki for 2.x. As far as I can tell, I had used this parameter when compiling 2.0.7.
I just did tried building Dovecot 2.1.0, same issue. Dovecot 2.0.21 was able to build without issues, so this problem seems to be with the entire 2.1.x branch.
Jim
On Jul 16, 2012, at 4:25 PM, Jim wrote:
Hey all. I'm running Mac OS X 10.6.4, and had Dovecot 2.0.7 installed built from source. I'm now wanting to upgrade to Dovecot 2.1.8, but I can't get MAKE to finish without errors:
Undefined symbols: "_libiconv_open", referenced from: _charset_to_utf8_begin in libcharset.a(charset-iconv.o) "_libiconv", referenced from: _charset_to_utf8_reset in libcharset.a(charset-iconv.o) _charset_to_utf8 in libcharset.a(charset-iconv.o) "_libiconv_close", referenced from: _charset_to_utf8_end in libcharset.a(charset-iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libdovecot.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Hey all, I'm still stumped here. No suggestions from anyone on anything I can look at? Has anyone successfully compiled the 2.1.x branch on Mac OS X 10.6.x?
Jim
On Jul 16, 2012, at 8:10 PM, Jim wrote:
I just did tried building Dovecot 2.1.0, same issue. Dovecot 2.0.21 was able to build without issues, so this problem seems to be with the entire 2.1.x branch.
Jim
On Jul 16, 2012, at 4:25 PM, Jim wrote:
Hey all. I'm running Mac OS X 10.6.4, and had Dovecot 2.0.7 installed built from source. I'm now wanting to upgrade to Dovecot 2.1.8, but I can't get MAKE to finish without errors:
Undefined symbols: "_libiconv_open", referenced from: _charset_to_utf8_begin in libcharset.a(charset-iconv.o) "_libiconv", referenced from: _charset_to_utf8_reset in libcharset.a(charset-iconv.o) _charset_to_utf8 in libcharset.a(charset-iconv.o) "_libiconv_close", referenced from: _charset_to_utf8_end in libcharset.a(charset-iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libdovecot.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
I always use:
CPPFLAGS='-I/opt/local/include/postgresql85 -I/opt/local/include'
LDFLAGS="-L/opt/local/lib/postgresql85 -L/opt/local/lib"
./configure
Because otherwise system iconv conflicts with macports iconv. But it has been this way in v2.0 as well.
On 18.7.2012, at 8.09, Jim wrote:
Hey all, I'm still stumped here. No suggestions from anyone on anything I can look at? Has anyone successfully compiled the 2.1.x branch on Mac OS X 10.6.x?
Jim
On Jul 16, 2012, at 8:10 PM, Jim wrote:
I just did tried building Dovecot 2.1.0, same issue. Dovecot 2.0.21 was able to build without issues, so this problem seems to be with the entire 2.1.x branch.
Jim
On Jul 16, 2012, at 4:25 PM, Jim wrote:
Hey all. I'm running Mac OS X 10.6.4, and had Dovecot 2.0.7 installed built from source. I'm now wanting to upgrade to Dovecot 2.1.8, but I can't get MAKE to finish without errors:
Undefined symbols: "_libiconv_open", referenced from: _charset_to_utf8_begin in libcharset.a(charset-iconv.o) "_libiconv", referenced from: _charset_to_utf8_reset in libcharset.a(charset-iconv.o) _charset_to_utf8 in libcharset.a(charset-iconv.o) "_libiconv_close", referenced from: _charset_to_utf8_end in libcharset.a(charset-iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libdovecot.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
Hey Timo. I tried this just now, and that did the trick! I've updated my documentation here to include these additional parameters.
Thanks so much!
Jim
On Jul 18, 2012, at 12:15 AM, Timo Sirainen wrote:
I always use:
CPPFLAGS='-I/opt/local/include/postgresql85 -I/opt/local/include'
LDFLAGS="-L/opt/local/lib/postgresql85 -L/opt/local/lib"
./configureBecause otherwise system iconv conflicts with macports iconv. But it has been this way in v2.0 as well.
On 18.7.2012, at 8.09, Jim wrote:
Hey all, I'm still stumped here. No suggestions from anyone on anything I can look at? Has anyone successfully compiled the 2.1.x branch on Mac OS X 10.6.x?
Jim
On Jul 16, 2012, at 8:10 PM, Jim wrote:
I just did tried building Dovecot 2.1.0, same issue. Dovecot 2.0.21 was able to build without issues, so this problem seems to be with the entire 2.1.x branch.
Jim
On Jul 16, 2012, at 4:25 PM, Jim wrote:
Hey all. I'm running Mac OS X 10.6.4, and had Dovecot 2.0.7 installed built from source. I'm now wanting to upgrade to Dovecot 2.1.8, but I can't get MAKE to finish without errors:
Undefined symbols: "_libiconv_open", referenced from: _charset_to_utf8_begin in libcharset.a(charset-iconv.o) "_libiconv", referenced from: _charset_to_utf8_reset in libcharset.a(charset-iconv.o) _charset_to_utf8 in libcharset.a(charset-iconv.o) "_libiconv_close", referenced from: _charset_to_utf8_end in libcharset.a(charset-iconv.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libdovecot.la] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
participants (2)
-
Jim
-
Timo Sirainen