pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46022: awesome/wm compilation failure on Linux 3.2



>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
>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



Home | Main Index | Thread Index | Old Index