From owner-freebsd-questions Wed Nov 1 17: 5:12 2000 Delivered-To: freebsd-questions@freebsd.org Received: from zrtps06s.us.nortel.com (unknown [47.140.48.50]) by hub.freebsd.org (Postfix) with ESMTP id 9420037B4C5 for ; Wed, 1 Nov 2000 17:05:08 -0800 (PST) Received: from zrtpd004.us.nortel.com by zrtps06s.us.nortel.com; Wed, 1 Nov 2000 17:17:27 -0500 Received: by zrtpd004.us.nortel.com with Internet Mail Service (5.5.2652.35) id ; Wed, 1 Nov 2000 17:17:25 -0500 Message-ID: <75C9A75D295AD31184E70008C79189D20409F70A@zcard00b.ca.nortel.com> From: "Eugenia Lambiri" To: "'freebsd-questions@FreeBSD.ORG'" Subject: new modules in FreeBSD 4.1 Date: Wed, 1 Nov 2000 17:17:12 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2652.35) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C04451.7BFA12C0" X-Orig: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 new modules in FreeBSD 4.1

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-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message