From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13090 invoked by alias); 2 Jul 2002 19:56:09 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 13025 invoked by uid 71); 2 Jul 2002 19:56:08 -0000 Date: Tue, 02 Jul 2002 12:56:00 -0000 Message-ID: <20020702195608.13021.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Bruno Haible Subject: Re: java/7169: /usr/ccs/bin/ld: Unsatisfied symbols: libiconv, li Reply-To: Bruno Haible X-SW-Source: 2002-07/txt/msg00072.txt.bz2 List-Id: The following reply was made to PR java/7169; it has been noted by GNATS. From: Bruno Haible To: "John David Anglin" Cc: tromey@redhat.com, dave.anglin@nrc.ca, gcc-gnats@gcc.gnu.org Subject: Re: java/7169: /usr/ccs/bin/ld: Unsatisfied symbols: libiconv, li Date: Tue, 2 Jul 2002 21:48:09 +0200 (CEST) John David Anglin writes: > If I specify --prefix=/opt/gnu and --with-libiconv-prefix=/opt/gnu, then > the libiconv configure test for libiconv fails: > > configure:4457: checking for iconv > configure:4475: cc -o conftest -g -I/opt/gnu/include conftest.c 1>&5 > (Bundled) cc: warning 480: The -g option is available only with the C/ANSI C pro > duct; ignored. > (Bundled) cc: "/opt/gnu/include/iconv.h", line 72: warning 5: "const" will becom > e a keyword. > (Bundled) cc: "/opt/gnu/include/iconv.h", line 72: error 1000: Unexpected symbol > : "char". That's a different thing; you built and installed libiconv with an ANSI C compiler, and now you go back to a non-ANSI C compiler. Why don't you use "cc -Ae" instead of "cc" to bootstrap gcc? Why doesn't gcc by itself add the "-Ae" when it sees an HP-UX compiler? Bruno