DS 3100/Xwindows bug

Rod Stephens krs0 at GTE.COM
Tue Nov 28 02:35:32 AEST 1989


A guy I work with had a bug in a big Xwindows application on a
DECstation 3100. At link time he got a few pages of errors like:


/lib/libX11.a(Xrm.o): jump relocation out-of-range, bad object 
file produced, can't jump from 0x46c440 to 0x10003970 (index)
/lib/libX11.a(Xrm.o): jump relocation out-of-range, bad object
file produced, can't jump from 0x46c47c to 0x10003970 (index)
	:
	:
/lib/libc.a(getttyent.o): jump relocation out-of-range, bad object 
file produced, can't jump from 0x497614 to 0x10003970 (index)
*** Error code 1


After an unhelpful call to software support and much fiddling around,
he narrowed the problem down to a variable named "index". He changed
the variable's name to something else and all worked fine. It seemed
as if there might be some C language or system internal variable named
"index" and that his "index" was getting confused with this one.

Has anyone else seen this? Does anyone know what was happening?

				Rod Stephens
				GTE Laboratories Inc.
				40 Sylvan Rd
				Waltham, MA
				02254



More information about the Comp.unix.ultrix mailing list