git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Link against libiconv on IRIX

From
BCBrandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Date
Apr 5, 2010, 16:45 UTC
Message-ID
<1UypQMCHLT57SnjSQIM66RTkLalsvavG8xXoQJv4rEQ@cipher.nrlssc.navy.mil>
In-Reply-To
<20100329105748.GD14869@CIS.FU-Berlin.DE>
On 03/29/2010 05:57 AM, Holger Weiß wrote:
> On IRIX, "-liconv" must be added to the linker command line in order to
> get iconv(3) support; set the according Makefile variable appropriately.

This breaks compilation on IRIX 6.5.29m for me since there is no separate libiconv.so.

What version of IRIX are you using?

On my system, even the iconv utility doesn't link against a libiconv shared object. It seems the iconv functionality is in libc.

   # ldd /usr/bin/iconv
           libc.so.1  =>    /usr/lib32/libc.so.1

Could it be that you are using a third party iconv library? I've experienced this on another system and the problem was related to curl. In that case, curl was linked against an external iconv and not the native library, so if I tried to build with curl support, I had to also build against the external iconv library.

-brandon
Show 25 quoted lines
> Signed-off-by: Holger Weiß <holger@zedat.fu-berlin.de>
> ---
>  Makefile |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 3a6c6ea..8a0f5c4 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -919,6 +919,7 @@ ifeq ($(uname_S),IRIX)
>  	SNPRINTF_RETURNS_BOGUS = YesPlease
>  	SHELL_PATH = /usr/gnu/bin/bash
>  	NEEDS_LIBGEN = YesPlease
> +	NEEDS_LIBICONV = YesPlease
>  endif
>  ifeq ($(uname_S),IRIX64)
>  	NO_SETENV=YesPlease
> @@ -937,6 +938,7 @@ ifeq ($(uname_S),IRIX64)
>  	SNPRINTF_RETURNS_BOGUS = YesPlease
>  	SHELL_PATH=/usr/gnu/bin/bash
>  	NEEDS_LIBGEN = YesPlease
> +	NEEDS_LIBICONV = YesPlease
>  endif
>  ifeq ($(uname_S),HP-UX)
>  	NO_IPV6=YesPlease
Previous: Holger WeißNext: Junio C Hamano
Message 2 of 4 in “Link against libiconv on IRIX”
  1. Link against libiconv on IRIXHolger Weiß, Mar 29, 2010
  2. Brandon CaseyApr 5, 2010
  3. Junio C HamanoApr 5, 2010
  4. Holger WeißApr 5, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.