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 have created a new element&nbs=
p;that includes some include headers. When =
I <BR>compile the new element it compiles&n=
bsp;Ok, but testing it fails.<BR>For testing&nbs=
p;I take the sampleelt that click includes&=
nbsp;and I append <BR>#include "tclinter.h" (one=
of the include headers of my element)=
.<BR>then i do ./configure make install y&n=
bsp;everything ok.<BR>But when i do click t=
est.click I got this:<BR>While loading package&n=
bsp;'sample':<BR> Package /=
usr/local/lib/sample.uo:undefined symbol:__8tclinter<BR>requirement&=
nbsp;'sample' not available<BR>test.click:3:Unknown elemen=
t class 'SamplePackageElement'<BR>This is because&nbs=
p;with make install doesn't link the header=
s files...<BR>How can i do it?<BR>Thanks in=
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