From owner-freebsd-questions@FreeBSD.ORG Thu May 20 10:04:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C656D1065677 for ; Thu, 20 May 2010 10:04:30 +0000 (UTC) (envelope-from prvs=749c61aec=a@jenisch.at) Received: from mgaterz1.oekb.co.at (mgaterz1.oekb.co.at [143.245.5.111]) by mx1.freebsd.org (Postfix) with ESMTP id F16758FC22 for ; Thu, 20 May 2010 10:04:29 +0000 (UTC) Received: from exchh1.oekb.co.at ([143.245.3.20]) by mgaterz1.oekb.co.at with ESMTP; 20 May 2010 11:34:27 +0200 Received: from aurora.oekb.co.at (143.245.9.16) by exchh1.oekb.co.at (143.245.3.60) with Microsoft SMTP Server id 8.2.234.1; Thu, 20 May 2010 11:34:27 +0200 Received: from aurora.oekb.co.at (localhost [127.0.0.1]) by aurora.oekb.co.at (8.14.4/8.14.4) with ESMTP id o4K9YR24017210 for ; Thu, 20 May 2010 11:34:27 +0200 (CEST) (envelope-from a@jenisch.at) Received: (from ej@localhost) by aurora.oekb.co.at (8.14.4/8.14.4/Submit) id o4K9YRTH017208 for freebsd-questions@freebsd.org; Thu, 20 May 2010 11:34:27 +0200 (CEST) (envelope-from a@jenisch.at) X-Authentication-Warning: aurora.oekb.co.at: ej set sender to a@jenisch.at using -f Date: Thu, 20 May 2010 11:34:27 +0200 From: Ewald Jenisch To: freebsd-questions@freebsd.org Message-ID: <20100520093427.GA38143@aurora.oekb.co.at> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: cairo fails to compile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 10:04:30 -0000 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