Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2010 11:34:27 +0200
From:      Ewald Jenisch <a@jenisch.at>
To:        freebsd-questions@freebsd.org
Subject:   cairo fails to compile
Message-ID:  <20100520093427.GA38143@aurora.oekb.co.at>

next in thread | raw e-mail | index | archive | help
Hi,

After doing a regular cvsup for my ports, followed by "make
fetchindex" and "pkgdb -F", the latter fails with the following errors:

------------------------------ < Cut here > ------------------------------

...
--->  Checking the package registry database
Stale dependency: gobject-introspection-0.6.10 -> cairo-1.8.10_1,1 (graphics/cairo):
Install stale dependency? ([y]es/[n]o/[a]ll) [yes] 
[Gathering depends for graphics/cairo .............
--->  Installing 'cairo-1.8.10_1,1' from a port (graphics/cairo)
--->  Building '/usr/ports/graphics/cairo'
...
/bin/sh /usr/ports/graphics/cairo/work/gnome-libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I..  -I. -I/usr/local/include/pixman-1      -I/usr/local/include/freetype2 -I/usr/local/include   -I/usr/local/include    -I/usr/local/include   -D_THREAD_SAFE -I/usr/local/include   -D_THREAD_SAFE -I/usr/local/include    -O -pipe -MT cairo-png.lo -MD -MP -MF .deps/cairo-png.Tpo -c -o cairo-png.lo cairo-png.c
gnome-libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include -O -pipe -MT cairo-png.lo -MD -MP -MF .deps/cairo-png.Tpo -c cairo-png.c  -fPIC -DPIC -o .libs/cairo-png.o
cairo-png.c:42:17: error: png.h: No such file or directory
cairo-png.c:46: error: expected ')' before 'png'
cairo-png.c:70: error: expected ')' before 'png'
cairo-png.c:92: error: expected ')' before 'png'
cairo-png.c:109: error: expected ')' before 'png'
cairo-png.c:125: error: expected ')' before 'png_ptr'
cairo-png.c:131: error: expected declaration specifiers or '...' before 'png_rw_ptr'
cairo-png.c: In function 'write_png':
cairo-png.c:138: error: 'png_struct' undeclared (first use in this function)
cairo-png.c:138: error: (Each undeclared identifier is reported only once
cairo-png.c:138: error: for each function it appears in.)
cairo-png.c:138: error: 'png' undeclared (first use in this function)
cairo-png.c:139: error: 'png_info' undeclared (first use in this function)
cairo-png.c:139: error: 'info' undeclared (first use in this function)
cairo-png.c:140: error: 'png_byte' undeclared (first use in this function)
cairo-png.c:140: error: expected expression before 'volatile'
cairo-png.c:141: error: 'png_color_16' undeclared (first use in this function)
cairo-png.c:141: error: expected ';' before 'white'
cairo-png.c:160: error: 'rows' undeclared (first use in this function)
cairo-png.c:160: error: expected expression before ')' token
cairo-png.c:167: error: expected expression before ')' token
cairo-png.c:169: error: 'PNG_LIBPNG_VER_STRING' undeclared (first use in this function)
cairo-png.c:170: error: 'png_simple_error_callback' undeclared (first use in this function)
cairo-png.c:171: error: 'png_simple_warning_callback' undeclared (first use in this function)
cairo-png.c:188: error: 'write_func' undeclared (first use in this function)
cairo-png.c:188: error: 'png_simple_output_flush_fn' undeclared (first use in this function)
cairo-png.c:193: error: 'PNG_COLOR_TYPE_RGB_ALPHA' undeclared (first use in this function)
cairo-png.c:197: error: 'PNG_COLOR_TYPE_RGB' undeclared (first use in this function)
cairo-png.c:201: error: 'PNG_COLOR_TYPE_GRAY' undeclared (first use in this function)
cairo-png.c:219: error: 'PNG_INTERLACE_NONE' undeclared (first use in this function)
cairo-png.c:220: error: 'PNG_COMPRESSION_TYPE_DEFAULT' undeclared (first use in this function)
cairo-png.c:221: error: 'PNG_FILTER_TYPE_DEFAULT' undeclared (first use in this function)
cairo-png.c:223: error: 'white' undeclared (first use in this function)
cairo-png.c:228: error: 'png_time' undeclared (first use in this function)
cairo-png.c:228: error: expected ';' before 'pt'
cairo-png.c:230: error: 'pt' undeclared (first use in this function)
cairo-png.c:241: error: 'unpremultiply_data' undeclared (first use in this function)
cairo-png.c:243: error: 'convert_data_to_bytes' undeclared (first use in this function)
cairo-png.c:245: error: 'PNG_FILLER_AFTER' undeclared (first use in this function)
cairo-png.c: At top level:
cairo-png.c:261: error: expected ')' before 'png'
cairo-png.c: In function 'cairo_surface_write_to_png':
cairo-png.c:317: error: 'stdio_write_func' undeclared (first use in this function)
cairo-png.c:317: error: too many arguments to function 'write_png'
cairo-png.c: At top level:
cairo-png.c:331: error: expected ')' before 'png'
cairo-png.c: In function 'cairo_surface_write_to_png_stream':
cairo-png.c:376: error: 'stream_write_func' undeclared (first use in this function)
cairo-png.c:376: error: too many arguments to function 'write_png'
cairo-png.c: At top level:
cairo-png.c:389: error: expected ')' before 'png'
cairo-png.c:420: error: expected ')' before 'png'
cairo-png.c:437: error: expected ')' before 'read_func'
cairo-png.c:601: error: expected ')' before 'png'
cairo-png.c: In function 'cairo_image_surface_create_from_png':
cairo-png.c:662: error: 'stdio_read_func' undeclared (first use in this function)
cairo-png.c:662: warning: assignment makes pointer from integer without a cast
cairo-png.c: At top level:
cairo-png.c:675: error: expected ')' before 'png'
cairo-png.c: In function 'cairo_image_surface_create_from_png_stream':
cairo-png.c:720: error: 'stream_read_func' undeclared (first use in this function)
cairo-png.c:720: warning: return makes pointer from integer without a cast
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.8.10/src.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.8.10/src.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.8.10.
*** Error code 1

Stop in /usr/ports/graphics/cairo/work/cairo-1.8.10.
*** Error code 1

Stop in /usr/ports/graphics/cairo.
*** Error code 1

Stop in /usr/ports/graphics/cairo.


------------------------------ < Cut here > ------------------------------

When I do a "pkgdb -F" afterwards the dependencies are simply deleted:

# pkgdb -F
--->  Checking the package registry database
Stale dependency: gobject-introspection-0.6.10 -> cairo-1.8.10_1,1 ():
-> Deleted. (irrelevant)
Stale dependency: pango-1.28.0 -> cairo-1.8.10_1,1 ():
-> Deleted. (irrelevant)
#

next time through nothing is to be done

# pkgdb -F
--->  Checking the package registry database
#

However when I do a "pkgdb -L" afterwards to rebuild dependencies
guess what happens - cairo-dependencies are re-established:

# pkgdb -L
...
make-3.81_3: ok
gobject-introspection-0.6.10: found
  graphics/cairo
-> Fixed.
gperf-3.0.3: ok
...
pango-1.28.0: found
  graphics/cairo
-> Fixed.
.
.
.

When I then run pkgdb -F the whole cycle starts all over again.

BTW, it's not only about portupgrading - when I try to compile, say
firefox3 it also dependes on cairo so I end up with the same error:

So how can I upgrade cairo with dependencies being straight?

Thanks much in advance for any clue,
-ewald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100520093427.GA38143>