Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Feb 2014 22:34:58 +0100
From:      Rodrigo OSORIO <rodrigo@bebik.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: configure fail in a test performed with -liconv
Message-ID:  <52FD3A82.5080405@bebik.net>
In-Reply-To: <52FD2D16.1000407@bebik.net>
References:  <52FD2D16.1000407@bebik.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 02/13/14 21:37, Rodrigo OSORIO wrote:
> Hi all,
> 
> I'm dealing with an issue in irc/scrollz port. The configure
> script fail and return a "getaddrinfo bug" caused by a failure when
> it compiles the conftest binary.
> 
> In fact, conftest is compiled with the -liconv flag, but ld can't 
> found it.
> 
> Here is the command executed to compile the code
> 
> cc -o conftest -O2 -pipe -fno-strict-aliasing -I/usr/local/include 
> -I/usr/local/include  -Wl,-rpath=/usr/lib:/usr/local/lib 
> -Wl,-rpath=/usr/lib:/usr/local/lib conftest.c -lcrypt
> -L/usr/local/lib -L/usr/local/lib -liconv
> 
> And the error
> 
> /usr/bin/ld: cannot find -liconv cc: error: linker command failed
> with exit code 1 (use -v to see invocation)
> 
> Iconv isn't required in any way by the application, but the flag
> is managed by the --enable-utf8 flag, if I call configure disabling
> utf8 support (--disable-utf8) config finish its work without
> error.
> 
> Any idea or suggestion?
> 
> Regards - rodrigo _______________________________________________ 
> freebsd-ports@freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports To
> unsubscribe, send any mail to
> "freebsd-ports-unsubscribe@freebsd.org"
> 

Hi,

After few tests and as an alternative, this code taken from the proter
handbook and modifies a little, does the job pretty well (I hope)

post-patch:
.if empty(ICONV_LIB)
        # native iconv detected
        @${REINPLACE_CMD} -e 's|-liconv||' ${WRKSRC}/configure
.endif

Does it make sense for any of you ?

Regards,

- rodrigo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52FD3A82.5080405>