Adjusting the loader to determine the architecture and recognizing architecture specific directories would be the more generic solution, I think. You can change LD_LIBRARY_PATH or edit /etc/ld.so.conf to do so. I think the OS should fix this.
On Wednesday, April 11 at 01:46PM, Ludovic Rousseau wrote: > > Hello, > > pcsc-lite on Debian and Ubuntu now supports multi-arch [1]. A > multi-arched library is no more stored in /usr/lib/ but in > /usr/lib/x86_64-linux-gnu for amd64 systems and > /usr/lib/i386-linux-gnu for i386 systems (and the same naming applies > for all the other achitectures). > > The idea of multi-arch is to be able to have intel 32 and 64 bits > programs and libraries installed at the same time on the same system. > > Now the problem with OpenSC. > OpenSC is no more linked with libpcsclite but uses dlopen(3) to load > the library at runtime. > Since the library has moved the dlopen() call fails and the library > can't be found and loaded. See Ubuntu bug #973886 [2]. > > One solution is to link OpenSC with libpcsclite at compile time. This > is working because the dynamic linker has been modified for multi arch > and knows where to find a library. > > Now that OpenCT is deprecated and PC/SC should be the only card > interface to be used maybe the default could be to link at build > time. > > Is anybody modifying the provider_library= configuration in > /etc/opensc.conf to something else than the default value? What is the > use case? > > Bye > > [1] http://wiki.debian.org/Multiarch > [2] https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/973886 > > -- > Dr. Ludovic Rousseau > _______________________________________________ > opensc-devel mailing list > opensc-devel@lists.opensc-project.org > http://www.opensc-project.org/mailman/listinfo/opensc-devel > -- Frank Morgner Virtual Smart Card Architecture http://vsmartcard.sourceforge.net OpenPACE http://openpace.sourceforge.net IFD Handler for libnfc Devices http://sourceforge.net/projects/ifdnfc
pgphkg5VJV6m5.pgp
Description: PGP signature
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel