Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jun 2011 16:12:14 +0200
From:      Pierre PEYRONNEL <pierre.peyronnel@gmail.com>
To:        Sahil Tandon <sahil@FreeBSD.org>
Cc:        ports@FreeBSD.org, mandree@FreeBSD.org
Subject:   Re: FreeBSD Port: dnsmasq-2.57_3,1
Message-ID:  <D94BAF49-1B9B-4029-9385-9858EBA71C69@gmail.com>
In-Reply-To: <20110619071546.GD21579@magic.hamla.org>
References:  <3535BDAF-0161-4F5D-BF64-4208F87CB401@gmail.com> <20110619071546.GD21579@magic.hamla.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sahil@FreeBSD.org>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D94BAF49-1B9B-4029-9385-9858EBA71C69>