Re: [Smartsign-users] Smart Sign 0.2.0 under Fedora Core 3 / Compile probs
Status: Pre-Alpha
Brought to you by:
kefren
From: Tommaso C. <cuc...@ss...> - 2005-04-29 15:41:26
|
Dear Oliver, please try out the new release "0.3.0" of sign-mcard from the download section of the site: http://smartsign.sourceforge.net I guess I fixed those troubles that you ran into so far. I verified the new package configures and compiles on a Fedora Core 2, with the pcsclite rpms you pointed me to. Now I don't have devices at reach, and I cannot try if it works, though, I hope you can do it and report possible further problems. Bye, T. Oliver Dietzel wrote: > Dear Tommaso, > > >>1. be sure you have on your system both libpcsclite.so and >> libmusclecard.so > > > Both are there, installed from > http://download.fedora.redhat.com/pub/fedora/linux/extras/3/i386/pcsc-lite-libs-1.2.0-10.i386.rpm > > >>2. unpack the sign-mcard tgz, and edit the "./configure.in" script so >> to include -lmusclecard into LDFLAGS; >> I guess uncommenting lines from 184 to 202 should work fine, but I > > can't > be sure without trying, after so much time > > I tried it as you told: > > Redownloaded sign-mcard-0.2.0.tgz and patched configure.in > > checking for musclecard.h... yes > checking for MSCComputeCrypt in -lpcsclite... no > configure: error: Library PCSC-Lite is missing MUSCLE Card extensions ! > > There seemed to be another compat check in configure, found it searching > for MSCComputeCrypt. Tried it "the hard way" then and patched two lines > in ./configure to fake the test result. > > Line 4034 in configure > Changed from: ac_cv_lib_pcsclite_MSCComputeCrypt=no > To: ac_cv_lib_pcsclite_MSCComputeCrypt=yes > > Line 4044 was uncommented > Changed from: # LDFLAGS="$LDFLAGS -lmusclecard" > To: LDFLAGS="$LDFLAGS -lmusclecard" > > ./configure ran fine now, make broke. > > gcc -I/usr/include -I/usr/local/include -I/usr/include > -DPUB_KEY_NUMBER=0x01 -DPRV_KEY_NUMBER=0x00 -DPIN_NUMBER=0x00 > -DCERTIFICATE_OID='"2000"' -DDEFAULT_LOG_LEVEL=3 -g -O2 -c rsa_cardedge.c > rsa_cardedge.c: In function `rsa_sc_create': > rsa_cardedge.c:247: Fehler: Zuweisung des schreibgeschützten Elementes > »app_data« > make: *** [rsa_cardedge.o] Fehler 1 > A write protected element... > > Used Versions: > kernel 2.6.9-5.0.5.EL > gcc 3.4.3-9.EL4 > pcsc-lite 1.2.0-10 > pcsc-lite-libs 1.2.0-10 > pcsc-lite-devel 1.2.0-10 > > >>3. cross your fingers > > All fingers broken while crossing! *g* > > Any other idea? I try to include email attachment sc signing into a > MailScanner (perl based av mailgateway) system and wrapping > sign-mcard seemed to be the best way without reinventing the wheel... > > > E mille gracie dottore! > (Was that spelled correctly?) > > BTW.: Would a "sign-mcard -in test.pdf -out test.pdf.p7s -sc" take the > pin from stdin? > > ------------------------ Ursprüngliche Nachricht ------------------------- > Betreff: Re: Smart Sign 0.2.0 under Fedora Core 3 > Von: "Tommaso Cucinotta" <cuc...@ss...> > Datum: Do, 28.04.2005, 21:24 > An: od...@gs... > Cc: sma...@li... > -------------------------------------------------------------------------- > > Oliver Dietzel wrote: > >>Hello, > > > Hi, > > >>i got pcsc-lite 1.2.0 up and running under Fedora Core 3, installed > > sign-mcard-0.2.0-1.i386.rpm with no errors, but > >>sign-mcard -in test.txt -out test.txt.p7s -sc >> >>gives an error message -> sign-mcard: undefined symbol: MSCListTokens > > > I guess the problem is quite simple: once upon a time, there was no > MuscleCard in this world.... when it came nearly in 2001, PCSC-Lite > included MuscleCard API inside libpcsclite.so. After a while, Debian > maintainers decided to split the libraries again into libpcsclite.so and > libmusclecard.so. I cannot remember exactly what versions of > libpcsclite.so include MuscleCard API and what not, but I guess your > problem with the pre-compiled RPM is that the sign-mcard and > related programs are linked only against libpcsclite.so, but > the newer versions of PCSC-Lite would require to link also > libmusclecard.so. > Of course, the sources themselves are not so smart to catch both > cases -- after all, library versioning should be useful in such > cases. > > If all of these words confused you, here is a hint for the solution: 1. be > sure you have on your system both libpcsclite.so and > libmusclecard.so > 2. unpack the sign-mcard tgz, and edit the "./configure.in" script so > to include -lmusclecard into LDFLAGS; > I guess uncommenting lines from 184 to 202 should work fine, but I > can't be sure without trying, after so much time > 3. cross your fingers > > Please, report on this ML any troubles that you run into in the cited > process. If you need further help, I can check it by myself and > possibly provide an up-to-date rpm. > > Bye, > T. > > >>I tried to compile it from the sources, but ./configure (with options) > > says pcsc-lite wouldnt contain the needed musclecard extensions. The > installed pcsc-lite-libs contains libpcsclite.so.0 and > libmusclecard.so.0. > >>Any chance to get this compiling? I really need an easy signing module > > exactly like this! *g* > >>Kindest regards >>Oliver Dietzel >> > > > |