Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2018 16:23:11 +0300
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Eugene Grosbein <eugen@grosbein.net>, freeuser <freebsduser@gmx.com>, freebsd-hackers@freebsd.org
Subject:   Re: kernel module linking (general, ipfw table, netgraph)
Message-ID:  <039ee1d8-c357-c7ae-4049-2aa4ca91a5c4@yandex.ru>
In-Reply-To: <5B91163D.9030905@grosbein.net>
References:  <ec108831-151a-1f4b-c5ae-4b6bc31383e3@gmx.com> <5B91163D.9030905@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--LZ4z8fP2CeTx305vfvLdemme9niMyaotR
Content-Type: multipart/mixed; boundary="rN6r4RyS99lNruHGgoYYtIc9Vq3AM9fHu";
 protected-headers="v1"
From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Eugene Grosbein <eugen@grosbein.net>, freeuser <freebsduser@gmx.com>,
 freebsd-hackers@freebsd.org
Message-ID: <039ee1d8-c357-c7ae-4049-2aa4ca91a5c4@yandex.ru>
Subject: Re: kernel module linking (general, ipfw table, netgraph)
References: <ec108831-151a-1f4b-c5ae-4b6bc31383e3@gmx.com>
 <5B91163D.9030905@grosbein.net>
In-Reply-To: <5B91163D.9030905@grosbein.net>

--rN6r4RyS99lNruHGgoYYtIc9Vq3AM9fHu
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 06.09.2018 14:57, Eugene Grosbein wrote:
>> I am building my module using /usr/src/sys/modules/netgraph/sample and=

>> /usr/src/sys/netgraph/ng_sample.* as templates. On the other hand,=20
>> ng_socket
>> uses kern_kldload, "sysctl -b kern.function_list | tr '\0' '\n' | grep=
=20
>> kern_kldload"
>> shows it and it works without any problems.
>>
>> Why is that? What have i not noticed that must be done?
>=20
> Perhaps, this is KBI mismatch due to VIMAGE kernel option
> that changes symbols like add_table_entry to V_add_table_entry
> and your kernel module should be built WITH_VIMAGE defined too
> to be loadable to such a kernel.

I think VIMAGE only affects variables, but not functions.
The problem is probably due to missing dependency. Look at ng_ipfw
implementation. It depends from ipfw kernel module. Try add such
dependency to your module.

--=20
WBR, Andrey V. Elsukov


--rN6r4RyS99lNruHGgoYYtIc9Vq3AM9fHu--

--LZ4z8fP2CeTx305vfvLdemme9niMyaotR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQEzBAEBCAAdFiEE5lkeG0HaFRbwybwAAcXqBBDIoXoFAluRKj8ACgkQAcXqBBDI
oXpdVAf8Dv8Apl2LRIGKgYgZtrWRpXBjsGrlbUyS9FI5D/h4DVugLNo+PwBp101A
XHyR0wcHa4a50rXOOaHl5dLm4gd3cWMyY46DoUCaD0ovaSX6qQP1LnpQXsX0S0SA
FBgKH40xTv1QEbdrKwOq9AFwu4J66U8tmtcYrgxaypz6Y9llfBwtT61fNGpD5Kzl
oXo/tw5mKW8sbUzmULWukHcu3DDpflfbgwnHP1gGgZCZxeWeT3DhnIJyoriC6Hs6
kuDFncfG+fsvr7t1olijTV5bD5nOO0kc0XlvWqkqWaFQwlqrpHfRaB6dNF5vGqdY
vNsOKkZ3G5fSgzZ6uOKGdtf7hhWC+g==
=K+Cs
-----END PGP SIGNATURE-----

--LZ4z8fP2CeTx305vfvLdemme9niMyaotR--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?039ee1d8-c357-c7ae-4049-2aa4ca91a5c4>