From owner-freebsd-net@FreeBSD.ORG Sun Feb 17 08:24:11 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 718A2CC4 for ; Sun, 17 Feb 2013 08:24:11 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D7F10DFE for ; Sun, 17 Feb 2013 08:24:10 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r1H8O75a012456; Sun, 17 Feb 2013 10:24:07 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.7.4 kib.kiev.ua r1H8O75a012456 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r1H8O7pR012455; Sun, 17 Feb 2013 10:24:07 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 17 Feb 2013 10:24:07 +0200 From: Konstantin Belousov To: h bagade Subject: Re: failed to use getifaddrs on geli code Message-ID: <20130217082407.GE2598@kib.kiev.ua> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C94crkcyjafcjHxo" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,FREEMAIL_REPLY,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-net@freebsd.org, Kevin Oberman X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2013 08:24:11 -0000 --C94crkcyjafcjHxo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 17, 2013 at 11:49:10AM +0330, h bagade wrote: > On Sat, Feb 16, 2013 at 10:23 PM, Kevin Oberman wrote: >=20 > > On Sat, Feb 16, 2013 at 5:40 AM, h bagade 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@gmail.com > > >=20 > 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. --C94crkcyjafcjHxo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRIJOmAAoJEJDCuSvBvK1B81cP/15/ppF03rvYD1zdXHOh30B1 m1WixRz4cRJPiIUb8yvLZm4RKqsOfd/vuCL/YY1jcwdsxWuaBxWZBEFzOJIvQ9Hc vkRBRdbZOLSniehH2PrwHz3bFNo1J/qWjVnS1JwWFlm/kLenjEHpBZ4SWzSDbAW4 PTuMF5DOHTx+Hg/8D3TZHzvnalUn3oN66F1SBr7i4IQoWjM5gwK7IIKABPPpkN/m qSXHR8ZYVGdfpq3aVnG53/3AmaU+ij4kzh7DvfOHoBCRe05m73HtljN1azGHxEqx pb1EUo1jXomrm/0GcOfksqvU9c8eKK7PHz5yHIgYS7Y9h0HWwL5his7KpL71uXZ4 OYMZK9SBpgisqYxsGVIBo3zNTDftEkjkkeIvG9wEuNu//no0Qo3oJxb1OFWPASbS BE05/34wrUak5gtRc7sul13NZkftgetNHbdRINavWdvMDjAYAZfesm1cC8dqGM+z i1h3QcpZhiLFFjgqFkNDJ65qmXYP/+An1byRW1iw+DfypfIxOFqMhEMg3cFhuI4W Emkrh4wGkV/1qKUkVsbRqL1R3lFU+U1XIDmA/bIqm2pCneR2n0LqA5l4oUkm040h QutDv8eGOunPQDuHj/U1LJuk0dd6jR8WooH1ydiy/wnYBuZ9cRLfysliC1XP4+dH RVzh1hldj0Y9fD+YSM3i =DmAK -----END PGP SIGNATURE----- --C94crkcyjafcjHxo--