On 05/21/2012 04:41 AM, Nguyễn Hồng Quân wrote:
> Hello all,
>
> I'm trying to compile OpenSC on Ubuntu 12.04, but fail (both OpenSC
> 0.12.2 and 0.12.3pre), due to this error:
>
> /usr/bin/ld: ../../src/common/.libs/libpkcs11.a(libscdl.o): undefined
> reference to symbol 'lt_dlsym'
> /usr/bin/ld: note: 'lt_dlsym' is defined in DSO
> /usr/lib/i386-linux-gnu/libltdl.so so try adding it to the linker
> command line
> /usr/lib/i386-linux-gnu/libltdl.so: could not read symbols: Invalid
> operation
> collect2: ld returned 1 exit status
>
> Anyone encounter this?
> Ubuntu 12.04 comes with libltdl v2.4.2. I compiled successfully on
> Ubuntu 11.04, with libltdl v2.2.6

Hi,

same problem here on Ubuntu 12.04 64-Bit with OpenSC from github.com:
> /usr/bin/ld: ../../src/common/.libs/libpkcs11.a(libscdl.o): undefined 
> reference to symbol 'lt_dlsym'
> /usr/bin/ld: note: 'lt_dlsym' is defined in DSO 
> /usr/lib/x86_64-linux-gnu/libltdl.so so try adding it to the linker command 
> line
> /usr/lib/x86_64-linux-gnu/libltdl.so: could not read symbols: Invalid 
> operation
> collect2: ld returned 1 exit status
> make[3]: *** [pkcs11-tool] Error 1
> make[3]: Leaving directory 
> `/home/rank/install_tmp/opensc-git/OpenSC/src/tools'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/rank/install_tmp/opensc-git/OpenSC/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/rank/install_tmp/opensc-git/OpenSC'
> make: *** [all] Error 2

I could fix this problem by by calling the configure script (after "make 
clean" from the previous failed build) with:

LIBS=-lltdl ./configure

Then the build completes successfully. Maybe this is related to the 
following article:
> https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition

Best regards,
        Christian
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to