On 02/ 8/10 05:51 PM, Kevin Reinholz wrote:
> William,
>
> I had this same issue some months back. I could build pcsc-lite-1.5.3 or 
> 1.5.5 smoothly with static libs, but gcc would choke if I tried to build 
> shared libs.
>
> Unless you need to build pcsc-lite with gcc, I've gotten it to build without 
> complaint using the Sun Studio compiler:
>
> ./configure CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc 
> --disable-libhal --enable-libusb
>
> make
>
> pfexec make install
>
>    
I just tested this again on snv_132 and here's a better way to compile 
pcsc-lite-1.5.5:

env LIBUSB_CLFAGS="-I/usr/include" LIBUSB_LIBS="-L/usr/lib -lusb" 
./configure CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc 
--sysconfdir=/etc --prefix=/usr/local --disable-libhal --enable-libusb 
--enable-debugatr --enable-scf

make
pfexec make install
> I've had similar success building ccid-1.3.10 or 1.3.11 with the Sun Studio 
> compiler:
>
> env PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib 
> -lpcsclite" LIBUSB_CFLAGS=-I/usr/include LIBUSB_LIBS="-L/usr/lib -lusb" 
> ./configure CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc 
> --enable-usbdropdir=/usr/lib/libusb_plugins/
>
> make
>
> pfexec make install
>    
And here's a better way to compile ccid-1.3.11:

env PCSC_CFLAGS=-I/usr/local/include/PCSC PCSC_LIBS="-L/usr/local/lib 
-lpcsclite" LIBUSB_CFLAGS=-I/usr/include LIBUSB_LIBS="-L/usr/lib -lusb" 
./configure CCC=/opt/sunstudio12.1/bin/CC CC=/opt/sunstudio12.1/bin/cc 
--sysconfdir=/etc --prefix=/usr/local 
--enable-usbdropdir=/usr/local/pcsc/drivers

make
pfexec make install

pcsc-lite then runs smoothly with the command:

pfexec /usr/local/sbin/pcscd -f -d
> Hopefully that will work for you, unless you [i]need[/i] to build these with 
> gcc. (For example if you want to build coolkey; I can build coolkey with gcc 
> but the Sun Studio compiler chokes on it).
>
>    
I played around with gcc-3.4.3 and gcc-4.3.2, Sun's linker and the Gnu 
linker, but in every variation of compiler flags/configure options I 
tried, I received the same linker error you got trying to compile 
pcsc-lite with gcc. Hopefully Sun Studio compiled binaries will still 
suit your needs.
> Regards,
> Kevin
>    

Reply via email to