Subject: misc/32335: Unable to build cairo
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <bkelly@coastsystems.net>
List: netbsd-bugs
Date: 12/19/2005 06:00:00
>Number:         32335
>Category:       misc
>Synopsis:       Unable to build cairo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 19 06:00:00 +0000 2005
>Originator:     Boyd Kelly
>Release:        pkgsrc CVS on Interix3
>Organization:
>Environment:
bash-3.00$ uname -a
Interix media 3.5 SP-8.0.1969.32 x86 Pentium III/Celeron (rev0x0803)
bash-3.00$
>Description:
Building cairo on Interix terminates with error:


if /bin/sh ../../libtool --tag=CC --mode=compile gcc -D_ALL_SOURCE -DHAVE_CONFIG
_H  -I. -I. -I../.. -I../.. -I.   -I/usr/pkg/include -I/usr/pkg/include/freetype
2 -DGLX_GLXEXT_LEGACY -I/usr/include   -O -I/usr/pkg/include -I/usr/pkg/include/
freetype2 -DGLX_GLXEXT_LEGACY -I/usr/include -MT pixregion.lo -MD -MP -MF ".deps
/pixregion.Tpo" -c -o pixregion.lo pixregion.c;  then mv -f ".deps/pixregion.Tpo
" ".deps/pixregion.Plo"; else rm -f ".deps/pixregion.Tpo"; exit 1; fi
mkdir .libs
 gcc -D_ALL_SOURCE -DHAVE_CONFIG_H -I. -I../.. -I/usr/pkgsrc/graphics/cairo/work
/.buildlink/include -I/usr/pkgsrc/graphics/cairo/work/.buildlink/include/freetyp
e2 -DGLX_GLXEXT_LEGACY -O -MT pixregion.lo -MD -MP -MF .deps/pixregion.Tpo -c pi
xregion.c  -DPIC -o .libs/pixregion.o
In file included from pixregionint.h:52,
                 from pixregion.c:53:
pixman.h:98:21: stdint.h: No such file or directory
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo/work/cairo-1.0.2/pixman/src
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo/work/cairo-1.0.2/pixman
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo/work/cairo-1.0.2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo/work/cairo-1.0.2
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/graphics/cairo

I have then copied the file as follows:

bash-3.00$ pwd
/usr/pkgsrc/graphics/cairo/work/cairo-1.0.2/pixman/src
bash-3.00$ cp /usr/pkg/include/stdint.h .
bash-3.00$

However build then fails with:

../pixman/src/stdint.h:83: warning: redefinition of `int64_t'
/usr/include/sys/types.h:167: warning: `int64_t' previously declared here
In file included from cairoint.h:180,
                 from cairo.c:38:
cairo-wideint.h:60:2: #error Cannot find definitions for fixed-width integral ty
pes (uint8_t, uint32_t, etc.)
*** Error code 1

Stop.




>How-To-Repeat:
cd /usr/pkgsrc/graphics/cairo
bmake install


>Fix:
Only partial fix...

bash-3.00$ pwd
/usr/pkgsrc/graphics/cairo/work/cairo-1.0.2/pixman/src
bash-3.00$ cp /usr/pkg/include/stdint.h .
bash-3.00$

But build still fails with:

../pixman/src/stdint.h:83: warning: redefinition of `int64_t'
/usr/include/sys/types.h:167: warning: `int64_t' previously declared here
In file included from cairoint.h:180,
                 from cairo.c:38:
cairo-wideint.h:60:2: #error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)
*** Error code 1

Stop.