From: young@chama.eece.unm.edu (Mark Young)
Newsgroups: comp.soft-sys.khoros
Subject: Re: Shared Libs and ld paths in a Sun (4.1.1)
Date: 14 Aug 92 18:02:26 GMT

Hi,

    I wanted to followup on Tom's reply because after reading thru your mail
i don't think your problem is the same one addressed in the FAQ.


On Jul 31,  8:22pm, plato@lmsc.lockheed.com wrote:
} Subject: Shared Libs and ld paths in a Sun (4.1.1)
} To: khoros@chama.eece.unm.edu
} Status: OR
} 
} Hello,
} 
} I vaguely remember this to have been covered in the past, but... 
} 
} In a SUN with 4.1.1 (unpatched ld) and shared libraries and Khoros 1.5, I get
} consistently within cantata :
} 
} ld.so: Undefined Symbol __XtInherit

This problem can occur for several reasons.  When using shared libraries you
must make sure that your Toolkit initialization call is not contained inside
a shared library, but within the program binary itself.  This is why the
Imakefile in $KHOROS_HOME/src/xvroutines/Lib/xvforms contains the line

UNSHAREDOBJS =\
        init.o

So you may want to make a quick check to see that the xvform's initialization
routine is an unshared object, rather than under the "OBJS" list.  However,
looking further into your mail it appears that this is most likely not the 
problem... (pls read further)

} 
} the Xt library is in /usr/openwin/lib and the LD_LIBRARY_PATH and the ldconfig
} have been configured to scan this directory.  I only have the Xaw and Xmu
} libraries under /usr/lib.  Do I need to transfer all the X libs under
} /usr/lib ?

Yes!!  This seems slightly suspicious since Xaw & Xmu libraries should
also be located in /usr/openwin/lib if you are running OpenWindows 3.0.
In OpenWindows 2.0 Xaw and Xmu were not part of the distribution.  So are
you possible running OW 2.0, not 3.0?  If so then this is most likely the
source of the problem.   OpenWindows 2.0 contained the X11R3 release of the
X11 toolkit (Xt).  Which means that most likely your Xaw & Xmu libraries
located in /usr/lib are X11R4 or X11R5.  There was major changes to
Xt and Xaw between R3 and R4 which makes them incompatible.

} 
} It is definitely related to the shared libraries (peculiar) handling by SUN
} OS, but what ?

This may not be true since many of the Athena widgets use _XtInherit() as
a way of defining that a widget's method should be inherited from it's
superclass.  But if memory serves this mechanism changed from X11R3 to
X11R4.

} 
} Please e-mail and I'll summarize.
} 
} Thanks
} V. Zarifis
} LPARL, plato@lmsc.lockheed.com
} 
}-- End of excerpt from plato@lmsc.lockheed.com


Please mail back if you are still unable to fix the problem...

			hope this helps,
				Mark


------------------------------------------------------------------
Mark Young                         young@chama.eece.unm.edu
 
Khoros Group                       (505) 277-6563  (work)
University of New Mexico           Albuquerque,    NM 87131
------------------------------------------------------------------
From: kk@hpl-opus.hpl.hp.com (Konstantinos Konstantinides)
Date: Thu, 13 Aug 1992 16:29:20 GMT
Subject: Re: Khoros under HP-UX 8.0 on HP9000-700 --athena widgets
Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA