From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Oct 21 12:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8CDA9B53 for ; Mon, 21 Oct 2013 12:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6ADE32439 for ; Mon, 21 Oct 2013 12:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9LCK1QB040090 for ; Mon, 21 Oct 2013 12:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9LCK1rj040089; Mon, 21 Oct 2013 12:20:01 GMT (envelope-from gnats) Resent-Date: Mon, 21 Oct 2013 12:20:01 GMT Resent-Message-Id: <201310211220.r9LCK1rj040089@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Fromme Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E87C5AE0 for ; Mon, 21 Oct 2013 12:15:02 +0000 (UTC) (envelope-from olli@grabthar.secnetix.de) Received: from grabthar.secnetix.de (grabthar.secnetix.de [IPv6:2a01:170:102f::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E6F82403 for ; Mon, 21 Oct 2013 12:15:02 +0000 (UTC) Received: from grabthar.secnetix.de (localhost [127.0.0.1]) by grabthar.secnetix.de (8.14.7/8.14.7) with ESMTP id r9LCEwLm061787; Mon, 21 Oct 2013 14:14:59 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by grabthar.secnetix.de (8.14.7/8.14.7/Submit) id r9LCEw8d061786; Mon, 21 Oct 2013 14:14:58 +0200 (CEST) (envelope-from olli) Message-Id: <201310211214.r9LCEw8d061786@grabthar.secnetix.de> Date: Mon, 21 Oct 2013 14:14:58 +0200 (CEST) From: Oliver Fromme To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/183156: [patch] www/w3m: fix to work with updated boehm-gc port Cc: Oliver Fromme X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Oliver Fromme List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Oct 2013 12:20:01 -0000 >Number: 183156 >Category: ports >Synopsis: [patch] www/w3m: fix to work with updated boehm-gc port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 21 12:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Oliver Fromme >Release: FreeBSD 9.1-STABLE-20130621 i386 >Organization: secnetix GmbH & Co. KG http://www.secnetix.de/bsd >Environment: System: FreeBSD grabthar.secnetix.de 9.1-STABLE-20130621 FreeBSD 9.1-STABLE-20130621 #0: Fri Jun 21 18:42:21 CEST 2013 olli@grabthar.secnetix.de:/usr/obj/usr/src/sys/GRABTHAR i386 >Description: With the recend update of devel/boehm-gc, www/w3m does not compile anymore. The reason is that the API of boehm-gc has changed slightly: Previously, the GC_set_warn_proc() function returned the old value. Now it doesn't do that anymore, instead it returns void, and you have to use the new GC_get_warn_proc() function to retrieve the old value. This API change breaks w3m. >How-To-Repeat: Make sure you have the updated version of devel/boehm-gc (7.2d), then try to build w3m. You'll get this error: cc -I. -I. -O2 -pipe -march=athlon-mp -fno-strict-aliasing -I./libwc -I/usr/include/openssl -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/local/libexec/w3m\" -DCGIBIN_DIR=\"/usr/local/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/local/share/w3m\" -DETC_DIR=\"/usr/local/etc\" -DCONF_DIR=\"/usr/local/etc/w3m\" -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/local/share/locale\" -c main.c main.c: In function 'main': main.c:836: error: void value not ignored as it ought to be The patch below fixes that. >Fix: --- main.c.orig 2011-01-04 10:42:19.000000000 +0100 +++ main.c 2013-10-21 13:43:11.000000000 +0200 @@ -833,7 +833,8 @@ mySignal(SIGPIPE, SigPipe); #endif - orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc); + orig_GC_warn_proc = GC_get_warn_proc(); + GC_set_warn_proc(wrap_GC_warn_proc); err_msg = Strnew(); if (load_argc == 0) { /* no URL specified */ >Release-Note: >Audit-Trail: >Unformatted: