LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 851|回复: 1

关于GPKCS11在LINUX下的编译问题

[复制链接]
发表于 2004-8-19 13:10:32 | 显示全部楼层 |阅读模式
我在redhat linux9.0下面编译gpkcs11基于OPNESSL的
那两个动态库libceay_tok.so.0.0.1,libcrypto.so.0.9.4我自己生成了
现在在gpkcs11下面
./configure
make
make install
但是gpkcs11下面的tests目录下的ras_test等几个测试程序怎么编译?
我在gpkcs11目录下make check出错.错误如下:

Making check in docs
make[1]: Entering directory `/home/zy/gpkcs11/docs'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/zy/gpkcs11/docs'
Making check in etc
make[1]: Entering directory `/home/zy/gpkcs11/etc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/zy/gpkcs11/etc'
Making check in ceay_token
make[1]: Entering directory `/home/zy/gpkcs11/ceay_token'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/zy/gpkcs11/ceay_token'
Making check in tests
make[1]: Entering directory `/home/zy/gpkcs11/tests'
Making check in config
make[2]: Entering directory `/home/zy/gpkcs11/tests/config'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/zy/gpkcs11/tests/config'
Making check in gpkcs11.base
make[2]: Entering directory `/home/zy/gpkcs11/tests/gpkcs11.base'
make c_setpin test_rsa test_decrypt test_sign t_session_obj_delete1
t_session_obj_delete2
make[3]: Entering directory `/home/zy/gpkcs11/tests/gpkcs11.base'
make[3]: *** No rule to make target `c_setpin.c', needed by `c_setpin.o'.
Stop.make[3]: Leaving directory `/home/zy/gpkcs11/tests/gpkcs11.base'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/home/zy/gpkcs11/tests/gpkcs11.base'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/zy/gpkcs11/tests'
make: *** [check-recursive] Error 1
请问是什么问题,怎么解决?
把gpkcs11\windows\gpkcs11\gpkcs11_test下面的gpkcs11_test.c调试的时候通不过,说好多函数找不到
 楼主| 发表于 2004-8-19 13:11:31 | 显示全部楼层
各位有谁知道gpkcs11在linux下如何编译:我是初学者,急用,
操作系统是redhat-linux-9.0
版本是gpkcs11-0.7.2,我按照gpkcs11的说明把openssl-0.9.4放在解压后的ceay_token目录下,进入目录openssl,并进行了安装,
./configure
make
make install
然后在gpkcs11-0.7.2目录下执行
./configure
make
make install
gpkcs11的说明中说要在编译前写配置文件gpkcs11.rc,配置文件内容如下:

[PKCS11-DLL]
TokenList = CEAY-TOKEN TCSC-TOKEN1
ExtraLibraryPath = /path/to/additional/libaries/needed/by/other/libs/
LoggingLevel = 3

[CEAY-TOKEN]
TokenDLL = /path/to/your/libceay_tok.so.0.0.1
InitSym = ceayToken_init
PersistentRootDir = /path/to/directory/containing/the/persistant/storage/
cryptoDll = /path/to/your/libcrypto.so.0.9.4

[TCSC-TOKEN1]
TokenDLL = /path/to/your/libtcsc_tok.so.0.0.1

TokenList
请问上面的配置文件怎么写?特别是怎么产生libceay_tok.so.0.0.1,libcrypto.so.0.9.4两个文件,还有,我在进入ceay_token目录编译的时候出错,说产生libcrypto.so.0.9.4时出错,我的/usr/bin目录下怎么会有一个libcrypto.so.0.9.7a的文件。
请各位帮我解答一下,越详细越好,因为我刚学,有急用。谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表