Marc Rios Valles wrote:
> Hi Douglas
> 
> 
>  > Marc Rios Valles wrote:
>  > > Hi to everybody,
>  > >
>  > >
>  > > I'm trying to compile OpenSC in Solaris 10-SPARC and I'm having lots of
>  > > trouble in the make install script.
>  >
>  > I have used the Sun provided gcc and openssl in /usr/sfw/
>  >
>  > CC=gcc
>  > CFLAGS=-g
>  > CPPFLAGS="-DDEBUG -I/afs/anl.gov/appl/libtool-1.5.14/sun4x_510/include
>  > -D_TS_ERRNO" LDFLAGS="-g -R/opt/smartcard/lib -R/usr/sfw/lib
>  > -L/afs/anl.gov/appl/libtool-1.5.14/sun4x_510/lib"
>  > OPENSSL_CFLAGS="-I/usr/sfw/include"
>  > LD_LIBRARY_PATH="/opt/smartcard/lib:/usr/sfw/lib:"
>  > PKG_CONFIG_PATH="/opt/smartcard/lib/pkgconfig"
>  > PTHREAD_CFLAGS="-pthreads"
>  >
> I don't have any /afs directory. 

We use OpenAFS, and libtool-1.5.14 was built in that path.

I'm using libtool from sunfreeware.com

That should work too.

> I don't have either /opt/smartcard. 

That was where I was placing all the smartcard code after building.
It would have the pcsclite for example.

I am using the libraries provided by
> sun and are installed at /usr/lib.
>  > export PTHREAD_CFLAGS
>  > export OPENSSL_LIBS OPENSSL_CFLAGS
>  > export CC CFLAGS CPPFLAGS LDFLAGS
>  >
>  > ../src/configure --prefix=/opt/smartcard \
>  > --disable-rpath \
>  > --with-openssl=/usr/sfw \
>  > --enable-pcsc \
>  > --with-pcsclite=/opt/smartcard \
>  > --with-pcsc-provider=/opt/smartcard/lib/libpcsclite.so.1 \
>  > --disable-ldap \
>  > --disable-doc \
>  > --with-xsl-stylesheetsdir=/usr/share/sgml/docbook/xsl-stylesheets
>  >
>  > > I compile it with this flags:
>  > >
>  > >
>  > > export
>  > > 
> PATH=/opt/SUNWspro/bin:/usr/bin:/usr/local/bin:/usr/sbin:/usr/sfw/bin:/us
>  > >r/ccs/bin:/opt/sfw/bin:/usr/ucb:$PATH
>  > >
>  > >
>  > > export CFLAGS="-I/usr/include -I/usr/sfw/include -I/opt/sfw/include
>  > > -I/opt/libassuan/include -I/usr/include/smartcard"
>  >
>  > I was using pcsclite compile, so did not use /usr/include/smartcard
>  > What is libassuan?
>  >
> Libassuan is a library to show a window to get the PIN from some cards. 
> Don't worry for this. This library uses pinentry to work.
> 
> 
>  > > export LDFLAGS="-L/usr/lib -R/usr/lib -L/usr/local/lib -R/usr/local/lib
>  > > -L/usr/sfw/lib -R/usr/sfw/lib -L/opt/sfw/lib -L/opt/libassuan/lib
>  > > -R/opt/libassuan/lib -L/usr/include/smartcard/ -lintl -R/usr/ucblib/
>  > > -I/usr/ucblib/ "
>  >
>  > Why do you need /usr/ucblib? \
> If I don't include /usr/ucblib the compiler showed an error so I include 
> it here.
>  >
>  > > export LIBUSB_CFLAGS="-I/usr/sfw/include"
>  > >
>  > >
>  > > export LIBUSB_LIBS="-I/usr/sfw/lib -R/usr/sfw/lib -lusb"
>  > >
>  > >
>  > > export OPENSSL_CFLAGS="-I/usr/sfw/include"
>  > >
>  > >
>  > > export OPENSSL_LIBS="-L/usr/sfw/lib -R/usr/sfw/lib -lssl -lcrypto
>  > > -lsocket -lnsl -ldl"
>  > >
>  > >
>  > > export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
>  > >
>  > >
>  > > export CC=cc
>  > >
>  > >
>  > > export CXX=CCd
>  > >
>  > >
>  > > I have tried lots of different things like put -fPIC in CFLAGS and
>  > > LDFLAGS and I always get this error:
>  > > 
>  > > against symbol offset in file
>  > > <unknown> 0x1460 /usr/lib/libopensc.a(sc.o)
>  > > <unknown> 0x1464 /usr/lib/libopensc.a(sc.o)
>  > > <unknown> 0x1468 /usr/lib/libopensc.a(sc.o)
>  > > <unknown> 0xa7c /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0xa80 /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0xa84 /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0xa88 /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0xa8c /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0x2e44 /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0x2e48 /usr/lib/libopensc.a(asn1.o)
>  > > <unknown> 0x2e4c /usr/lib/libopensc.a(asn1.o)
>  > > ...
>  > > __iob 0x80c /usr/lib/libopensc.a(ui.o)
>  > > __iob 0x8ac /usr/lib/libopensc.a(ui.o)
>  > > __iob 0x8b0 /usr/lib/libopensc.a(ui.o)
>  > > __iob 0x8c8 /usr/lib/libopensc.a(ui.o)
>  > > __iob 0x8cc /usr/lib/libopensc.a(ui.o)
>  > > read 0x34f0 /usr/lib/libopensc.a(card-piv.o)
>  > > fread 0x37c /usr/lib/libopensc.a(pkcs15-cache.o)
>  > > fflush 0xb14 /usr/lib/libopensc.a(ui.o)
>  > > uncompress 0x10d8 /usr/lib/libopensc.a(pkcs15-infocamere.o)
>  > > uncompress 0x6b8 /usr/lib/libopensc.a(pkcs15-actalis.o)
>  > > uncompress 0x248 /usr/lib/libopensc.a(compression.o)
>  > > inflateEnd 0x1a4 /usr/lib/libopensc.a(compression.o)
>  > > inflateEnd 0x1c4 /usr/lib/libopensc.a(compression.o)
>  > > inflateEnd 0x4e0 /usr/lib/libopensc.a(compression.o)
>  > > inflate 0x18c /usr/lib/libopensc.a(compression.o)
>  > > inflate 0x418 /usr/lib/libopensc.a(compression.o)
>  > > inflateInit2_ 0x15c /usr/lib/libopensc.a(compression.o)
>  > > inflateInit2_ 0x380 /usr/lib/libopensc.a(compression.o)
>  > > ld: fatal: relocations remain against allocatable but non-writable
>  > > sections
>  > >
>  > >
>  > >
>  > > To compile I'm using the solaris folder inside opensc. I'm trying
>  > > opensc-0.11.7 but opensc-0.11.8 gets the same error.
>  > >
>  > >
>  > >
>  > > I have read the I should pass -G to gcc but this provokes that gcc gets
>  > > hanged at configure.
>  >
>  > What hangs? Which gcc?
>  >
> gcc hangs when is doing the test of compilation.

