On 12 November 2011 09:35, pmarin <[email protected]> wrote: > Im trying to create static linked executables for dwm and demu but Im > still having problems. > I have followed this post[1] but Im having the following errors (with > dwm)[2]. > Have someone had better luck? How is the confing.mk? > Im using Ubuntu 8.04 with dwm-5.9 > > [1] > http://blog.plenz.com/2011-08/statically-linking-dwm-against-x11-and-xcb.html > > [2] > dwm build options: > CFLAGS = -static -std=c99 -pedantic -Wall -Os -I. -I/usr/include > -I/usr/X11R6/include -DVERSION="5.9" > LDFLAGS = -s -L/usr/lib -L/usr/X11R6/lib -static -lX11 -lxcb -lXau > -lXext -lXdmcp -lpthread -ldl > CC = cc > CC -o dwm > /usr/lib/libX11.a(CrGlCur.o): In function `open_library': > (.text+0x3b): warning: Using 'dlopen' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/libxcb.a(xcb_util.o): In function `_xcb_open': > (.text+0x331): warning: Using 'getaddrinfo' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketUNIXConnect': > (.text+0xd86): warning: Using 'gethostbyname' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect': > (.text+0x191d): warning: Using 'getservbyname' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking > /usr/lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer': > (.text+0xdd): undefined reference to `xcb_get_request_sent' > /usr/lib/libX11.a(xcb_lock.o): In function `_XPutXCBBuffer': > (.text+0x30e): undefined reference to `xcb_get_request_sent' > /usr/lib/libX11.a(xcb_lock.o): In function `_XGetXCBBuffer': > (.text+0x568): undefined reference to `xcb_get_request_sent' > /usr/lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay': > (.text+0x6ad): undefined reference to `xcb_xlib_unlock' > /usr/lib/libX11.a(xcb_lock.o): In function `_XCBUnlockDisplay': > (.text+0x6e0): undefined reference to `xcb_get_request_sent' > /usr/lib/libX11.a(xcb_lock.o): In function `_XCBLockDisplay': > (.text+0x78d): undefined reference to `xcb_xlib_lock' > /usr/lib/libX11.a(xcb_io.o): In function `process_responses': > (.text+0x519): undefined reference to `xcb_xlib_unlock' > /usr/lib/libX11.a(xcb_io.o): In function `process_responses': > (.text+0x543): undefined reference to `xcb_xlib_lock' > /usr/lib/libX11.a(xcb_io.o): In function `_XReply': > (.text+0x890): undefined reference to `xcb_xlib_unlock' > collect2: ld devolvió el estado de salida 1 > make: *** [dwm] Error 1
You will need a static build of xorg's xlib. The last xorg version that produced a static xlib that could be used for this task was xorg 6.9 afair. Please let me know if you succeed in disproving this. Cheers, Anselm
