NetBSD Problem Report #46022

From www@NetBSD.org  Tue Feb 14 17:45:30 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 50F0E63DE68
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 14 Feb 2012 17:45:30 +0000 (UTC)
Message-Id: <20120214174529.52EDA63DE5A@www.NetBSD.org>
Date: Tue, 14 Feb 2012 17:45:29 +0000 (UTC)
From: aline@alinefreitas.com.br
Reply-To: aline@alinefreitas.com.br
To: gnats-bugs@NetBSD.org
Subject: awesome/wm compilation failure on Linux 3.2
X-Send-Pr-Version: www-1.0

>Number:         46022
>Category:       pkg
>Synopsis:       awesome/wm compilation failure on Linux 3.2
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 17:50:00 +0000 2012
>Last-Modified:  Sat Feb 18 12:25:02 +0000 2012
>Originator:     Aline Freitas
>Release:        Linux 3.2.5-1-ARCH; pkgsrc-2011Q4
>Organization:
>Environment:
Linux luiza-mouraria 3.2.5-1-ARCH #1 SMP PREEMPT Tue Feb 7 08:34:36 CET 2012 x86_64 AMD Athlon(tm) II Dual-Core M300 AuthenticAMD GNU/Linux
>Description:
While building wm/awesome I've got this error:

gcc  -O2 -Wno-error -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2  -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o awesome common/socket.o common/swindow.o  common/version.o common/util.o  common/xutil.o common/configopts.o  common/xscreen.o client.o titlebar.o  placement.o focus.o common/draw.o  event.o layout.o awesome.o  tag.o config.o screen.o  statusbar.o uicb.o window.o  rules.o mouse.o widget.o  ewmh.o layouts/tile.o layouts/floating.o  layouts/max.o layouts/fibonacci.o widgets/taglist.o widgets/layoutinfo.o  widgets/textbox.o widgets/iconbox.o  widgets/focusicon.o widgets/progressbar.o  widgets/tasklist.o widgets/graph.o  widgets/emptybox.o widgets/common.o  -Wl,-R/usr/pkg/lib -pthread -L/usr/pkg/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lconfuse -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lXrandr -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lXinerama  -Wl,-R/usr/p
 kg/lib -L/usr/pkg/lib -lImlib2 
/usr/bin/ld: awesome.o: undefined reference to symbol 'XShapeQueryExtension'
/usr/bin/ld: note: 'XShapeQueryExtension' is defined in DSO /usr/pkg/lib/libXext.so.6 so try adding it to the linker command line
/usr/pkg/lib/libXext.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
*** Error code 1

Stop.

>How-To-Repeat:
Just attempt to build the package:

$ cd /usr/pkgsrc/wm/awesome/
$ sudo bmake install

>Fix:
As a workaround I've made this patch which add libXext missing in the message above and libX11 for the subsequent errors that would come.

--- Makefile.in 2012-02-14 09:45:06.332348153 -0200
+++ Makefile.in 2012-02-14 09:45:11.362347598 -0200
@@ -329,7 +329,7 @@
    screen.h statusbar.c statusbar.h uicb.c uicb.h window.c \
    window.h rules.c rules.h mouse.c mouse.h widget.c widget.h \
    ewmh.c ewmh.h $(LAYOUTS) $(WIDGETS)
-awesome_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xrandr_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS)
+awesome_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xrandr_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS) -lXext -lX11
 awesome_client_SOURCES = \
    awesome-client.c \
    common/socket.c common/socket.h \
@@ -345,7 +345,7 @@
    common/xscreen.h common/xscreen.c \
    awesome-message.c

-awesome_message_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS)
+awesome_message_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS) -lX11
 awesome_menu_SOURCES = \
         common/swindow.c common/swindow.h \
         common/draw.c common/draw.h \
@@ -355,7 +355,7 @@
    common/xutil.h common/xutil.c \
    awesome-menu.c

-awesome_menu_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS)
+awesome_menu_LDADD = $(X_LIBS) $(pangocairo_LIBS) $(confuse_LIBS) $(xinerama_LIBS) $(GTK_LIBS) $(imlib2_LIBS) -lX11
 all: $(BUILT_SOURCES)
    $(MAKE) $(AM_MAKEFLAGS) all-am

>Audit-Trail:
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/46022: awesome/wm compilation failure on Linux 3.2
Date: Sat, 18 Feb 2012 21:24:21 +0900

 I feel this issue will be happened with binutils-2.22, same as dragonfly-master.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.