Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190958 - x11-libs/libxcb-1.0 fails to build on i686-pc-linux-uclibc because AI_ADDRCONFIG is not defined
Summary: x11-libs/libxcb-1.0 fails to build on i686-pc-linux-uclibc because AI_ADDRCON...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2007-09-01 11:21 UTC by Dan Casimiro
Modified: 2007-10-14 06:39 UTC (History)
0 users

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


Attachments
Patch from upstream that fixes the problem (1.0-no-ai_addrconfig.patch,531 bytes, patch)
2007-09-01 11:25 UTC, Dan Casimiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Casimiro 2007-09-01 11:21:38 UTC
The source references a compiler definition (AI_ADDRCONFIG) that is not defined in uclibc. There is a patch already in upstream git that should be applied from the ebuild.

Reproducible: Always

Steps to Reproduce:
1. Emerge libxcb-1.0 onto an uclibc system (i686-pc-linux-uclibc)
2.
3.

Actual Results:  
Compilation error:

i686-pc-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -Wall -pedantic -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -O2 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer -MT xcb_util.lo -MD -MP -MF .deps/xcb_util.Tpo -c xcb_util.c  -fPIC -DPIC -o .libs/xcb_util.o
xcb_util.c: In function '_xcb_open_tcp':
xcb_util.c:179: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
xcb_util.c:179: error: (Each undeclared identifier is reported only once
xcb_util.c:179: error: for each function it appears in.)
make[2]: *** [xcb_util.lo] Error 1
make[2]: *** Waiting for unfinished jobs....


Expected Results:  
The compilation should succeed.

Here is a link to the upstream commit:

http://gitweb.freedesktop.org/?p=users/cloos/libxcb.git;a=commit;h=3360d0c79e98cf6b7f30b2d84f117aea0a28595d
Comment 1 Dan Casimiro 2007-09-01 11:25:39 UTC
Created attachment 129759 [details, diff]
Patch from upstream that fixes the problem

http://gitweb.freedesktop.org/?p=users/cloos/libxcb.git;a=commit;h=3360d0c79e98cf6b7f30b2d84f117aea0a28595d
Comment 2 Dan Casimiro 2007-09-01 11:27:16 UTC
I added

PATCHES="${FILESDIR}/${PV}-no-ai_addrconfig.patch"

to the ebuild and the package merged without incident.
The referenced patch file is the one that I uploaded.
Comment 3 solar (RETIRED) gentoo-dev 2007-09-01 14:40:33 UTC
No need to keep this assigned to embedded when the maintainer is the one who maintains the pkg. 
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-14 06:39:04 UTC
That isn't upstream git, that's jcloos's personal repository. It needs to get in real git upstream, which is http://gitweb.freedesktop.org/?p=xcb.git;a=summary -- please file a bug in XCB product, Library component at bugs.freedesktop.org and post the URL here.