CA를 구축하려고 하는데
제가 가지고있는 자료는 http://www.openssl.org/related/에 있는
http://ospkibook.sourceforge.net/를 참고하고 있습니다.
RedHat 7.2 리눅스에서 나름대로 한다고 했는데 잘 안되네여 ^^
문제가 되는 부분을 정리해봤습니다.
------------------------ 문 제 -------------------------------
1> Appendix D. OpenCA Installation details에서
D.1.1. Installation of Perl modules의
1,2,3,4,5번까지는 무사히 잘 깔리는데
6. Net-LDAPapi-1.42.tar.gz부분에서 make를 돌리면
LDAPapi.o부분이 자꾸 에러가 나네여 ^^
제가 생각해본 결과 ldap_ssl.h 부분이 없어서 그런거 같아서
인터넷을 뒤지다가 님의 자료를 읽게 되었습니다.
님의 자료대로라면 Netscape LDAP SDK 1.0을 설치해야
Net-LDAPapi-1.42.tar.gz의 LDAPapi.o가 돌아간다는 것 같은데
어떻게 하면 Netscape LDAP SDK 1.0을 구할 수 있을까요?
CVS가 Netscape LDAP SDK 1.0과 같은건가요?
이것을 해결하려면 어떻게 해야하는것인지 충고 좀 해주세여 ^^
================================================================
< 문제점1 >
Net-LDAPapi-1.42에서 에러가 생긴다.
[root@islab Net-LDAPapi-1.42]# perl Makefile.PL
Net::LDAPapi Perl5 Module - by Clayton Donley
Enter How I Should Run Perl5 (ex. /usr/bin/perl, c:\perl\bin\perl),
(default: /usr/bin/perl)?
Select your Development Kit:
1. Netscape (default)
2. University of Michigan
3. ISODE (compiled with LDAP)
Choose:
Location of LDAP Include Files (default: /usr/include): Location of LDAP Library Files (default: /usr/lib):
Using Netscape's NEW LDAPv3 Development Kit (default: n)?
Note (probably harmless): No library found for -lldap10
Writing Makefile for Net::LDAPapi
======> ldap10을 어디서 구할 수 있나여??
< 문제점2 >
ldap_ssl.h 파일이 필요
[root@islab Net-LDAPapi-1.42]# make
gcc -c -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\"-fPIC -I/usr/lib/perl5/5.6.0/i386 -linux/CORE -DNETSCAPE_LDAP LDAPapi.c
LDAPapi.xs:19:23: ldap_ssl.h: 그런 파일이나 디렉토리가 없음
make: *** [LDAPapi.o] 오류 1
< 해결 >
ldap_ssl.h 파일 구했음
< 문제3 >
ldap_ssl.h 파일 구해서 돌려 보았는데 다음과 같은 결과가 나왔음
[root@islab Net-LDAPapi-1.42]# make
gcc -c -I/usr/local/ldap/include -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"1.42\" -DXS_VERSION=\"1.42\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DNETSCAPE_LDAP LDAPapi.c
In file included from LDAPapi.xs:19:
/usr/local/ldap/include/ldap_ssl.h:23: parse error before `ldapssl_init'
.........................................................................
.........................................................................
/usr/local/ldap/include/ldap_ssl.h:125: warning: data definition has no type or storage class
LDAPapi.xs:39: parse error before `ns_internal_rebind_proc'
LDAPapi.xs: In function `av2modvals':
LDAPapi.xs:95: `na' undeclared (first use in this function)
LDAPapi.xs:95: (Each undeclared identifier is reported only once
LDAPapi.xs:95: for each function it appears in.)
LDAPapi.xs: In function `parse1mod':
LDAPapi.xs:197: `na' undeclared (first use in this function)
LDAPapi.c: In function `XS_Net__LDAPapi_ldap_version':
LDAPapi.c:540: `LDAPVersion' undeclared (first use in this function)
LDAPapi.c:540: `ver' undeclared (first use in this function)
LDAPapi.c:540: parse error before `)'
LDAPapi.c:541: parse error before `int'
LDAPapi.c:544: `RETVAL' undeclared (first use in this function)
LDAPapi.c:545: `targ' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search':
LDAPapi.xs:578: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_s':
LDAPapi.xs:614: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_search_st':
LDAPapi.xs:660: `na' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_explode_dns':
LDAPapi.xs:895: warning: assignment makes pointer from integer without a cast
LDAPapi.c: In function `XS_Net__LDAPapi_ldapssl_init':
LDAPapi.c:1623: warning: assignment makes pointer from integer without a cast
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_set_rebind_proc':
LDAPapi.xs:1004: too many arguments to function `ldap_set_rebind_proc'
LDAPapi.xs:1014: warning: passing arg 2 of `ldap_set_rebind_proc' from incompatible pointer type
LDAPapi.xs:1014: too many arguments to function `ldap_set_rebind_proc'
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_url_parse':
LDAPapi.xs:1103: structure has no member named `lud_options'
LDAPapi.xs:1137: `sv_undef' undeclared (first use in this function)
LDAPapi.xs: In function `XS_Net__LDAPapi_ldap_multisort_entries':
LDAPapi.xs:1221: `na' undeclared (first use in this function)
make: *** [LDAPapi.o] 오류 1
==================> 오류 해결하기 위해 어떻게 해야 하나여??
|