Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Still some Problems with libXext.a
@ 1996-06-17 21:00 Torsten Zirzlaff
  1996-06-18  8:38 ` Harald Koenig
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Zirzlaff @ 1996-06-17 21:00 UTC (permalink / raw)


I don't know if I'm the only one, but I often got compiling errors due
the use of libXext.a . The error messages looks like:
/usr/X11/lib/libXext.a(extutil.o): In function `XextAddDisplay':
extutil.c(.text+0xf4): undefined reference to `XInitExtension'
extutil.c(.text+0x130): undefined reference to `XESetWireToEvent'
extutil.c(.text+0x150): undefined reference to `XESetEventToWire'
extutil.c(.text+0x180): undefined reference to `XESetCreateGC'
extutil.c(.text+0x1a4): undefined reference to `XESetCopyGC'
extutil.c(.text+0x1c8): undefined reference to `XESetFlushGC'
extutil.c(.text+0x1ec): undefined reference to `XESetFreeGC'
extutil.c(.text+0x210): undefined reference to `XESetCreateFont'
extutil.c(.text+0x234): undefined reference to `XESetFreeFont'
extutil.c(.text+0x258): undefined reference to `XESetCloseDisplay'
extutil.c(.text+0x27c): undefined reference to `XESetError'
extutil.c(.text+0x2a0): undefined reference to `XESetErrorString'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x10): undefined reference to `XInitExtension'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x18): undefined reference to `XESetWireToEvent'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x20): undefined reference to `XESetEventToWire'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x28): undefined reference to `XESetCreateGC'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x30): undefined reference to `XESetCopyGC'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x38): undefined reference to `XESetFlushGC'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x40): undefined reference to `XESetFreeGC'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x48): undefined reference to `XESetCreateFont'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x50): undefined reference to `XESetFreeFont'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x58): undefined reference to `XESetCloseDisplay'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x60): undefined reference to `XESetError'
/usr/X11/lib/libXext.a(extutil.o)(.lita+0x68): undefined reference to `XESetErrorStr

I found these messages quit frustrating, because I read them as an
error in Xext and not an error in the program I would like to
use. Surprisingly on my old i386 the compiling runs smooth but *very*
slow.

Any suggestions?

Ciao

	Torsten

-- 
s-mail: Dudenstr. 24                                          Torsten Zirzlaff
	10965 Berlin	(official) http://satchmo.physik.tu-berlin.de/~zirzlaff
	Germany		          e-mail : zirzlaff@nienor.in-berlin.de
					   zirzlaff@satchmo.physik.tu-berlin.de

+-----------------------------------------------------------------------------+
|  The shortest unit of time in the universe is the New York Second, defined  |
|  as the period of time between the traffic lights turning green and the cab |
|  behind you honking. -- Terry Pratchett 'Lords and Ladies'                  |
+-----------------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Still some Problems with libXext.a
  1996-06-17 21:00 Still some Problems with libXext.a Torsten Zirzlaff
@ 1996-06-18  8:38 ` Harald Koenig
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Koenig @ 1996-06-18  8:38 UTC (permalink / raw)


> I don't know if I'm the only one, but I often got compiling errors due
> the use of libXext.a . The error messages looks like:
> /usr/X11/lib/libXext.a(extutil.o): In function `XextAddDisplay':
> extutil.c(.text+0xf4): undefined reference to `XInitExtension'
> /usr/X11/lib/libXext.a(extutil.o)(.lita+0x10): undefined reference to `XInitExtension'
> 
> I found these messages quit frustrating, because I read them as an
> error in Xext and not an error in the program I would like to
> use. Surprisingly on my old i386 the compiling runs smooth but *very*
> slow.

I'd say that you're specifying the libraries in the wrong order.
note that the libs on the command line for linking depend on the
proper sequence; for more information you should send the 
complete command line for linking (try rearanging libs first and
check in which lib the unresolved externals are 
(e.g. nm /usr/lib/libX11.{a,sa,...} | more).

XInitExtension from your example is in libX11, so you have to specify
this lib *after* libXext  ("-lXext -lX11" and not "-lX11 -lXext")...

Harald

-- 
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-18  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-17 21:00 Still some Problems with libXext.a Torsten Zirzlaff
1996-06-18  8:38 ` Harald Koenig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox