[Muscle] libmusclecard on linux, amd64 - undefined reference
to `log_xxd'
Karsten Ohme
widerstand at t-online.de
Tue Jul 24 16:07:59 PDT 2007
Rostislav Matl schrieb:
> On Tue, 2007-07-24 at 00:31 +0200, Karsten Ohme wrote:
>> Rostislav Matl schrieb:
>>> Hi,
>>>
>>> I'm trying to compile libmusclecard but there are some errors
>>> during compilation. I don't understand these things much, can you
>>> tell me what's wrong ? Thank you.
>>>
>>>> make
>>> /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o muscletest
>>> muscletest-muscletest.o muscletest-strlcpy.o libmusclecard.la
>>> -lpcsclite
>>> gcc -g -O2 -o .libs/muscletest muscletest-muscletest.o
>>> muscletest-strlcpy.o ./.libs/libmusclecard.so /usr/lib64/libpcsclite.so
>>> -ldl -Wl,--rpath -Wl,/opt/muscle/lib
>>> ./.libs/libmusclecard.so: undefined reference to `log_xxd'
>>> ./.libs/libmusclecard.so: undefined reference to `log_msg'
>>> collect2: ld returned 1 exit status
>>> make: *** [muscletest] Error 1
>> What pcsclite version are you using? log_xxd should be part of pcsclite.
>> There should be a libpcsclite.a file somewhere needed for linking.
>>
>> Regards,
>> Karsten
>>
>
> pcsc-lite 1.4.2, it's supposed to be stable on gentoo
>
> I'have only these files in library directory - the *.so
> file is not enough ?
>
> /usr/lib64/libpcsclite.la
> /usr/lib64/libpcsclite.so -> libpcsclite.so.1.0.0
> /usr/lib64/libpcsclite.so.1 -> libpcsclite.so.1.0.0
> /usr/lib64/libpcsclite.so.1.0.0
> /usr/lib64/pkgconfig
> /usr/lib64/pkgconfig/libpcsclite.pc
Install something like a pcsclite development package. You need the
static library file libpcsclite.a I guess. I haven't found it in gentoo.
I don't know how to search package contents.
Maybe pcsclite can also be compiled without debugging support ...
run
nm -D libpcsclite.so.1.0.0 | grep log_xxd
objdump -t libpcsclite.a | grep log_xxd
to see if the symbol is defined.
Regards,
Karsten
>
>
>>>
>>>> ldd -r libmusclecard.so
>>> libpcsclite.so.1 => /usr/lib/libpcsclite.so.1
>>> (0x00002b3fb8088000)
>>> libc.so.6 => /lib/libc.so.6 (0x00002b3fb8192000)
>>> libdl.so.2 => /lib/libdl.so.2 (0x00002b3fb83cd000)
>>> libpthread.so.0 => /lib/libpthread.so.0 (0x00002b3fb84d2000)
>>> /lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
>>> undefined symbol: log_xxd (./libmusclecard.so)
>>> undefined symbol: log_msg (./libmusclecard.so)
>>>
>
>
> _______________________________________________
> Muscle mailing list
> Muscle at lists.musclecard.com
> http://lists.drizzle.com/mailman/listinfo/muscle
More information about the Muscle
mailing list