List Info

Thread: RE : Re: Problem with pkcs11-helper




RE : Re: Problem with pkcs11-helper
country flaguser name
France
2008-01-21 13:34:07
First off, thank you for your very quick answer.
I read the INSTALL file and I did what was written in
it.
I did the command "nmake -f Makefile.w32-vc" in
the
lib folder, but I get the following error:

C:G-FACTIONIUT2aPTpkcs11-helperpkcs11-helper-1.05lib&
gt;nmake
-f Makefile.w32-vc

Microsoft (R) Program Maintenance Utility   Version
1.50
Copyright (c) Microsoft Corp 1988-94. All rights
reserved.

Makefile.w32-vc(156) : fatal error U1088: invalid
separator '::' on inference rule
Stop.

I guess it's because there is an extra ':' in the
makefile. I removed it, and now I get this error :

C:G-FACTIONIUT2aPTpkcs11-helperpkcs11-helper-1.05lib&
gt;nmake
-f Makefile.w32-vc

Microsoft (R) Program Maintenance Utility   Version
1.50
Copyright (c) Microsoft Corp 1988-94. All rights
reserved.

        echo LIBRARY libpkcs11-helper-1 >
pkcs11-helper-1.dll.def
        echo EXPORTS >> pkcs11-helper-1.dll.def
        type core.exports >> pkcs11-helper-1.dll.def
        type certificate.exports >>
pkcs11-helper-1.dll.def
        type data.exports >> pkcs11-helper-1.dll.def
        type slotevent.exports >>
pkcs11-helper-1.dll.def
        type token.exports >> pkcs11-helper-1.dll.def
        cl.exe C:DOCUME~1HPLOCALS~1Tempnma03228.
'cl.exe' n'est pas reconnu en tant que commande
interne
ou externe, un programme exécutable ou un fichier de
commandes.
NMAKE : fatal error U1077:
'C:WINDOWSsystem32cmd.exe' : return code '0x1'
Stop.

Which means in english : 'cl.exe' isn't a recognized
command in Windows shell. That's to say : it can't
find cl.exe.

Then, I added the path to cl.exe in windows's global
environment variable PATH, and now, 'cl.exe' can be
accessed from the shell, from anywhere. Another try
gives :

C:G-FACTIONIUT2aPTpkcs11-helperpkcs11-helper-1.05lib&
gt;nmake
-f Makefile.w32-vc

Microsoft (R) Program Maintenance Utility   Version
1.50
Copyright (c) Microsoft Corp 1988-94. All rights
reserved.

        cl.exe C:DOCUME~1HPLOCALS~1Tempnma03768.
NMAKE : fatal error U1077:
'C:WINDOWSsystem32cmd.exe' : return code
'0xc0000135'
Stop.

And in the same time, a message box appears and tells
me that mspdb80.dll couldn't be found and that the
reinstallation of this program (cl.exe) might solve
the problem. I can't believe my eyes. My Microsoft
Visual Studio 2005 is quite new, I installed it on my
computer a couple of weeks ago and it has always
worked fine. I don't understand...

Quentin Demé

--- Alon Bar-Lev <alon.barlevgmail.com> a écrit :

> Hello,
> 
> Please read the INSTALL file regarding instruction
> of building.
> If this fail, please provide the output of the
> pkcs11-helper build.
> 
> Regards,
> Alon Bar-Lev.
> 
> On 1/21/08, quentin demÿffffe9 <qdemeyahoo.fr>
> wrote:
> > Hello,
> >
> > I've tried using pkcs11 library but I couldn't
get
> it
> > to work, for I can't load the pkcs11-engine on
> > Windows.. apparently...
> >
> > Someone told me to try pkcs11-helper, but I can't
> > manage to use it. I copied the include
> > "pkcs11-helper-1.0" folder into Visual
C++ include
> > folder, and I tried to compile test-basic. But I
> get
> > the following errors :
> >
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_terminate référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_addProvider référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_setLogLevel référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_setLogHook référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_initialize référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_getFeatures référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_getVersion référencé dans la
> fonction
> > _main
> > test-basic.obj : error LNK2019: symbole externe
> non
> > résolu _pkcs11h_getMessage référencé dans la
> fonction
> > _fatal
> >
> > Which means in english : unresolved external
> symbol
> > _pkcs11h_terminate referenced in function _main.
> Etc.
> >
> > I thought it was because the compiler (or linker,
> I
> > don't know), couldn't find the .lib files. So, I
> tried
> > to compile the pkcs11h-core.c file located into
> the
> > pkcs11-helper lib folder, in order to get a .lib.
> I've
> > copied the .lib file into Microsoft's lib
> directory.
> > And the compilation doesn't work neither !
> >
> > Maybe I'm doing something wrong... Anyway, I
can't
> > find a real documentation about pkcs11-helper. I
> mean,
> > a doc in which you can find real explanations
> about
> > how to use the libraries, etc.
> >
> > I must use smart cards for a project in my
> university,
> > and I really need your help.
> >
> > Thanks in advance.
> >
> > Quentin Demé
> >
> >
> >      
>
____________________________________________________________
_________________
> > Ne gardez plus qu'une seule adresse mail ! Copiez
> vos mails vers Yahoo! Mail http://mail.yahoo.fr
> > _______________________________________________
> > opensc-user mailing list
> > opensc-userlists.opensc-project.org
> >
>
http://www.opensc-project.org/mailman/listinfo/opensc-
user
> >
> 




     
____________________________________________________________
_________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails
vers Yahoo! Mail http://mail.yahoo.fr
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

Re: RE : Re: Problem with pkcs11-helper
user name
2008-01-21 14:28:10
On Jan 21, 2008 9:34 PM, quentin demÿffffe9 <qdemeyahoo.fr> wrote:
> Makefile.w32-vc(156) : fatal error U1088: invalid
> separator '::' on inference rule
> Stop.

Which version of Visual Studio are you using?

> Which means in english : 'cl.exe' isn't a recognized
> command in Windows shell. That's to say : it can't
> find cl.exe.
> Then, I added the path to cl.exe in windows's global
> environment variable PATH, and now, 'cl.exe' can be
> accessed from the shell, from anywhere. Another try
> gives :

This is standard visual studio procedure... You don't add cl
to the path...
You need to search for vcvars32.bat located at vcXX/bin and
run this
before nmake.

The fact that you do have nmake in patch and not cl, suggest
you have some
mess on your computer... Figure out where the current nmake
come from and then
make it be not available before you ran the correct
vcvarse32.bat

Alon.
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )