Here are some other interesting points on pcsc and gcc on Solaris 10.
I have been able to compile with gcc on Sparc, but on an i386 system,
I get the same type of failures Kevin has reported.
The issue appears to be in misc.h in the use of the gcc __attribute__
#define INTERNAL __attribute__ ((visibility("hidden")))
If I use the attached patch, to misc.h to not use this.
pcsc now compiles on both sparc and i386 using Suns /usr/sfw/bin/gcc.
This would also explain why the Sun Studio cc works, as it does not
use the INTERNAL either.
Without the patch:
On sparc Solaris 10, this the attribute is ignored with many warnings like:
../../src/src/sys_unix.c:403: warning: visibility attribute not supported in
this configuration; ignored
../../src/src/sys_unix.c: In function `SYS_GetSeed':
But on i386, they are not ignored, but then the link has problems like this:
libtool: link: gcc -shared -Wl,-z -Wl,text -Wl,-h -Wl,libpcsclite.so.1 -o .libs/libpcsclite.so.1.0.0 .libs/libpcsclite_la-debug.o .libs/libpcsclite_la-dyn_hpux.o .libs/libpcsclite_la-dyn_macosx.o
.libs/libpcsclite_la-dyn_unix.o .libs/libpcsclite_la-error.o .libs/libpcsclite_la-winscard_clnt.o .libs/libpcsclite_la-strlcat.o .libs/libpcsclite_la-strlcpy.o .libs/libpcsclite_la-sys_unix.o
.libs/libpcsclite_la-thread_unix.o .libs/libpcsclite_la-utils.o .libs/libpcsclite_la-winscard_msg.o -R/opt/smartcard/lib:/usr/sfw/lib -R/usr/local/lib -L/usr/local/lib -ldl -lsocket -lc -pthreads
-pthreads -pthreads
Text relocation remains referenced
against symbol offset in file
SYS_CloseFile 0x5b7 .libs/libpcsclite_la-sys_unix.o
SYS_CloseFile 0x608 .libs/libpcsclite_la-sys_unix.o
SYS_CloseFile 0x659 .libs/libpcsclite_la-sys_unix.o
SHMMessageSend 0x858
.libs/libpcsclite_la-winscard_msg.o
SHMMessageSend 0x8ae
.libs/libpcsclite_la-winscard_msg.o
SHMMessageSend 0x8f0
.libs/libpcsclite_la-winscard_msg.o
SYS_Chdir 0x6b5 .libs/libpcsclite_la-sys_unix.o
SYS_Fork 0x4d1 .libs/libpcsclite_la-sys_unix.o
SYS_Fork 0x540 .libs/libpcsclite_la-sys_unix.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
make[2]: *** [libpcsclite.la] Error 1
% gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
--
Douglas E. Engert <deeng...@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
--- ,misc.h Fri May 9 09:59:08 2008
+++ misc.h Mon Feb 15 10:38:31 2010
@@ -24,7 +24,7 @@
* see http://gcc.gnu.org/onlinedocs/gcc-3.3.5/gcc/Function-Attributes.html#Function-Attributes
* see http://www.nedprod.com/programs/gccvisibility.html
*/
-#if defined __GNUC__ && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
+#if defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
#define INTERNAL __attribute__ ((visibility("hidden")))
#define PCSC_API __attribute__ ((visibility("default")))
#else
_______________________________________________
Muscle mailing list
Muscle@lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle