Re: Issue with compiling git 1.8.4 under uclibc with gcc 4.6.3
- From
Lance <lancethepants@gmail.com>
- Date
- Aug 26, 2013, 20:29 UTC
- Message-ID
- <521BBA98.7010102@gmail.com>
- In-Reply-To
- <20130826201804.GB13130@blizzard>
On 8/26/2013 2:18 PM, Lukas Fleischer wrote:
Show 26 quoted lines
> On Mon, Aug 26, 2013 at 02:10:43PM -0600, Lance wrote:
>> Up until the latest release, I've been able to compile git for a
>> uclibc based embedded linux. The toolchain I use is from "entware",
>> which is based off of the openwrt toolchain.
>> https://code.google.com/p/wl500g-repo/
>>
>> Somewhere between git 1.8.3.4 & 1.8.4 there seems to be some changes
>> that breaks compilation for my particular situation. When cross
>> compiling I receive the following error. I also receive the same
>> error when compiling natively on the uclibc based device itself.
>> Not sure if being uclibc based has anything to do with it, but is
>> noteworthy. I am not a c programmer.
>> Both the cross compiler, and embedded device's version off gcc is 4.6.3.
>> Previous versions compile fine
>>
>> CC config.o
>> config.c: In function 'get_next_char':
>> config.c:220:14: error: expected identifier before '(' token
>> config.c:220:14: error: expected statement before ')' token
>> config.c:220:14: error: expected statement before ')' token
>> config.c:224:11: error: expected identifier before '(' token
> Does changing line 220 of config.c to
>
> int c = (cf->fgetc)(cf);
>
> fix it?I also had to change line 224 to the following
c = (cf->fgetc)(cf);
Once both places were changes, it compiled successfully. thanks
Show 5 quoted lines
>> Lance >> -- >> To unsubscribe from this list: send the line "unsubscribe git" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html