Apple's gcc can't handle deprecated attribute
Jack Howarth
howarth at bromo.med.uc.edu
Thu Oct 4 13:25:53 PDT 2012
On Thu, Oct 04, 2012 at 07:20:50PM +0200, Rainer Müller wrote:
> On 2012-10-04 15:16, MK-MacPorts at techno.ms wrote:
> > And here is another invalid attribute:
> > ---
> > lib/result.c:882:53: error: only weak aliases are supported on darwin
> > void result_free(result_t *r) __attribute__ ((weak, alias ("csvdb_free_result")));
> > ^
> > 1 error generated.
>
> AFAIK this is not supported due to limitations in the Mach-O format, in
> contrast to ELF used on Linux and *BSD, where this combination is
> possible. I tried to find some document explaining the issues with this,
> however my search engine did not turn up anything useful besides lots of
> similar build errors in other projects...
>
> Rainer
Note this issue is described in http://llvm.org/bugs/show_bug.cgi?id=11116.
The alternative of using weakref's apparently requires these be static...
http://www.lsd.ic.unicamp.br/~oliva/writeups/weakref/weakref.txt
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-dev
More information about the macports-dev
mailing list