Subject: pkg/20089: soup fails to compile
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dhop@nwlink.com>
List: netbsd-bugs
Date: 01/27/2003 19:03:56
>Number:         20089
>Category:       pkg
>Synopsis:       soup fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 27 19:05:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     David Hopper
>Release:        NetBSD 1.6M
>Organization:
	
>Environment:
	
	
System: NetBSD scarab 1.6M NetBSD 1.6M (ALPHA-$Revision: 1.127.2.4 $) #5: Sat Jan 25 01:14:53 UTC 2003 bard@scarab:/steel/src/sys/arch/alpha/compile/SCARAB alpha
Architecture: alpha
Machine: alpha
>Description:
	Soup (called from gnome-core) fails on Alpha with:

	cc -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"SOUP\" -DSYSCONFDIR=\"/usr/pkg/etc\" -DBINDIR=\"/usr/pkg/bin\" -I../../src -I/steel/pkgsrc/net/soup/work.alpha/.buildlink/include/glib/glib-1.2 -I/steel/pkgsrc/net/soup/work.alpha/.buildlink/lib/glib/include -I/steel/pkgsrc/net/soup/work.alpha/.buildlink/include/gnome-xml -I/steel/pkgsrc/net/soup/work.alpha/.buildlink-x11/include/gnome-1.0 -I/steel/pkgsrc/net/soup/work.alpha/.buildlink-x11/include/gdk-pixbuf-1.0 -I/steel/pkgsrc/net/soup/work.alpha/.buildlink/include -I/steel/pkgsrc/net/soup/work.alpha/.buildlink-x11/include -O2 -mcpu=21164a -Wa,-m21164a -mmemory-latency=3 -fsched-interblock -fsched-spec -fsched-spec-load -fbranch-count-reg -pipe -mieee -I/steel/pkgsrc/net/soup/work.alpha/.buildlink/include -I/steel/pkgsrc/net/soup/work.alpha/.buildlink-x11/include -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -D_REENTRANT -c soup-message.c  -fPIC -DPIC -o .libs/soup-!
message.o
	In file included from soup-message.c:16:
	soup-private.h:34: warning: function declaration isn't a prototype
	soup-message.c:1010: initializer element is not computable at load time
	soup-message.c:1010: (near initialization for `global_handlers[0].data.errorcode')
	*** Error code 1

The culprit-->
	static SoupHandlerData global_handlers [] = {
	/* 
	 * Handle redirect response codes 300, 301, 302, 303, and 305.
	 */
	{
		SOUP_HANDLER_PRE_BODY,
		redirect_handler, 
		NULL, 
		RESPONSE_HEADER_HANDLER, 
-->		{ (guint) "Location" }
	},


>How-To-Repeat:
	
>Fix:
	Replace { (guint) "Location" } with NULL (obviously not optimal...)

>Release-Note:
>Audit-Trail:
>Unformatted: