Berkeley CSUA MOTD:Entry 12509
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/03 [General] UID:1000 Activity:popular
4/3     

2004/3/3-4 [Computer/SW/Editors/Emacs, Computer/SW/OS/VM] UID:12509 Activity:nil
3/3     /usr/bin/ld: cannot find -lX11
        What is wrong? I've included /usr/X11R6/lib and still no luck...
        \_ if you included the actual command line and OS details, maybe
           someone could give a more helpful response.
        gcc -nostdlib `./prefix-args -Xlinker  -R/usr/X11R6/lib -z nocombreloc -\
L/usr/X11R6/lib` -o temacs pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o dispnew.o\
frame.o scroll.o xdisp.o xmenu.o window.o charset.o coding.o category.o ccl.o cm\
.o term.o xfaces.o xterm.o xfns.o xselect.o xrdb.o fontset.o emacs.o keyboard.o\
macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o filei\
o.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o u\
ndo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o print.o l\
read.o abbrev.o syntax.o unexelf.o mocklisp.o bytecode.o process.o callproc.o re\
gion-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composi\
te.o md5.o terminfo.o lastfile.o vm-limit.o ../oldXMenu/libXMenu11.a -L/usr/X11R\
6/lib -L/project/tom/lib -lX11 -lncurses -lm -lgcc -lc -lgcc /usr/lib/crtn.o
        \_ various "maybes": try -lx11; are you getting the error at compile
           time or runtime (if latter, man ldconfig); reduce it to a
           a smaller testcase (find some small source file that uses X
           and compile that); find out what exactly your X lib is called
           (the errors says that it can't find "-lX11", not "X11" so maybe
           it's interpreting it incorrectly.