[PATCH] Workaround for autoconf'ed define of caddr_t

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Wed Mar 30 22:04:00 GMT 2011

Esben, All,

On Wednesday 30 March 2011 16:12:35 Esben Haabendal wrote:
> (comments in original mail was eaten by gnus)

Yes, indeed. Gnus are special animals, and they feed on comments.
In this respect, they are a very usefull specy. Trolls also feed on
comments, but in a very different manner! Fortunately, trolls and
gnus do not cross-breed. Hehe! ;-)

Anyway, you can still run 'hg email --outgoing' to send changesets in
your local repos that are not upstream. It even works on MQs! That way,
I can easily run 'hg import' (or mimport) on your mails to turn the
patches back into changesets here that I can then push.

And what's nicest with that method, is that it keeps authorship. With
simple patches as attachements, I have to remember at commit time that
I am not the author, and force that.

> When building canadian cross compiler, I have some trouble with
> configure defining caddr_t as a macro, like
> #define caddr_t char *

Yes. I've noticed that as well. I did not find how to solve it.

> When combined with the types.h where caddr_t is protected together with
> daddr_t, the typedef of caddr_t breaks.
> This patch works around it by protecting the caddr_t typedef
> specifically.
> I am uncertain as to the real cause and solution to this :-(

Neither am I... :-/
I did postponed the issue as I could not understand it as I have more
important matters going on that I have to handle ASAP.

I'll test your patch before the end of the WE. I'll also look at the glibc
BT to see if the issue has been reported. Looking at eglibc may also yield
some hints.

> Anyways, if you get problems with caddr_t in types.h, you might want to
> try this.

Thank you!

Yann E. MORIN.

|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |

For unsubscribe information see http://sourceware.org/lists.html#faq

More information about the crossgcc mailing list