pkgsrc-Users archive

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

Re: [now WITH PATCH] compile failure in multimedia/gst-plugins0.10-bad?

On Sat 06 Aug 2011 at 19:18:08 +0200, Thomas Klausner wrote:
> On Mon, Jul 25, 2011 at 05:02:08PM +0200, Rhialto wrote:
> > It is still unclear to me why apparently nobody else sees this. Unless
> > I'm the only one building this package. Is the version in pkgsrc
> > up-to-date?
> I just checked -- it builds fine for me on 5.99.55/amd64 out of pkgsrc
> without the patch, even though it should be needed. No clue why it's
> not.

Upstream, the explanation was that on Linux, NULL is #defined as
((void*)0), i.e. with an unnecessary set of parentheses. NetBSD leaves
them out (or at least did so in my test). In fact the (void*) cast is
also unneeded and can (could?[1]) be harmful.

[1] It used to be, maybe still is (but I haven't checked the text of the
standard) that you could not cast a data pointer to a function pointer.
So passing such a (void *)0 to signal(3) would not be strictly
conforming (that is C standard-speak for 'you should not do that because
some compilers may not like it'). Maybe gcc doesn't care, or
something like that.

>  Thomas
___ Olaf 'Rhialto' Seibert  -- There's no point being grown-up if you 
\X/ rhialto/at/    -- can't be childish sometimes. -The 4th Doctor

Home | Main Index | Thread Index | Old Index