From owner-freebsd-ports-bugs@FreeBSD.ORG Wed May 23 18:00:09 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A93716A4E2 for ; Wed, 23 May 2007 18:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0F20F13C45B for ; Wed, 23 May 2007 18:00:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4NI08hN030338 for ; Wed, 23 May 2007 18:00:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4NI08H9030337; Wed, 23 May 2007 18:00:08 GMT (envelope-from gnats) Resent-Date: Wed, 23 May 2007 18:00:08 GMT Resent-Message-Id: <200705231800.l4NI08H9030337@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, Hyogeol Lee Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA57516A400 for ; Wed, 23 May 2007 17:50:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id C9E8113C45A for ; Wed, 23 May 2007 17:50:19 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4NHoJbN057962 for ; Wed, 23 May 2007 17:50:19 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l4NHjH5E057477; Wed, 23 May 2007 17:45:17 GMT (envelope-from nobody) Message-Id: <200705231745.l4NHjH5E057477@www.freebsd.org> Date: Wed, 23 May 2007 17:45:17 GMT From: Hyogeol Lee To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/112897: x11-wm/windowmaker build broken with NDEBUG option X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2007 18:00:09 -0000 >Number: 112897 >Category: ports >Synopsis: x11-wm/windowmaker build broken with NDEBUG option >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: Wed May 23 18:00:08 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Hyogeol Lee >Release: -current 7.0 >Organization: >Environment: FreeBSD localhost.localdomain 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun May 20 01:18:43 KST 2007 root@localhost.localdomain:/usr/obj/usr/src/sys/EZ8KERNEL amd64 >Description: Not serious problem, just linking error with NDEBUG option. Error message is below. cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -march=athlon64 -o connect connect.o -L/usr/local/lib ../../WINGs/libWUtil.a /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib ./../WINGs/libWUtil.a(string.o)(.text+0x10): In function `wstrdup': : undefined reference to `assert' ./../WINGs/libWUtil.a(string.o)(.text+0x179): In function `wstrndup': : undefined reference to `assert' >How-To-Repeat: Build x11-wm/windowmaker with NDEBUG option. >Fix: I attached patch file. Patch attached with submission follows: --- WINGs/WINGs/WUtil.h.orig Thu May 24 02:16:36 2007 +++ WINGs/WINGs/WUtil.h Thu May 24 02:16:55 2007 @@ -34,6 +34,10 @@ #define wassertr(expr) {} #define wassertrv(expr, val) {} +#ifndef assert +#define assert(e) {} +#endif + #else /* !NDEBUG */ #ifdef DEBUG >Release-Note: >Audit-Trail: >Unformatted: