| Summary: | The getline() in output/build/linux-2.6.28/scripts/unifdef.c in buildroot is buggy | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Vikas Krishna Managutte <vikki.km> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED WONTFIX | ||
| Severity: | enhancement | CC: | buildroot |
| Priority: | P3 | Keywords: | link-failure |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Vikas Krishna Managutte
2010-03-11 05:47:26 UTC
(In reply to comment #0) > /usr/include/stdio.h:653: note: previous declaration of ‘getline’ was here > > How i fixed the error? > > i changed the getline function in unidef.c to get_line ie. other than getline > and it works fine. That's a known problem in older versions of the Linux kernel when building on new distributions. The official fix (which is included in 2.6.29+) is like you describe (getline -> get_line). Any reason why you want to use such an old kernel for a new project? This is not a Buildroot bug, but rather a know bug when using old versions of the kernel in newer distributions. I don't think there's anything Buildroot can do to fix this. |