testing an element

Eddie Kohler kohler at icir.org
Thu Oct 17 11:02:48 EDT 2002


Hi David,

>        Package /usr/local/lib/sample.uo:undefined symbol:__8tclinter
> requirement 'sample' not available
> test.click:3:Unknown element class 'SamplePackageElement'
> This is because with make install doesn't link the headers files...
> How can i do it?
> Thanks in advance
 -=- MIME -=- 
This is a multi-part message in MIME format.

------=_NextPart_000_002B_01C2760B.04551D80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
I have created a new element that includes some include headers. When I=20
compile the new element it compiles Ok, but testing it fails.
For testing I take the sampleelt that click includes and I append=20
#include "tclinter.h" (one of the include headers of my element).
then i do ./configure make install y everything ok.
But when i do click test.click I got this:
While loading package 'sample':
       Package /usr/local/lib/sample.uo:undefined symbol:__8tclinter
requirement 'sample' not available
test.click:3:Unknown element class 'SamplePackageElement'
This is because with make install doesn't link the headers files...
How can i do it?
Thanks in advance

------=_NextPart_000_002B_01C2760B.04551D80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial=20
size=3D2>Hi,<BR>I&nbsp;have&nbsp;created&nbsp;a&nbsp;new&nbsp;element&nbs=
p;that&nbsp;includes&nbsp;some&nbsp;include&nbsp;headers.&nbsp;When&nbsp;=
I&nbsp;<BR>compile&nbsp;the&nbsp;new&nbsp;element&nbsp;it&nbsp;compiles&n=
bsp;Ok,&nbsp;but&nbsp;testing&nbsp;it&nbsp;fails.<BR>For&nbsp;testing&nbs=
p;I&nbsp;take&nbsp;the&nbsp;sampleelt&nbsp;that&nbsp;click&nbsp;includes&=
nbsp;and&nbsp;I&nbsp;append&nbsp;<BR>#include&nbsp;"tclinter.h"&nbsp;(one=
&nbsp;of&nbsp;the&nbsp;include&nbsp;headers&nbsp;of&nbsp;my&nbsp;element)=
.<BR>then&nbsp;i&nbsp;do&nbsp;./configure&nbsp;make&nbsp;install&nbsp;y&n=
bsp;everything&nbsp;ok.<BR>But&nbsp;when&nbsp;i&nbsp;do&nbsp;click&nbsp;t=
est.click&nbsp;I&nbsp;got&nbsp;this:<BR>While&nbsp;loading&nbsp;package&n=
bsp;'sample':<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Package&nbsp;/=
usr/local/lib/sample.uo:undefined&nbsp;symbol:__8tclinter<BR>requirement&=
nbsp;'sample'&nbsp;not&nbsp;available<BR>test.click:3:Unknown&nbsp;elemen=
t&nbsp;class&nbsp;'SamplePackageElement'<BR>This&nbsp;is&nbsp;because&nbs=
p;with&nbsp;make&nbsp;install&nbsp;doesn't&nbsp;link&nbsp;the&nbsp;header=
s&nbsp;files...<BR>How&nbsp;can&nbsp;i&nbsp;do&nbsp;it?<BR>Thanks&nbsp;in=
&nbsp;advance</FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_002B_01C2760B.04551D80--


Basically, you want to add an object file to sample.uo, so that loading
sample.uo does not cause problems -- am I right?

The simplest way is to edit the Makefile.in and add objects to the U_OBJS
target (line 112 of etc/samplepackage/Makefile.in). So for example, if you
want to link with `foo.c', add `foo.uo' to U_OBJS. Similar things will work
with K_OBJS and B_OBJS, for Linux-kernel or BSD-kernel objects.

Eddie




More information about the click mailing list