From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 1 11:22:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8304810656A0 for ; Mon, 1 Sep 2008 11:22:57 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 11D3E8FC1A for ; Mon, 1 Sep 2008 11:22:56 +0000 (UTC) (envelope-from laladelausanne@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1213256fgb.35 for ; Mon, 01 Sep 2008 04:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=jCYZUAl/ZFE22mmp+CuwdIhwg9ds3Pb7A82qxyM3qD0=; b=hix5JKLPU0qqFOTW4YYWlSB51KD1C/uosR0/dyli6o5gML5J0S0oDi3jMzTg7cdfDg RZThldA79ROxihaVmoEZc7qgr0vqWY8GM4ihrB8wCYHTa3Khm3isyc/6QFJBnXvnCb3w pZJEiOaReDX/rL+XeG0LjT/ZuZo9ChJ2YdQv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=OzXwE7dcGzL3HAbnLAg3mEQ204LkVVlZXbUFIAYtWQw5+IVUE7fvse45PuK3J2IMoV c1bjVivrYu4lZCnKwV1Sc0tpktVwZzitMv5CDnJtXmfq1BEuMwOu+SCM9DLufoUgYHqU Q24F7Ge6k8SiIGMRIPyEl1bkvbhicKYd3oUqE= Received: by 10.86.82.6 with SMTP id f6mr4481097fgb.38.1220266687731; Mon, 01 Sep 2008 03:58:07 -0700 (PDT) Received: from hunin.home ( [83.228.190.5]) by mx.google.com with ESMTPS id d4sm6481060fga.5.2008.09.01.03.58.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Sep 2008 03:58:06 -0700 (PDT) Message-Id: <0F17887A-AC71-49F0-B25D-8F2DC8BB5465@gmail.com> From: =?UTF-8?Q?Nikola_Kne=C5=BEevi=C4=87?= To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Mon, 1 Sep 2008 12:58:05 +0200 X-Mailer: Apple Mail (2.926) Subject: kldload: unexpected relocation type 10 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 11:22:57 -0000 Hi guys, I'm trying to do something unusual - to build my own module, mixed with the Click (Modular Router). In order to do so, I had to write a Makefile which borrows a lot from Click's Makefile. Like all other kernel modules, I include , but I'm modifying CFLAGS (with +=), and CXXFLAGS. I also have -DHAVE_INT64_IS_LONG there. For CXXFLAGS I use -fpermissive -fno-exceptions -fno-rtti. I had to do all this creaziness because I had to build CLick first (its .cc files), and then link all them with my code. Now I'm getting this: "kldload: unexpected relocation type 10" and: "link_elf_obj: symbol M_TEMP undefined" I cannot find where this M_TEMP comes from, because I'm including . for the relocation, I don't know what to do. I'm not using - g, as described on some web forum. Any hints? Cheers, Nikola