Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394139 - app-portage/portage-utils-0.6 failed to build: getline conflict with libc's one
Summary: app-portage/portage-utils-0.6 failed to build: getline conflict with libc's one
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 393163
  Show dependency tree
 
Reported: 2011-12-09 12:26 UTC by Naohiro Aota
Modified: 2011-12-09 18:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0003-Check-_WITH_GETLINE-definition.patch (0003-Check-_WITH_GETLINE-definition.patch,736 bytes, patch)
2011-12-09 12:26 UTC, Naohiro Aota
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2011-12-09 12:26:13 UTC
Created attachment 295283 [details, diff]
0003-Check-_WITH_GETLINE-definition.patch

Patch to deal with this error on FreeBSD:

main.c:221:16: error: static declaration of 'getline' follows non-static declaration
/usr/include/stdio.h:370:10: note: previous declaration of 'getline' was here

The patch also check if _WIHT_GETLINE is defined
Comment 1 SpanKY gentoo-dev 2011-12-09 16:50:47 UTC
i've deleted the getline() definition.  now portage-utils requires the C library to provide the function.

http://sources.gentoo.org/gentoo-projects/portage-utils/main.c?r1=1.195&r2=1.196
Comment 2 Fabian Groffen gentoo-dev 2011-12-09 18:34:13 UTC
This breaks at least Solaris where it doesn't exist.