Hemanth Kumar wrote:
> Hi All,
>
> I am new to the smart card , I have just download the
> pcsc-lite-1.3.2,ccid-1.1.0,libusb-0.1.12 , I was able to install
> libusb ,But unable to compile the pcsc-lite-1.3.2
>
> Kernel: Linux-2.4.21
> gcc: 3.2.3
> glibc-2.3.2
> Smartcard Reader: SCM Microsystems, Inc. SCR331 SmartCard Reader(USB),
>
> This are options i gave :
> ./configure --enable-libusb
> make
>
> This is follwing error i am getting:
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src/PCSC -I../src/PCSC -I../src
> -Wall -fno-common -g -O2 -pthread -DLIBPCSCLITE -Wall -fno-common -g -O2
> -MT libpcsclite_la-error.lo -MD -MP -MF .deps/libpcsclite_la-error.Tpo
> -c error.c -fPIC -DPIC -o .libs/libpcsclite_la-error.o
> error.c:46: visibility arg must be one of "hidden", "protected" or
> "internal"
Mmmh, this could be a compiler problem. Can you upgrade?
The problem should be in misc.h:
--------
#if defined __GNUC__
#define INTERNAL __attribute__ ((visibility("hidden")))
#define PCSC_API __attribute__ ((visibility("default")))
#else
#define INTERNAL
#define PCSC_API
#endif
#define EXTERNAL PCSC_API
#if defined __GNUC__
/* GNU Compiler Collection (GCC) */
#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#else
------------------
Try to insert the following (never tested, but should give you an idea
(well, only if you are familiar with gcc and C)) instead:
#if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 &&
__GNUC_MINOR__ >= 3))
#define INTERNAL __attribute__ ((visibility("hidden")))
#define PCSC_API __attribute__ ((visibility("default")))
#else
#define INTERNAL
#define PCSC_API
#endif
#define EXTERNAL PCSC_API
#if defined __GNUC__
/* GNU Compiler Collection (GCC) */
#define CONSTRUCTOR __attribute__ ((constructor))
#define DESTRUCTOR __attribute__ ((destructor))
#else
--------
Karsten
> make[3]: *** [libpcsclite_la-error.lo] Error 1
>
> (But the same packages works on the fedor core-4)
>
> Can some one please point me where i went wrong.
>
> Regards,
> Hemanth
>
>
>
> ------------------------------------------------------------------------
> Find out what India is talking about on - Yahoo! Answers India
> <http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/>
> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8.
> Get it NOW
> <http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Muscle mailing list
> [email protected]
> http://lists.drizzle.com/mailman/listinfo/muscle
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle