[Question] Building without iconv
rsbecker at nexbridge.com
rsbecker at nexbridge.com
Tue Mar 4 15:14:37 UTC 2025
On March 3, 2025 10:28 PM, Kevin Korb wrote:
>Works for me...
>$ ./configure --disable-iconv --disable-locale --disable-openssl --disable-xxhash --
>disable-zstd --disable-lz4 && make $ ldd rsync
> linux-vdso.so.1 (0x00007ffd39873000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f77c8f8b000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f77c9259000) $ uname -a Linux fog
>5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025
>x86_64 x86_64 x86_64 GNU/Linux
>
>Maybe whatever mystery platform you are on needs some Makefile tweaking?
>
>On 3/3/25 9:55 PM, Randall S. Becker via rsync wrote:
>> On March 3, 2025 9:14 PM Marc Aurèle La France wrote:
>>> On Mon, 2025-Mar-03, Randall S. Becker via rsync wrote:
>>>
>>>> I am trying to build a 64-bit version of rsync. My issue is that I
>>>> do not have a 64-bit libiconv.so or libiconv.a available. The
>>>> platform I am on only has 32-bit builds. The --disable-iconv option
>>>> in configure is not actually disabling iconv. Is there a different
>>>> option to disable this, at least temporarily?
>>>
>>> Try --disable-locale.
>>
>> Sadly, that made no difference. Libiconv.so still required.
>>
>>
I tried this:
CFLAGS="-c99 -Wlp64 -Wnowarn=734 -I/usr/local-ssl3.0/include -I/usr/coreutils/include" \
LDFLAGS="-Wlp64 -L/usr/local-ssl3.0/lib64 -L/usr/local-ssl3.0/lib -L/usr/coreutils/lib" \
./configure --prefix=/usr/local-ssl3.0 --bindir=/usr/local-ssl3.0/bin64 --disable-iconv \
--disable-locale --disable-md2man --disable-xxhash --disable-lz4 --disable-zstd
Configure still reports: <snipped>
checking for library containing iconv_open... none required
checking for library containing libiconv_open... -liconv
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
and uses it if the declaration exists even if disabled. The issue is that libiconv.so is 32-bit and will
not link with rsync for 64-bit.
More information about the rsync
mailing list