Re: Missing X references
brian writes:
>
> I've just moved over to the new elf compiler, but am having a problem
> compiling a program which uses "-lX11". For some reason, none of the
> symbols are resolved. Here is the output...
>
> gcc -o wine controls/controls.o ipc/ipc.o loader/loader.o misc/misc.o multimedia/multimedia.o objects/objects.o rc/rc.o win32/win32.o windows/windows.o debugger/debugger.o debugger/readline/readline.o if1632/if1632.o memory/memory.o miscemu/miscemu.o -s -v -L/usr/X11R6/lib -lXpm -lXext -lX11 -lm
> Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.0/specs
> gcc version 2.7.0
> ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o wine -s /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/X11R6/lib -L/usr/lib/gcc-lib/i486-linux/2.7.0 controls/controls.o ipc/ipc.o loader/loader.o misc/misc.o multimedia/multimedia.o objects/objects.o rc/rc.o win32/win32.o windows/windows.o debugger/debugger.o debugger/readline/readline.o if1632/if1632.o memory/memory.o miscemu/miscemu.o -lXpm -lXext -lX11 -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
> loader/loader.o: In function `MODULE_LoadBuiltin':
> module.c(.text+0x51e2): undefined reference to `XUngrabPointer'
> module.c(.text+0x51ed): undefined reference to `XUngrabServer'
> module.c(.text+0x51f8): undefined reference to `XFlush'
> misc/misc.o: In function `EmptyClipboard':
> xmalloc.c(.text+0x13c): undefined reference to `XSetSelectionOwner'
> misc/misc.o: In function `GetClipboardOwner':
> xmalloc.c(.text+0x1fc): undefined reference to `XSetSelectionOwner'
> xmalloc.c(.text+0x2ee): undefined reference to `XInternAtom'
> xmalloc.c(.text+0x301): undefined reference to `XConvertSelection'
> [... and so on ...]
>
> Was there a change to the X libs that I missed? I compiled and ran
> fine with the old a.out compiler. Once I solve this, I can release
> wine to Debian.
I'm assuming that we need an ELF version of the X11R6 packages before we can
compile ELF X programs. I haven't been able to compile any of my X packages for
the same reason.
Andrew
--
Dehydration - 34%, Recollection of previous evening - 2%, embarrassment
factor - 91%. Advise repair schedule:- off line for 36 hours, re-boot
startup disk, and replace head - wow, what a night!
-- Kryten in Red Dwarf `The Last Day'
Andrew Howell andrew@it.com.au
Perth, Western Australia howellaa@cs.curtin.edu.au
Reply to: