Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2007 15:27:03 +0200
From:      "Michael Iedema" <michael@askozia.com>
To:        freebsd-drivers@freebsd.org
Subject:   first time module dev question: undefined reference to 'memset'
Message-ID:  <d3dd0e360709210627o78db23e4o8255478e96a7d1e9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Greetings everyone,

I'm undertaking the seemingly simple task of porting a Linux kernel
module to FreeBSD. I say simple because it is merely a wrapper used to
expose some functions to another module.

The code I'm porting is OSLEC[1] a line echo canceller module that is
used by Zaptel and Asterisk. My current problem is an undefined
reference to 'memset' when I attempt to load the cleanly compiled
module.

There is a lengthy discussion about this error here[2] but I could
find no conclusive remedy. My wrapper module links with code from
another library and it is causing the problems in kernel land.

Here is my module so far: http://pastebin.ca/705865
...and my broken Makefile: http://pastebin.ca/705871

If anyone could point me in the right direction it would be very
appreciated. I realize that I am out of my league dealing with kernel
modules but the porting process looked easy enough. As with most new
adventures, this has proved untrue.

Thanks for your time,
-Michael I.


[1] - http://www.rowetel.com/ucasterisk/oslec.html
[2] - http://lists.freebsd.org/pipermail/freebsd-stable/2005-March/013132.html



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