discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc build error


From: Fred Kiefer
Subject: Re: gcc build error
Date: Sat, 16 Feb 2008 17:25:08 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20070801)

Andreas Höschler wrote:
> Hi all,
> 
> I am just giving Solaris Express a try. My first action after installing
> the os is of course building gcc to get Objective-C support.
> Unfortunately the build fails
> 
>     cd /usr/src
>     gunzip gcc-3.4.4.tar.gz
>     tar xvf gcc-3.4.4.tar
>     cd gcc-3.4.4
>     mkdir objdir
>     cd objdir
>     ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
> --disable-nls  --disable-libgcj --enable-languages=c,c++,objc
>     make bootstrap
> 
> with the following error:
> 
> ...
> ld: fatal: Symbol referencing errors. No output written to cc1obj
> collect2: ld returned 1 exit status
> Undefined                       first referenced
>   symbol                             in file
> libiconv_close                      libcpp.a(cppcharset.o)
> libiconv_open                       libcpp.a(cppcharset.o)
> libiconv                            libcpp.a(cppcharset.o)
> ld: fatal: Symbol referencing errors. No output written maketo cc1[
> 2]: *** [cc1obj] Error 1
> 
> Any idea? I know this is hardly gnustep related but if anybody of you
> got this running already and/or has a clue ...
> 

Looks like you need to link in libiconv, on GNU type of systems this is
already part of glibc. On your Solaris system this seems to be not the
case, so perhaps adding a -liconv flag for ld should help. No idea, why
gcc is not detecting this itself and of course this is only a wild guess.

Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]