Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Nov 2000 17:17:12 -0500
From:      "Eugenia Lambiri" <elambiri@nortelnetworks.com>
To:        "'freebsd-questions@FreeBSD.ORG'" <freebsd-questions@FreeBSD.ORG>
Subject:   new modules in FreeBSD 4.1
Message-ID:  <75C9A75D295AD31184E70008C79189D20409F70A@zcard00b.ca.nortel.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C04451.7BFA12C0
Content-Type: text/plain

Hello everyone,

I have recently installed FreeBSD4.1, I created a new customized kernel and
I created a new module under "modules"called "label". In the same time I had
to modify two of the kernel files under net and inet
directories(if_ethersubr.c and ip_output.c) to contain a couple of
definitions and some more code.
I am able to compile and link the new customized kernel, but when I try to
load my new module I am getting the following errors:
*********************************************************************
LSR-5# kldload label
kldload: can't load label: Exec format error
LSR-5# Nov  1 16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined
Nov  1 16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined
****************************************************************************
*****
The pointer the linker is complaining about is defined into the ip_output.c
but 
for some reason it doesn't seem to be taken by the linker when I am loading
the module dynamically with the command kldload.

Could you give me some advice on what am I supposed to do to solve this
problem? Is there a way to check if ip_output is applied? Maybe the
dependecies are not created properly.. But then where am I supposed to take
a look to check them?

Note that I have tried these changes on FreeBSD3.3 and I didn't have any
problem at all.

Any suggestion would be greatelly appreciated.

Eugenia.

Eugenia.


------_=_NextPart_001_01C04451.7BFA12C0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2652.35">
<TITLE>new modules in FreeBSD 4.1 </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hello everyone,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have recently installed FreeBSD4.1, =
I created a new customized kernel and I created a new module under =
&quot;modules&quot;called &quot;label&quot;. In the same time I had to =
modify two of the kernel files under net and inet =
directories(if_ethersubr.c and ip_output.c) to contain a couple of =
definitions and some more code.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am able to compile and link the new =
customized kernel, but when I try to load my new module I am getting =
the following errors:</FONT></P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
************</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">LSR-5# kldload =
label</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">kldload: can't load =
label: Exec format error</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">LSR-5# Nov&nbsp; 1 =
16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined</FONT>
<BR><FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">Nov&nbsp; 1 =
16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">*********************************************************=
************************</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">The pointer the linker is complaining =
about is defined into the ip_output.c but </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">for some reason it doesn't seem to be =
taken by the linker when I am loading the module dynamically with the =
command kldload.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Could you give me some advice on what =
am I supposed to do to solve this problem? Is there a way to check if =
ip_output is applied? Maybe the dependecies are not created properly.. =
But then where am I supposed to take a look to check them?</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Note that I have tried these changes =
on FreeBSD3.3 and I didn't have any problem at all.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Any suggestion would be greatelly =
appreciated.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Eugenia.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Eugenia.</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C04451.7BFA12C0--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75C9A75D295AD31184E70008C79189D20409F70A>