bbidulock / blackboxwm

A window manager for X11
Other
169 stars 30 forks source link

fails to compile #43

Closed zaharazod closed 8 months ago

zaharazod commented 2 years ago

First issue: after ./configure --enable-shared && make:

Making all in po
make[2]: Entering directory '/media/ubuntu/home/matt/hack/deb/tmp/blackboxwm/po'
Makefile:604: *** missing separator.  Stop.
make[2]: Leaving directory '/media/ubuntu/home/matt/hack/deb/tmp/blackboxwm/po'
make[1]: *** [Makefile:478: all-recursive] Error 1
make[1]: Leaving directory '/media/ubuntu/home/matt/hack/deb/tmp/blackboxwm'
make: *** [Makefile:408: all] Error 2

After fixing po/Makefile manually, we get this error:

  CXXLD    blackbox
/usr/bin/ld: Window.o: undefined reference to symbol 'XShapeCombineShape'
/usr/bin/ld: /lib/x86_64-linux-gnu/libXext.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

The relevant command turns out to be:

libtool: link: g++ -g -O2 -ffile-prefix-map=/build/blackbox-0.77=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/blackbox BlackboxResource.o Clientmenu.o Configmenu.o Iconmenu.o Rootmenu.o Screen.o ScreenResource.o Slit.o Slitmenu.o StackingList.o Toolbar.o Toolbarmenu.o Window.o WindowGroup.o Windowmenu.o Workspace.o Workspacemenu.o blackbox.o main.o  ../lib/.libs/libbt.so
/usr/bin/ld: Window.o: undefined reference to symbol 'XShapeCombineShape'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libXext.so.6: error adding symbols: DSO missing from command line

If I run that along with "-lX11 -LXext" compilation works (I'm no autotools guru though..)

zaharazod commented 2 years ago

This will bypass the issue and compile successfully: export LDFLAGS="-Wl,--copy-dt-needed-entries"