libnnz10.so, needed by /home/agent/lib/libclntsh.so, not found
服务器是vmware上装的redhat 4
我要编译自己的程序,但是死活都编译不出 bms_server,主要的错误信息是这句话
libnnz10.so, needed by /home/agent/lib/libclntsh.so, not found (try using -rpath or -rpath-link)
各位看了快给点意见啊,这个不解决项目进行不下去了,愁啊
[agent@localhost src]$ make
rm -f /home/agent/bin/bms_server
buildap -L/lib -L/precomp/lib -o aptmp.a -n /home/agent/bin/bms_server
/usr/bin/ld: warning: libnnz10.so, needed by /home/agent/lib/libclntsh.so, not found (try using -rpath or -rpath-link)
/home/agent/lib/libclntsh.so: undefined reference to `nzos_ServiceWriteQueue'
/home/agent/lib/libclntsh.so: undefined reference to `nzosCipherSpecToStr'
/home/agent/lib/libclntsh.so: undefined reference to `__intel_cpu_indicator'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setCRLPath'
/home/agent/lib/libclntsh.so: undefined reference to `nzteOpenPersona'
/home/agent/lib/libclntsh.so: undefined reference to `nzdsi_initialize'
/home/agent/lib/libclntsh.so: undefined reference to `nztiee_IsEncrEnabled'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Initialize'
/home/agent/lib/libclntsh.so: undefined reference to `nzteMyCert'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_SetFuncvec'
/home/agent/lib/libclntsh.so: undefined reference to `A_X931RandomUpdate'
/home/agent/lib/libclntsh.so: undefined reference to `nzosSetCredential'
/home/agent/lib/libclntsh.so: undefined reference to `nzosaccrb_aysnCheckRecbuf'/home/agent/lib/libclntsh.so: undefined reference to `nztGetSubjectName'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Deinitialize'
/home/agent/lib/libclntsh.so: undefined reference to `nzstrfc_free_content'
/home/agent/lib/libclntsh.so: undefined reference to `nzosSetCipherSuite'
/home/agent/lib/libclntsh.so: undefined reference to `nzgbllsm_location_shared_memory'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Get_Ctx'
/home/agent/lib/libclntsh.so: undefined reference to `nztiGCC_Get_CertCtx'
/home/agent/lib/libclntsh.so: undefined reference to `nzteDestroyPersona'
/home/agent/lib/libclntsh.so: undefined reference to `nzduui2_destroy_ui'
/home/agent/lib/libclntsh.so: undefined reference to `nzssGEBV_GetEntryByValue'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Handshake'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setThrUse'
/home/agent/lib/libclntsh.so: undefined reference to `nzdcgui_get_userinfo'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Configure'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setCertValPolicy'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_OToolkitContext'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_DisableClientAuthentication'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_OpenWallet'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Write'
/home/agent/lib/libclntsh.so: undefined reference to `__intel_cpu_indicator_init'
/home/agent/lib/libclntsh.so: undefined reference to `nztiFIL_Free_Identity_List'
/home/agent/lib/libclntsh.so: undefined reference to `nztwRetrievePersonaCopy'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Read'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Destroy_Ctx'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setCertValProtocol'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setOIDConnInfo'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_enableHWAcc'
/home/agent/lib/libclntsh.so: undefined reference to `nzdst_terminate'
/home/agent/lib/libclntsh.so: undefined reference to `_intel_fast_memcpy'
/home/agent/lib/libclntsh.so: undefined reference to `nzosDestroyCredential'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_RetrievePersonaCopy'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_setCRLFile'
/home/agent/lib/libclntsh.so: undefined reference to `_intel_fast_memset'
/home/agent/lib/libclntsh.so: undefined reference to `nztSearchNZDefault'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_CompareDN'
/home/agent/lib/libclntsh.so: undefined reference to `nzosGetSupportedCipher'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_ModifyCipherSuites'
/home/agent/lib/libclntsh.so: undefined reference to `nzduui6_get_name'
/home/agent/lib/libclntsh.so: undefined reference to `nztwOpenWallet'
/home/agent/lib/libclntsh.so: undefined reference to `A_X931RandomGenerateBytes'/home/agent/lib/libclntsh.so: undefined reference to `nzos_Create_Ctx'
/home/agent/lib/libclntsh.so: undefined reference to `nztSetAppDefaultLocation'
/home/agent/lib/libclntsh.so: undefined reference to `nzssGS_GetSecret'
/home/agent/lib/libclntsh.so: undefined reference to `nztnGCL_Get_Certificate_List'
/home/agent/lib/libclntsh.so: undefined reference to `A_X931RandomInit'
/home/agent/lib/libclntsh.so: undefined reference to `nzosgpc_GetProtocolVer'
/home/agent/lib/libclntsh.so: undefined reference to `_intel_fast_memcmp'
/home/agent/lib/libclntsh.so: undefined reference to `nzos_Close'
/home/agent/lib/libclntsh.so: undefined reference to `nzosSCCS_SetCRLCacheSize'
/home/agent/lib/libclntsh.so: undefined reference to `nzhdcgldn_getldapdn'
/home/agent/lib/libclntsh.so: undefined reference to `nzdcfcx_free_cert_ctx'
/home/agent/lib/libclntsh.so: undefined reference to `nzosGetPeerCredential'
/home/agent/lib/libclntsh.so: undefined reference to `nzosgnc_GetNegotiatedCipher'
/home/agent/lib/libclntsh.so: undefined reference to `A_X931RandomContextDestroy'
/home/agent/lib/libclntsh.so: undefined reference to `nzuexid_initdl'
/home/agent/lib/libclntsh.so: undefined reference to `nztiGetSecInfo'
/home/agent/lib/libclntsh.so: undefined reference to `nztwCloseWallet'
/home/agent/lib/libclntsh.so: undefined reference to `nzssGSL_GetSecretLength'
collect2: ld returned 1 exit status
make: *** [/home/agent/bin/bms_server] Error 1
[解决办法]
libnnz10.so 这个貌似是Oracle的一个组件?
首先确认你的系统里是否有这个文件 find / -name libnnz10.so
如果有,可以软链接到/usr/lib 或者 /lib 下
如果没有,那估计你要编译一个Oracle,或者从一个相同系统中拷贝过来一个...
[解决办法]
编译时未连接libnnz10.so库!