samba-bugs at samba.org
2011-Mar-16 19:29 UTC
[Bug 8018] New: configure doesn't find iconv library
https://bugzilla.samba.org/show_bug.cgi?id=8018 Summary: configure doesn't find iconv library Product: rsync Version: 3.0.8 Platform: All OS/Version: Mac OS X Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: mike at bombich.com QAContact: rsync-qa at samba.org Created attachment 6296 --> https://bugzilla.samba.org/attachment.cgi?id=6296 Adds "AC_SEARCH_LIBS(iconv, iconv)" to configure.ac The configure script looks for libiconv_open when determining if support is available for iconv. It should look for simply "iconv" on Mac OS X. I have attached a patch to adds this search criteria to configure.ac. [bombich:~/Desktop/rsync-3.0.8] ./configure | grep iconv checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for library containing libiconv_open... no checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for iconv_open... no checking for libiconv_open... no [bombich:~/Desktop/rsync-3.0.8] make ... [bombich:~/Desktop/rsync-3.0.8] ./rsync --version rsync version 3.0.8pre1 protocol version 30 Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, no iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. [bombich:~/Desktop/rsync-3.0.8] patch -p1 < ~/Desktop/rsync-iconv-osx.diff patching file configure.ac [bombich:~/Desktop/rsync-3.0.8] make reconfigure | grep iconv running CONFIG_SHELL=/bin/sh /bin/sh /Users/bombich/Desktop/rsync-3.0.8/configure.sh --no-create checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for library containing iconv... -liconv checking for library containing libiconv_open... no checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for iconv_open... yes [bombich:~/Desktop/rsync-3.0.8] make ... [bombich:~/Desktop/rsync-3.0.8] ./rsync --version rsync version 3.0.8pre1 protocol version 30 Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Mar-21 02:39 UTC
[Bug 8018] configure doesn't find iconv library
https://bugzilla.samba.org/show_bug.cgi?id=8018 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Wayne Davison <wayned at samba.org> 2011-03-21 02:39:06 UTC --- Interesting. On my (older) OS X, configure is finding libiconv_open. I have tweaked your suggested fix to look for iconv_open in addition to libiconv_open when checking if -liconv is needed. (I like this better than looking for just iconv.) -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Reasonably Related Threads
- DO NOT REPLY [Bug 5532] New: rsync / autoconf fails to detect libiconv on Solaris 10
- Binding with libiconv failed while compiling R-devel on Ubuntu 17.04
- Binding with libiconv failed while compiling R-devel on Ubuntu 17.04
- [LLVMdev] VMKit GNU classpath configure
- DO NOT REPLY [Bug 4981] New: iconv confusion