Bug 9944

Summary: Problem compiling libxcb 1.0
Product: XCB Reporter: Pierre <pierre42d>
Component: MiscAssignee: Jamey Sharp <jamey>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 1.0   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Pierre 2007-02-10 18:54:59 UTC
# make
Making all in src
make[1]: Entering directory `/tmp/libxcb-1.0/src'
make  all-am
make[2]: Entering directory `/tmp/libxcb-1.0/src'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.    -Wall -pedantic -Wpointer-arith                -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -I/usr/local/include   -I/usr/local/include   -s -O3 -march=i686 -MT xcb_util.lo -MD -MP -MF ".deps/xcb_util.Tpo" -c -o xcb_util.lo xcb_util.c; \
then mv -f ".deps/xcb_util.Tpo" ".deps/xcb_util.Plo"; else rm -f ".deps/xcb_util.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I. -Wall -pedantic -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations -Wnested-externs -I/usr/local/include -I/usr/local/include -s -O3 -march=i686 -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:183: error: `AI_ADDRCONFIG' undeclared (first use in this function)
xcb_util.c:183: error: (Each undeclared identifier is reported only once
xcb_util.c:183: error: for each function it appears in.)
xcb_util.c:183: warning: initializer element is not computable at load time
make[2]: *** [xcb_util.lo] Error 1
make[2]: Leaving directory `/tmp/libxcb-1.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/libxcb-1.0/src'
make: *** [all-recursive] Error 1
Comment 1 Jamey Sharp 2007-02-13 10:40:57 UTC
I don't believe you when you selected "Linux" as your OS. Are you sure you aren't using NetBSD? :-)

I believe you'll find we fixed this bug in git shortly after releasing XCB 1.0. Would you try applying this patch and let us know if it fixes your problem?

http://gitweb.freedesktop.org/?p=xcb/libxcb.git;a=commitdiff_plain;h=3360d0c79e98cf6b7f30b2d84f117aea0a28595d
Comment 2 Josh Triplett 2007-11-04 11:56:35 UTC
Marking as NEEDINFO
Comment 3 Tom 2007-11-04 12:04:19 UTC
see 

http://lists.freedesktop.org/archives/xcb/2006-November/002417.html 

and

commit 3360d0c79e98cf6b7f30b2d84f117aea0a28595d
Author: Jamey Sharp <jamey@minilop.net>
Date:   Fri Nov 24 13:24:05 2006 -0800

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.