What is the command line parameters when gcc hangs.

Can you send the output of configure with GCC?


> -bash-3.00$ gcc -v
> Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
> Configured with: 
> /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
> --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
> --enable-shared
> Thread model: posix
> gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
> 
> 
> 
>  > > Any idea?? Does anybody have opensc compiled for solaris 10-SPARC?
> If I use your flags It shows the same error... Could you send me a 
> package from opensc 0.11.8 for SPARC? It will help me a lot!!!

Not at the moment. 0.11.7-rc1 was the last one I built, and that was not
open solaris, but Solaris 10, and it was built to be installed into AFS.

I will try and give 0.11.8 a try some time this week.

The output from configure would be more helpful.

Some of the people at Sun may still read this lists, as I know they were
looking at porting OpenSC to Solaris.

I am still questing your use of /usr/include/smartcard

> 
> 
> Many thanks for all!
>  > >
>  > > Thanks
>  > > --
>  > > Marc Rios Vallès
>  > > [email protected]
>  > >
>  > >
>  > > C3PO, S.A.
>  > > http://www.c3po.es
>  > > C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern, Barcelona
>  > > Tel. 93 417 99 55 - Fax 93 253 12 80
>  > >
>  > >
>  > > 
> ------------------------------------------------------------------------
>  > >
>  > > _______________________________________________
>  > > opensc-devel mailing list
>  > > [email protected]
>  > > http://www.opensc-project.org/mailman/listinfo/opensc-devel
> 
> 
> -- 
> Marc Rios Vallès
> [email protected]
> 
> 
> C3PO, S.A.
> http://www.c3po.es
> C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just Desvern, Barcelona
> Tel. 93 417 99 55 - Fax 93 253 12 80
> 
> 

-- 

  Douglas E. Engert  <[email protected]>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444
_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to