Article View: news.software.nntp
Article #73284Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10
From: Russ Allbery
Date: Tue, 21 Feb 2006 03:32
Date: Tue, 21 Feb 2006 03:32
26 lines
2421 bytes
2421 bytes
In news.software.nntp, Dave Uhring <daveuhring@yahoo.com> writes:
> On Tue, 21 Feb 2006 02:58:21 +0000, Eric Edwards wrote:
>> gcc -g -O2 -I../include -xarch=v8 -D_TS_ERRNO -I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE -c perl.c
>> gcc: language arch=v8 not recognized
>> gcc: perl.c: linker input file unused because linking not done
> Fix your $CFLAGS
> export CFLAGS='-O2 -pipe -mcpu=ultrasparc'
In this case, the CFLAGS aren't coming from him; they're coming from Perl
by way of 'perl -MExtUtils::Embed -e ccopts'. So it's hard for him to fix
this. You *can* edit Makefile.global after running configure and change
the setting of PERLINC to strip out the bad flags, but other things can go
wrong (such as a 64-bit Perl and a 32-bit gcc). That's why I usually just
say that building INN with embedded Perl support using a compiler other
than the one used for Perl isn't supported. Debugging all the
combinations is tricky.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87pslh8jz9.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!g2news1.google.com!news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <slrndvhjj9.t6c.ese002@spica.exile.org> <pan.2006.02.19.20.22.12.642489@yahoo.com> <slrndvl0ed.6p9.ese002@spica.exile.org> <pan.2006.02.21.03.25.14.874495@yahoo.com>Show Full Headers
Complete Article Headers
Message-ID: <87pslh8jz9.fsf@windlord.stanford.edu> Subject: Re: INN 2.4.2 fails to compile with gcc 3.4.2 on Solaris 10 Date: Mon, 20 Feb 2006 19:32:42 -0800 From: Russ Allbery <rra@stanford.edu> References: <slrndvdg03.44o.ese002@spica.exile.org> <87y809qiht.fsf@windlord.stanford.edu> <slrndvhjj9.t6c.ese002@spica.exile.org> <pan.2006.02.19.20.22.12.642489@yahoo.com> <slrndvl0ed.6p9.ese002@spica.exile.org> <pan.2006.02.21.03.25.14.874495@yahoo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!g2news1.google.com!news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp,comp.unix.solaris Organization: The Eyrie Lines: 25 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1140492765 21558 171.64.19.147 (21 Feb 2006 03:32:45 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.18 (linux) Cancel-Lock: sha1:Zcrw/VHOHQJCdD7LmSdWGOrE0i4=