failed to use getifaddrs on geli code

Konstantin Belousov kostikbel at gmail.com
Sun Feb 17 08:24:11 UTC 2013


On Sun, Feb 17, 2013 at 11:49:10AM +0330, h bagade wrote:
> On Sat, Feb 16, 2013 at 10:23 PM, Kevin Oberman <kob6558 at gmail.com> wrote:
> 
> > On Sat, Feb 16, 2013 at 5:40 AM, h bagade <bagadeh at gmail.com> wrote:
> > > Hi all,
> > >
> > > I need to change the geli code and I want to use "getifaddrs" function
> > > inside the code. I make and make install the code and it wasn't any
> > problem
> > > at all, but when I want to load the geom_eli.ko module, an error
> > occurred:
> > > kldload: can't load /boot/kernel/geom_eli.ko: Exec format error
> > >
> > > and in /var/log/messages, it stated:
> > > link_elf_obj: symbol getifaddrs undefined
> > >
> > > how can I solve this problem?
> > > Any hints or comments are really appreciated
> >
> > One possibility is that your sources from which you built the modified
> > geom_eli module are not the same as were used to build the kernel you
> > are running.
> > --
> > R. Kevin Oberman, Network Engineer
> > E-mail: kob6558 at gmail.com
> >
> 
> I've build the kernel once again with the modified geli code and the error
> still exists!

getifaddrs(3) is usermode interface, exported from libc. You cannot
use it from the kernel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20130217/2b393429/attachment.sig>


More information about the freebsd-net mailing list