[Freeciv-Dev] Re: (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] Re: (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5.26 c99 problem |
From: |
"Joerg Behrens" <behrens@xxxxxxxxxx> |
Date: |
Mon, 10 Jan 2005 07:56:46 -0800 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11794 >
----- Original Message -----
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
To: <behrens@xxxxxxxxxx>
Sent: Monday, January 10, 2005 4:48 AM
Subject: (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5.26 c99
problem
>
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11794 >
>
> > [behrens@xxxxxxxxxx - Tue Jan 04 22:06:08 2005]:
> >
> > Hello, i have problem compiling freeciv-2.0.0-beta6 on IRIX 6.5.25
> with the
> > nativ mips cc compilier. It looks like that the c99 compiler doesnt
> > understand ... :|
>
> Does this patch fix the problem?
[o2k] patch -p0 < cma_fec.patch
|===================================================================
|RCS file: /home/freeciv/CVS/freeciv/client/agents/cma_fec.c,v
|retrieving revision 1.28
|diff -u -r1.28 cma_fec.c
|--- client/agents/cma_fec.c 25 Nov 2004 07:20:02 -0000 1.28
|+++ client/agents/cma_fec.c 10 Jan 2005 03:48:02 -0000
--------------------------
File to patch: cma_fec.c
Patching file cma_fec.c using Plan A...
Hunk #1 succeeded at 375.
Hmm... Ignoring the trailing garbage.
done
Yes it compiles now. Thx a lot!
But bailed out on
cc-1032 c99: ERROR File = helpdata.c, Line = 558
The indicated expression must have an arithmetic type.
req_append(get_tech_name(game.player_ptr, b->tech_req));
^
helpdata.c
--------
550 #define req_append(s)
\
551 (req_buf[0] != '\0'
\
552 ? my_snprintf(req_buf + strlen(req_buf),
\
553 sizeof(req_buf) - strlen(req_buf),
\
554 ", %s", (s))
\
555 : sz_strlcpy(req_buf, (s)))
556
557 if (b->tech_req != A_NONE) {
558 req_append(get_tech_name(game.player_ptr, b->tech_req));
559 }
When needed i can create a new bugreport for this.
regards
Joerg
- [Freeciv-Dev] Re: (PR#11794) Compile problem freeciv-2.0.0-beta6 on IRIX 6.5.26 c99 problem,
Joerg Behrens <=
|
|