New lintian warning about rpath

Roberto C. Sanchez roberto at connexer.com
Wed Oct 18 10:03:17 UTC 2006


We are now getting this warning.

N: Processing binary package libsasl2-2-modules-sql (version
2.1.22-0~pre03) ...W: libsasl2-2-modules-sql:
binary-or-shlib-defines-rpath ./usr/lib/sasl2/libsql.so.2.0.22
/usr/lib:/usr/lib/mysql:/usr/include/postgresql
N:
N:   The binary or shared library sets RPATH. This overrides the normal
N:   library search path, possibly interfering with local policy and
N:   causing problems for multilib, among other issues.
N:
N:   The only time a binary or shared library in a Debian package should
N:   set RPATH is if it is linked to private shared libraries in the
same
N:   package. In that case, place those private shared libraries in
N:   /usr/lib/<package>. Libraries used by binaries in other packages
N:   should be placed in /lib or /usr/lib as appropriate, with a proper
N:   SONAME, in which case RPATH is unncessary.
N:
N:   To fix this problem, look for link lines like:
N:       gcc test.o -o test -Wl,--rpath,/usr/local/lib
N:   or
N:       gcc test.o -o test -R/usr/local/lib
N:   and remove the -Wl,--rpath or -R argument. You can also use the
N:   chrpath utility to remove the RPATH.
N:
N:   Refer to http://wiki.debian.org/RpathIssue for details.


Apparently, --rpath is set in config/ltconfig and
saslauthd/config/ltconfig by upstream.  Any suggestions?

Regards,

-Roberto

-- 
Roberto C. Sanchez
http://people.connexer.com/~roberto
http://www.connexer.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-sasl2-debian-devel/attachments/20061018/b89bd1cd/attachment.pgp


More information about the Pkg-cyrus-sasl2-debian-devel mailing list