ports/185045: www/w3m : linking fails
Christoph Moench-Tegeder
cmt at burggraben.net
Fri Dec 20 20:20:01 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list