From cmt@squirrel.exwg.net  Fri Dec 20 20:16:18 2013
Return-Path: <cmt@squirrel.exwg.net>
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 7AAC9686
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2013 20:16:18 +0000 (UTC)
Received: from smtp.burggraben.net (base.exwg.net [IPv6:2a01:4f8:140:50a2::2])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 37CE816B8
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2013 20:16:18 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.burggraben.net (Postfix) with ESMTP id 4ECDE600089
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2013 21:16:14 +0100 (CET)
Received: from smtp.burggraben.net ([127.0.0.1])
	by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 38l-vCe1sD5F for <FreeBSD-gnats-submit@freebsd.org>;
	Fri, 20 Dec 2013 21:16:09 +0100 (CET)
Received: from squirrel.exwg.net (squirrel.exwg.net [IPv6:2001:470:7b43:2:8ea9:82ff:fe9e:6dc6])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "squirrel.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK))
	by smtp.burggraben.net (Postfix) with ESMTPS
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2013 21:16:09 +0100 (CET)
Received: by squirrel.exwg.net (Postfix, from userid 1000)
	id 2F13E61F87; Fri, 20 Dec 2013 21:16:08 +0100 (CET)
Message-Id: <20131220201608.2F13E61F87@squirrel.exwg.net>
Date: Fri, 20 Dec 2013 21:16:08 +0100 (CET)
From: Christoph Moench-Tegeder <cmt@burggraben.net>
Reply-To: Christoph Moench-Tegeder <cmt@burggraben.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/w3m : linking fails
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         185045
>Category:       ports
>Synopsis:       www/w3m : linking fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    nobutaka
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 20:20:00 UTC 2013
>Closed-Date:    Tue Jan 14 14:36:18 UTC 2014
>Last-Modified:  Tue Jan 14 14:36:18 UTC 2014
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 10.0-RC2 amd64
>Organization:
>Environment:
System: FreeBSD squirrel.exwg.net 10.0-RC2 FreeBSD 10.0-RC2 #0 r259645: Fri Dec 20 15:19:27 CET 2013 cmt@squirrel.exwg.net:/usr/obj/usr/src/sys/T520 amd64

www/w3m          w3m-0.5.3_2
===> The following configuration options are available for w3m-0.5.3_2:
     DOCS=on: Build and/or install documentation
     INLINE_IMAGE=on: Inline image support
     JAPANESE=off: Japanese messages and migemo support
     KEY_LYNX=off: Keymap like lynx browser
===> Use 'make config' to modify these settings


>Description:
The build fails with
/usr/bin/ld: l: invalid DSO for symbol `XGetWindowAttributes' definition
/usr/local/lib/libX11.so.6: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Accorrding to objdump, libX11.so.6 contains XGetWindowAttributes.

>How-To-Repeat:

>Fix:
Pass -lX11 to the compiler (that requires the -L):

Index: Makefile
===================================================================
--- Makefile	(revision 337087)
+++ Makefile	(working copy)
@@ -67,7 +67,7 @@
 CONFIGURE_ARGS+=	--enable-keymap=lynx
 .endif
 
-CONFIGURE_ENV=	DEFS="-I${LOCALBASE}/include"
+CONFIGURE_ENV=	DEFS="-I${LOCALBASE}/include" LDFLAGS="-L/usr/local/lib" LIBS="-lX11"
 
 post-patch:
 	@${REINPLACE_CMD} -e \


Regards,
Christoph
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->nobutaka 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Dec 20 20:20:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185045 

From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/185045: www/w3m : linking fails
Date: Mon, 6 Jan 2014 17:51:47 +0100

 Hi,
 
 the problem "went away" - either this was a local issue or some other
 change fixed it, but I just cannot reproduce it. I think this PR
 might be closed. Sorry for the noise.
 
 Regards,
 Christoph
 
 -- 
 Spare Space

From: Christoph Moench-Tegeder <cmt@burggraben.net>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/185045: www/w3m : linking fails
Date: Mon, 6 Jan 2014 17:51:47 +0100

 Hi,
 
 the problem "went away" - either this was a local issue or some other
 change fixed it, but I just cannot reproduce it. I think this PR
 might be closed. Sorry for the noise.
 
 Regards,
 Christoph
 
 -- 
 Spare Space
State-Changed-From-To: open->closed 
State-Changed-By: nobutaka 
State-Changed-When: Tue Jan 14 14:35:45 UTC 2014 
State-Changed-Why:  
Closed by submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=185045 
>Unformatted:
