From owner-freebsd-net@FreeBSD.ORG Sat Feb 16 18:54:03 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BD97AA37 for ; Sat, 16 Feb 2013 18:54:03 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-da0-f53.google.com (mail-da0-f53.google.com [209.85.210.53]) by mx1.freebsd.org (Postfix) with ESMTP id 865B38DE for ; Sat, 16 Feb 2013 18:54:03 +0000 (UTC) Received: by mail-da0-f53.google.com with SMTP id w3so1856640dad.26 for ; Sat, 16 Feb 2013 10:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=nHDS96n/0qYiU0aqbIPzFgExVf2h6dQkF0pBDwRehqg=; b=M0sbBA/Q4lZIIQpzL2BQ5VkXi/Wnw++fF9HVENIj4KOmDmK0zyRXF62NiQOLMHBLVK /xDduA0aNqNEHROyshm5qVwLP/Uk0vIBdkpz5iHCTla+WvhMvTOlS8z6SCB3PC1Sk2v1 PwrqPzcnKN4/aiHz/a0vReHIKhRUSguMeOc/mI27jcsDaoOhE1SwBdCPfnyl4WSc9Pfa QcihOIOQYpN4DIWVbb/obPBtS7imhYb+FnoSD1ktmCnc/mKyhvdqR8bIU7Xbd6wGk03Z Cjbfpxmh7jFDweD8oZAYT3J+HKttQlaZRgPFSLhfYXrkMdttINShFLHlOsH0OagcShya 4zwQ== MIME-Version: 1.0 X-Received: by 10.66.81.199 with SMTP id c7mr22984396pay.39.1361040837617; Sat, 16 Feb 2013 10:53:57 -0800 (PST) Received: by 10.67.2.65 with HTTP; Sat, 16 Feb 2013 10:53:57 -0800 (PST) In-Reply-To: References: Date: Sat, 16 Feb 2013 10:53:57 -0800 Message-ID: Subject: Re: failed to use getifaddrs on geli code From: Kevin Oberman To: h bagade Content-Type: text/plain; charset=UTF-8 Cc: freebsd-net@freebsd.org 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: Sat, 16 Feb 2013 18:54:03 -0000 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