Bug 577 - error: conflicting types for 'getline'
Summary: error: conflicting types for 'getline'
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 enhancement
Target Milestone: ---
Assignee: Ulf Samuelsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-19 21:38 UTC by Henry Bubert
Modified: 2009-08-20 05:58 UTC (History)
0 users

See Also:
Host: x86 32Bit
Target: Atmel AVR32
Build:


Attachments
apply getline() fix from linux kernel (1.48 KB, patch)
2009-08-19 21:44 UTC, Henry Bubert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Bubert 2009-08-19 21:38:10 UTC
Hi,

Buildroot crashed on me because of this:

extra/scripts/unifdef.c:209: error: conflicting types for 'getline'
/usr/include/stdio.h:651: note: previous declaration of 'getline' was here

I was told this is patched already but not yet in the uClibc for AVR32 by Atmel.

Attached patch fixes this.
Comment 1 Henry Bubert 2009-08-19 21:44:02 UTC
Created attachment 603 [details]
apply getline() fix from linux kernel
Comment 2 Bernhard Reutner-Fischer 2009-08-19 21:54:40 UTC
A few points:

-) "Host", "Build" and "target" are triplets
-) This is fixed on the 0_9_30 and master already
-) it's even fixed in buildroot
Comment 3 Thomas Petazzoni 2009-08-19 22:01:53 UTC
This is due to the fact that the user uses BR2_TOOLCHAIN_EXTERNAL_SOURCE to compile the AVR32 toolchain. And in this case, toolchain/uClibc/uClibc-0.9.30-unifdef-getline.patch does not get applied to the uClibc sources, leading to the build failure. This patch should probably be added to toolchain/uClibc/ext_source/Atmel/avr32/0.9.30-avr32-2.1.5/.
Comment 4 Bernhard Reutner-Fischer 2009-08-20 05:58:23 UTC
fix wrong project