[Ns-developers] osx compiler is ugly
L.Wood@surrey.ac.uk
L.Wood at surrey.ac.uk
Fri May 1 08:42:31 PDT 2009
Mac OS X Leopard (intel and ppc) ships with gcc 4.0.1. Later
versions are available, but it's unlikely that users will install
them (and they introduce their own fun, e.g. gcc 4.4 deprecating
varargs.h in favour of stdarg.h)
Really, the compiler's the least of the problems. Leopard's linker
is generally regarded as... interesting.
<http://www.ee.surrey.ac.uk/Personal/L.Wood/><L.Wood at surrey.ac.uk>
-----Original Message-----
From: ns-developers-bounces at ISI.EDU on behalf of Faker Moatamri
Sent: Thu 2009-04-30 16:57
To: Mathieu Lacage
Cc: ns-developers at ISI.EDU
Subject: Re: [Ns-developers] osx compiler is ugly
Mathieu Lacage wrote:
> hi,
>
> I noticed that our osx-ppc build using gcc 4.0.1 is broken and can be
> fixed with the following patch.
>
> Normally, I would commit this without asking around, but, this patch is
> so ugly and makes me feel so dirty that I have to ask: do we really want
> to commit this ?
>
> diff -r fcb74b52e91b src/devices/wifi/edca-txop-n.cc
> --- a/src/devices/wifi/edca-txop-n.cc Thu Apr 30 14:11:58 2009 +0200
> +++ b/src/devices/wifi/edca-txop-n.cc Thu Apr 30 07:27:59 2009 -0700
> @@ -667,6 +667,8 @@ EdcaTxopN::MapSrcAddressForAggregation (
> {
> return hdr.GetAddr3 ();
> }
> + // quiet buggy compiler
> + return Mac48Address ();
> }
>
> Mac48Address
> @@ -680,6 +682,8 @@ EdcaTxopN::MapDestAddressForAggregation
> {
> return hdr.GetAddr3 ();
> }
> + // quiet buggy compiler
> + return Mac48Address ();
> }
>
> void
>
>
>
Is it possible to upgrade OSX-PPC compiler? may be a newer version will
correct this compiling error. Otherwise I think it's mandatory to commit
this ugly code if we want to support Mac with comments noticing why we
wrote this code (for example: osx-ppc compiler gcc 4.0.1 requires this
line to be added).
More information about the Ns-developers
mailing list