Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2015 16:02:19 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg 1.4 error searching shared lib
Message-ID:  <54B5418B.3060507@infracaninophile.co.uk>
In-Reply-To: <20150113161447.ebfd607f5bf5c96ce23ea83a@yahoo.es>
References:  <20150113161447.ebfd607f5bf5c96ce23ea83a@yahoo.es>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--UhHv2ITOVfhQX6AE7A2bhar1E4cVANtMf
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 01/13/15 15:14, Eduardo Morras wrote:
> Hi, trying to know why amule doesn't run (crash on start)
>=20
> #pkg -v
> 1.4.4
> #pkg check -B
> Checking all packages:   1%
> pkg: (amule-2.3.1_12) /usr/local/bin/amule - required shared library li=
bcryptopp.so not found
> pkg: (amule-2.3.1_12) /usr/local/bin/amuled - required shared library l=
ibcryptopp.so not found
> pkg: (amule-2.3.1_12) /usr/local/bin/amulegui - required shared library=
 libcryptopp.so not found
> pkg: (amule-2.3.1_12) /usr/local/bin/mulefileview - required shared lib=
rary libcryptopp.so not found
>=20
> It's because libcryptopp.so isn't installed, but querying which package=
 installs it, I get:
>=20
> #pkg shlib -P libcryptopp.so
> pkg: sqlite error while executing SELECT p.id, p.origin, p.name, p.name=
 p.origin as uniqueid, p.version, p.comment, p.desc, p.message, p.arch, p=
=2Emaintainer, p.www, p.prefix, p.flatsize, p.time FROM packages AS p, pk=
g_shlibs_provided AS ps, shlibs AS s WHERE p.id =3D ps.package_id AND ps.=
shlib_id =3D s.id AND s.name =3D ?1; in file pkgdb_query.c:244: near ".":=
 syntax error
>=20
> # pkg shlib -P libcryptopp
> pkg: sqlite error while executing SELECT p.id, p.origin, p.name, p.name=
 p.origin as uniqueid, p.version, p.comment, p.desc, p.message, p.arch, p=
=2Emaintainer, p.www, p.prefix, p.flatsize, p.time FROM packages AS p, pk=
g_shlibs_provided AS ps, shlibs AS s WHERE p.id =3D ps.package_id AND ps.=
shlib_id =3D s.id AND s.name =3D ?1; in file pkgdb_query.c:244: near ".":=
 syntax error

This is a bug in pkg-1.4.4 -- is already fixed and will be in the next
pkg release.

> I don't see anything wrong on the select and the ?1 is the expression t=
hat sqlite3_bind_text() call replace with the filename.

This bit is incorrect SQL 'p.name p.origin as uniqueid,' -- that's due
to a mismerge of the code switching from origin to name as the unique
identifier for packages.

> Any clue? Am I doing something wrong?

Apart from running into a bug: well, using 'pkg shlib -P' to try and
find out which package *out of all the packages you have installed* when
that library doesn't exist on your machine probably isn't going to help.
 You're probably better off using 'pkg rquery' to dig out what package
provides that shared library out of all the packages on the repo.

	Cheers,

	Matthew



--UhHv2ITOVfhQX6AE7A2bhar1E4cVANtMf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUtUGLXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw
MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnbpkP+wc3Zj2U3gudaYIzkZtlsruj
zPh8RbSbFzoJYt+HwRFPJcgtVzCepXKKlXjwYgtGX6KLyzf5lP6Fl6Trw3sXIyK0
DnUndm8L7pJjTsczTiG4IdZKPlxHHW4efGg3Tkw0mHpxzqWRXks+1S8SLuPodqQn
aZuKh60l1/1cRjnEigLD2nlooi+5ZSjLP2OdiKVWoz7JDKEvyjRCRQvok5YUiUfj
Zi0EBmXqn1xgnPgF8y6dF0qbfsy2kBkOEsjtlmBsFYu5dT38VtEMgko0y6B+Zt5V
WZPTXTPQxo1+j7kyT5FNacOr7Kl0vqo0i5d15bikuK/AmlON1OeUt/NhaOqPO6TD
mmvt4ls+J5zKtzmvxxcS5hUzsNJS4mLgUnNx+CbSgEkK8xIm8Rcj3OkzB4Lxvb2+
ifgRv4kct5P/C6zCNmPsC3L9q0IsAB7mvtEfq4FDJ5xxZxu734ykPVKCbsr/rj6J
vcqaidaBZbKcQNMfeK8DzdwleXAFJK9DKQF0CtmSjMzak1I7vVb7y2KZ44xbmbIu
z84lmGF6aWuQPJC+8mHW+hApQj3U2Tjcsge4IVimd+39Y9txLn33iJcb9Vo2xh4l
020UZP7feV5YxpTIO8cC9yijncPyDgL+x4PHesZ5+GJ0kAYc8yRCdPUNHnwYm444
GXJCaPmistumeKMq7KLx
=yfWy
-----END PGP SIGNATURE-----

--UhHv2ITOVfhQX6AE7A2bhar1E4cVANtMf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54B5418B.3060507>