[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ltdl.c and 1.4.1 (type conflicts)
From: |
libtool |
Subject: |
Re: ltdl.c and 1.4.1 (type conflicts) |
Date: |
Thu, 6 Sep 2001 22:46:31 -0500 |
User-agent: |
Mutt/1.2.5i |
On Fri, Sep 07, 2001 at 12:43:31AM +0100, Gary V. Vaughan wrote:
> On Wed, Sep 05, 2001 at 09:52:10PM -0500, address@hidden wrote:
> >
> > Harder to fix is:
> > "ltdl.c", line 3204.58: 1506-280 (E) Function argument assignment
> > between types "void*" and "int(*)(const char*,void*)" is not allowed.
> > "ltdl.c", line 3210.58: 1506-280 (E) Function argument assignment
> > between types "void*" and "int(*)(const char*,void*)" is not allowed.
> > "ltdl.c", line 3214.62: 1506-280 (E) Function argument assignment
> > between types "void*" and "int(*)(const char*,void*)" is not allowed.
> > "ltdl.c", line 3221.62: 1506-280 (E) Function argument assignment
> > between types "void*" and "int(*)(const char*,void*)" is not allowed.
> > "ltdl.c", line 3228.62: 1506-280 (E) Function argument assignment
> > between types "void*" and "int(*)(const char*,void*)" is not allowed.
> >
> > ltdl.c makes liberal use of pointers.
> >
> > The above is on AIX 4.3.2 with xlc BTW.
>
> Oh yuck! Are there any mode switches to xlc to have it accept this
> ideom? Otherwise we need to come up with a workaround... presumably
> it is an alignment issue? Can I call this a `bug in the compiler', or
> is it legitimate for it to reject this out of hand?
AIX does accept it. However, ltdl.c is treating pointers and pointers
to functions the same (hence my statement that it makes liberal use of
pointers). This is just ugly from a type safe point of view. We don't
need to do anything to "fix" it (the fix is to make sure that types
are used in a more sane manner throughout ltdl.c which will not be
easy.
--
albert chin (address@hidden)
- ltdl.c and 1.4.1 (type conflicts), libtool, 2001/09/05
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/06
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/06
- Re: ltdl.c and 1.4.1 (type conflicts),
libtool <=
- Re: ltdl.c and 1.4.1 (type conflicts), Tim Mooney, 2001/09/07
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/07
- Re: ltdl.c and 1.4.1 (type conflicts), Robert Collins, 2001/09/08
- Re: ltdl.c and 1.4.1 (type conflicts), Bruce Korb, 2001/09/08
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/10
- Re: ltdl.c and 1.4.1 (type conflicts), Bruce Korb, 2001/09/10
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/10
- Re: ltdl.c and 1.4.1 (type conflicts), Tim Mooney, 2001/09/11
- Re: ltdl.c and 1.4.1 (type conflicts), Bruce Korb, 2001/09/12
- Re: ltdl.c and 1.4.1 (type conflicts), Gary V. Vaughan, 2001/09/13