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
[-- Attachment #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. [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35"> <TITLE>new modules in FreeBSD 4.1 </TITLE> </HEAD> <BODY> <P><FONT SIZE=2 FACE="Arial">Hello everyone,</FONT> </P> <P><FONT SIZE=2 FACE="Arial">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.</FONT></P> <P><FONT SIZE=2 FACE="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=2 FACE="Arial">*********************************************************************</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">LSR-5# kldload label</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">kldload: can't load label: Exec format error</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">LSR-5# Nov 1 16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined</FONT> <BR><FONT COLOR="#000000" SIZE=2 FACE="Arial">Nov 1 16:08:01 LSR-5 /kernel: link_elf: symbol lt_add_ptr undefined</FONT> <BR><FONT SIZE=2 FACE="Arial">*********************************************************************************</FONT> <BR><FONT SIZE=2 FACE="Arial">The pointer the linker is complaining about is defined into the ip_output.c but </FONT> <BR><FONT SIZE=2 FACE="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=2 FACE="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=2 FACE="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=2 FACE="Arial">Any suggestion would be greatelly appreciated.</FONT> </P> <P><FONT SIZE=2 FACE="Arial">Eugenia.</FONT> </P> <P><FONT SIZE=2 FACE="Arial">Eugenia.</FONT> </P> </BODY> </HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?75C9A75D295AD31184E70008C79189D20409F70A>
