I build samba on FreeBSD 6.2-STABLE, and building process end successfully, as I see. But libiconv is not used and no conversion happens. I investigated the configure output, and found that iconv library is not properly decided. This is caused by wrong directives in aclocal.m4 file, concerning iconv. I installed both libiconv and libbiconv, and SVN comment shows that biconv should be used if iconv cannot be used. But using current aclocal.m4 file always used biconv due to wrong branching condition. Here is a patch: --- aclocal.m4.orig Thu Mar 1 13:55:17 2007 +++ aclocal.m4 Sun Jul 29 08:17:18 2007 @@ -334,7 +334,7 @@ jm_cv_func_iconv=yes jm_cv_lib_iconv="") - if test "$jm_cv_lib_iconv" != yes; then + if test "$jm_cv_func_iconv" != yes; then jm_save_LIBS="$LIBS" LIBS="$LIBS -lgiconv" AC_TRY_LINK([#include <stdlib.h> @@ -363,7 +363,7 @@ jm_cv_lib_iconv="iconv") LIBS="$jm_save_LIBS" - if test "$jm_cv_lib_iconv" != yes; then + if test "$jm_cv_func_iconv" != yes; then jm_save_LIBS="$LIBS" LIBS="$LIBS -lbiconv" AC_TRY_LINK([#include <stdlib.h>
*** Bug 4833 has been marked as a duplicate of this bug. ***
Hi, Jerry, Alex! > But using current aclocal.m4 file always used biconv I have only one question - WHY?! After we successfully buried biconv code around 3.0.20 it strikes back again. I'm sending separate letter about it now, but basically, we just need to remove this old code and never bring it back. With regards, Timur
Is this still an issue in Samba 3.4.3?
Yes, samba-3.4.3 still has a problem.
Updating component. Thanks for the feedback!
Created attachment 5053 [details] Patch for 3.3. Patch for 3.3.X
Created attachment 5054 [details] Patch for 3.4 Patch for 3.4.X
Pushed fixes to master and v3-5-test
Comment on attachment 5054 [details] Patch for 3.4 looks good!
Pushed patches to v3-3-test and v3-4-test. Closing out bug report. Thanks!