Bug 577

Summary: error: conflicting types for 'getline'
Product: buildroot Reporter: Henry Bubert <cryptix>
Component: OtherAssignee: Ulf Samuelsson <ulf.samuelsson>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: x86 32Bit Target: Atmel AVR32
Build:
Attachments: apply getline() fix from linux kernel

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