From owner-freebsd-ports@FreeBSD.ORG Sun Jun 19 14:12:20 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81FB7106567E; Sun, 19 Jun 2011 14:12:20 +0000 (UTC) (envelope-from pierre.peyronnel@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id CD13F8FC1E; Sun, 19 Jun 2011 14:12:19 +0000 (UTC) Received: by ewy1 with SMTP id 1so111916ewy.13 for ; Sun, 19 Jun 2011 07:12:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to:x-mailer; bh=jRldYy9LGRYmvudAjQP+08O8Gq6S/EL6TZWNcr+tuUE=; b=wOGp6NJLgdjYtY7rsz8RxAdcAwBQvcU94m7sc0WR+DU4/1kmSYdwmPd+7/wNITfgg9 UxGlssamaB37gXaxNcTEAWAup/nmeA+VYLITh0XxvKN1b/+Gze36qD9/hcANf6kevNXD xLcePGsoSyr9CRaTqkibpP3DYXzCq6LoMZe+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to:x-mailer; b=i8ncqwQMvU4LFsx6El+Bv+cR1TN+/Pr1VlHyuqVpBJEzHYxbYMqtqBqZlcwnuW8JB7 XrvUxsF2aBDg7mDRk7M8/iMX/sKw0nXn6/AqhrER+VaFjWI2lkEjiMFOC+oRG3OakvC0 VZ7UmCciWOapR966glmsG0NrNTIuRNpk7ZmeE= Received: by 10.213.15.139 with SMTP id k11mr367007eba.31.1308492738018; Sun, 19 Jun 2011 07:12:18 -0700 (PDT) Received: from [192.168.1.21] (ip-83-99-39-72.dyn.luxdsl.pt.lu [83.99.39.72]) by mx.google.com with ESMTPS id n57sm922795eeb.16.2011.06.19.07.12.15 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Jun 2011 07:12:16 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) From: Pierre PEYRONNEL In-Reply-To: <20110619071546.GD21579@magic.hamla.org> Date: Sun, 19 Jun 2011 16:12:14 +0200 Message-Id: References: <3535BDAF-0161-4F5D-BF64-4208F87CB401@gmail.com> <20110619071546.GD21579@magic.hamla.org> To: Sahil Tandon X-Mailer: Apple Mail (2.1084) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports@FreeBSD.org, mandree@FreeBSD.org Subject: Re: FreeBSD Port: dnsmasq-2.57_3,1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2011 14:12:20 -0000 Hi Sahil and Matthias,=20 thanks for you replies. I did not know about the subtlety about RELEASE, STABLE, etc... with = pkg_add as i'm fairly new to FreeNAS and FreeBSD. So I installed a real FreeBSD 8.2-LATEST in a VM and dug more. It turns = out that : - the dnsmasq package is not broken, but i don't see why it needs the = EXACT version libidn-1.16 to really work (on a fresh system the exact libidn-1.16 gets installed) - when installing on a system that has a higher libidn (like 1.19...) = pkg_add issues a warning but dnsmasq actually does not work, as it looks = for 1.16 - the libidn-1.19 package actually gives you libidn.so.17 So... I ended up using the oldest trick : - ln -s libidn.so.16 libidn.so.17 And as hoped, it works. > Attempting to record package into /var/db/pkg/dnsmasq-2.55,1.. > Trying to record dependency on package 'pkg-config-0.25_1' with = 'devel/pkg-config' origin. > Trying to record dependency on package 'libiconv-1.13.1_1' with = 'converters/libiconv' origin. > Trying to record dependency on package 'gettext-0.18.1.1' with = 'devel/gettext' origin. > Trying to record dependency on package 'libidn-1.16' with 'dns/libidn' = origin. > pkg_add: warning: package 'dnsmasq-2.55,1' requires 'libidn-1.16', but = 'libidn-1.19' is installed > Package dnsmasq-2.55,1 registered in /var/db/pkg/dnsmasq-2.55,1 >=20 > *** To enable dnsmasq, edit /usr/local/etc/dnsmasq.conf and > *** set dnsmasq_enable=3D"YES" in /etc/rc.conf[.local] >=20 > [root@freenas ~]# /usr/local/sbin/dnsmasq > /libexec/ld-elf.so.1: Shared object "libidn.so.16" not found, required = by "dnsmasq" thanks for your help, Pierre Le 19 juin 2011 =E0 09:15, Sahil Tandon a =E9crit : > On Sat, 2011-06-18 at 22:37:36 +0200, Pierre PEYRONNEL wrote: >=20 >> i'm trying to install on my FreeNAS 8.0 system (based on FreeBDS 8.2) >> the dnsmasq package as described on this page : >> http://www.FreeBSD.org/cgi/ports.cgi?query=3Ddnsmasq&stype=3Dall >>=20 >> where it says it needs libidn-1.19 >>=20 >> but once installed (with pkg_add -r dnsmasq), i get the following : >>=20 >> [root@freenas /usr/local/sbin]# ./dnsmasq /libexec/ld-elf.so.1: = Shared >> object "libidn.so.16" not found, required by "dnsmasq" >>=20 >> - why isn't it linked with libidn.so ? i'm thinking it would prevent >> the version issue with this lib. >=20 > pkg_add(1) fetched an older package of dnsmasq which, in turn, had = been > linked against the older libidn library. This is expected behavior if > you are running -RELEASE, as documented in the FreeBSD Handbook (4.4.1 > Installing a Package): >=20 > Note: pkg_add(1) will download the latest version of your application > if you are using FreeBSD-CURRENT or FreeBSD-STABLE. If you run a > -RELEASE version, it will grab the version of the package that was = built > with your release. It is possible to change this behavior by = overriding > PACKAGESITE. For example, if you run a FreeBSD 8.1-RELEASE system, by > default pkg_add(1) will try to fetch packages from > = ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.1-release/Latest/.= > If you want to force pkg_add(1) to download FreeBSD 8-STABLE packages, > set PACKAGESITE to > = ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/. >=20 >> - can this be fixed in ports ? (or will i need to install a full >> FreeBSD 8.2 and recompile it with the libidn version i need ?) >=20 > There is no problem to be fixed; either compile the dnsmasq port > yourself, or fetch a -STABLE package. >=20 > --=20 > Sahil Tandon