bug-rcs
[Top][All Lists]
Advanced

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

Re: Build failure on Solaris 10 with Sun cc


From: Paul Eggert
Subject: Re: Build failure on Solaris 10 with Sun cc
Date: Wed, 29 Sep 2010 11:48:28 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

On 09/29/10 02:41, Thien-Thi Nguyen wrote:
> Hmmm, i can't even formulate a hypothesis on why ‘struct divvy *divvy’
> is not considered a pointer to a struct/union by the Sun cc.

I don't think that's the problem.  The problem is that the code
uses an expression A->B, where A is of type 'void *'.  The C
standard doesn't allow that.

> Could you please ‘M-x c-macro-expand’ that function and post the results?

That command didn't work for me, but I am attaching the output of:

source='b-divvy.c' object='b-divvy.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \
cc -xc99=all -xc99=all -DHAVE_CONFIG_H -I. -I../lib  -I'../lib'   -E b-divvy.c |
sed 's/^#/\/\/'

The first problem is in the alloc function.  The expression

( ( divvy -> space ) ) -> temp

is not valid, because divvy->space is of type void *.

Attachment: b-divvy-preprocessed.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]