From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Feb 27 17:20:00 2014 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 ESMTPS id 888E0EC1 for ; Thu, 27 Feb 2014 17:20:00 +0000 (UTC) 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 6341B1DB7 for ; Thu, 27 Feb 2014 17:20:00 +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 s1RHK0AB037080 for ; Thu, 27 Feb 2014 17:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1RHK0iX037079; Thu, 27 Feb 2014 17:20:00 GMT (envelope-from gnats) Resent-Date: Thu, 27 Feb 2014 17:20:00 GMT Resent-Message-Id: <201402271720.s1RHK0iX037079@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, Jean-Sébastien Pédron Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03147B26 for ; Thu, 27 Feb 2014 17:10:11 +0000 (UTC) Received: from newred.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E3EBA1D22 for ; Thu, 27 Feb 2014 17:10:10 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s1RHAATP004122 for ; Thu, 27 Feb 2014 17:10:10 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s1RHAAAn004121; Thu, 27 Feb 2014 17:10:10 GMT (envelope-from nobody) Message-Id: <201402271710.s1RHAAAn004121@cgiserv.freebsd.org> Date: Thu, 27 Feb 2014 17:10:10 GMT From: Jean-Sébastien Pédron To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187117: [PATCH] irc/unrealircd: server crash when built with clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 17:20:00 -0000 >Number: 187117 >Category: ports >Synopsis: [PATCH] irc/unrealircd: server crash when built with clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 27 17:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Jean-Sébastien Pédron >Release: 10.0-RELEASE >Organization: The FreeBSD Project >Environment: FreeBSD ns220664.ip-188-165-245.eu 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When built with clang, UnrealIRCd fails to start. Here's the bug report open upstream: http://bugs.unrealircd.org/view.php?id=4239 This bug report proposes a fix to version 3.2.10.1. Based on that, Christopher Faulet prepared an updated patch to irc/unreal 3.2.10.2 port. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: irc/unreal/files/patch-configure =================================================================== --- irc/unreal/files/patch-configure (revision 0) +++ irc/unreal/files/patch-configure (working copy) @@ -0,0 +1,20 @@ +--- configure 2014-02-27 14:03:45.132445608 +0100 ++++ configure 2014-02-27 14:03:05.502448091 +0100 +@@ -6356,7 +6356,7 @@ + + + hold_cflags=$CFLAGS +-CFLAGS="$CFLAGS -export-dynamic" ++CFLAGS="$CFLAGS -Wl,-export-dynamic" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5 + $as_echo_n "checking if we need the -export-dynamic flag... " >&6; } + if ${ac_cv_export_dynamic+:} false; then : +@@ -6395,7 +6395,7 @@ + else + + if test "$ac_cv_c_compiler_gnu" = "yes"; then +- ac_cv_pic="-fPIC -DPIC -shared" ++ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared" + case `uname -s` in + Darwin*) + ac_cv_pic="-bundle -flat_namespace -undefined suppress" Property changes on: irc/unreal/files/patch-configure ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: irc/unreal/files/patch-configure.ac =================================================================== --- irc/unreal/files/patch-configure.ac (revision 0) +++ irc/unreal/files/patch-configure.ac (working copy) @@ -0,0 +1,20 @@ +--- configure.ac 2013-11-24 20:24:26.000000000 +0100 ++++ configure.ac 2014-02-27 14:02:58.916469490 +0100 +@@ -107,7 +107,7 @@ + ])]) + + hold_cflags=$CFLAGS +-CFLAGS="$CFLAGS -export-dynamic" ++CFLAGS="$CFLAGS -Wl,-export-dynamic" + AC_CACHE_CHECK(if we need the -export-dynamic flag, ac_cv_export_dynamic, [ + AC_TRY_LINK(, [int i];, ac_cv_export_dynamic=yes, ac_cv_export_dynamic=no)]) + if test "$ac_cv_export_dynamic" = "no"; then +@@ -116,7 +116,7 @@ + + AC_CACHE_CHECK(for compiler option to produce PIC,ac_cv_pic,[ + if test "$ac_cv_prog_gcc" = "yes"; then +- ac_cv_pic="-fPIC -DPIC -shared" ++ ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared" + case `uname -s` in + Darwin*[)] + ac_cv_pic="-bundle -flat_namespace -undefined suppress" Property changes on: irc/unreal/files/patch-configure.ac ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property >Release-Note: >Audit-Trail: >Unformatted: