Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2013 21:16:08 +0100 (CET)
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185045: www/w3m : linking fails
Message-ID:  <20131220201608.2F13E61F87@squirrel.exwg.net>
Resent-Message-ID: <201312202020.rBKKK0bt038875@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185045
>Category:       ports
>Synopsis:       www/w3m : linking fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 20:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131220201608.2F13E61F87>