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
[-- Attachment #1 --] On 01/13/15 15:14, Eduardo Morras wrote: > Hi, trying to know why amule doesn't run (crash on start) > > #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 libcryptopp.so not found > pkg: (amule-2.3.1_12) /usr/local/bin/amuled - required shared library libcryptopp.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 library libcryptopp.so not found > > It's because libcryptopp.so isn't installed, but querying which package installs it, I get: > > #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.maintainer, p.www, p.prefix, p.flatsize, p.time FROM packages AS p, pkg_shlibs_provided AS ps, shlibs AS s WHERE p.id = ps.package_id AND ps.shlib_id = s.id AND s.name = ?1; in file pkgdb_query.c:244: near ".": syntax error > > # 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.maintainer, p.www, p.prefix, p.flatsize, p.time FROM packages AS p, pkg_shlibs_provided AS ps, shlibs AS s WHERE p.id = ps.package_id AND ps.shlib_id = s.id AND s.name = ?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 that 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 [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54B5418B.3060507>
