LNK1181: cannot open input file "dcmpstat.lib"

Compilation and installation of DICOMscope

Moderator: Moderator Team

Post Reply
Message
Author
omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

LNK1181: cannot open input file "dcmpstat.lib"

#1 Post by omarelgazzar » Mon, 2009-08-10, 22:15

Dear all,

I'm trying to build jInterface.dll but I get the following error:

LINK : fatal error LNK1181: cannot open input file "dcmpstat.lib"
Error executing link.exe.

Is it related to openssl installation?
Thank you

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier » Thu, 2009-08-20, 09:20

Did the "dcmpstat" module compile successfully or were there any errors?

omarelgazzar
Posts: 101
Joined: Wed, 2009-07-08, 16:06
Location: Oldenburg, Germany

#3 Post by omarelgazzar » Fri, 2009-08-21, 00:14

Thank you for your support. Now there is no problem in dcmpstat and it was compiled successfully. The problem now is in the "dcmsign". It has compilation errors.
"dcmsign.lib"
Compiling...
sicert.cxx
D:\Work\dicomscope\dsgui351\dcmtk\dcmsign\libsrc\sicert.cxx(166) : error C2664: 'd2i_X509' : cannot convert parameter 2 from 'unsigned char ** ' to 'const unsigned char ** '
Conversion loses qualifiers
Error executing cl.exe.

dcmsign.lib - 1 error(s), 0 warning(s)

And When trying to build jinterface.dll, I get the following errors..

Linking...
Creating library OpenSSL/jInterface.lib and object OpenSSL/jInterface.exp
dcmpstat.lib(dviface.obj) : error LNK2001: unresolved external symbol "public: static void __cdecl DcmSignature::initializeLibrary(void)" (?initializeLibrary@DcmSignature@@SAXXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall SiCertificateVerifier::~SiCertificateVerifier(void)" (??1SiCertificateVerifier@@UAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall SiCertificateVerifier::addTrustedCertificateDir(char const *,int)" (?addTrustedCertificateDir@SiCertificateVerifier@@QAE?AW4SI_E_Condition
@@PBDH@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: __thiscall SiCertificateVerifier::SiCertificateVerifier(void)" (??0SiCertificateVerifier@@QAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DcmSignature::~DcmSignature(void)" (??1DcmSignature@@UAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: static class DcmItem * __cdecl DcmSignature::findNextSignatureItem(class DcmItem &,class DcmStack &)" (?findNextSignatureItem@DcmSignature@@SAPAVDcmItem@@AAV2@AAVDcmStac
k@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall DcmSignature::detach(void)" (?detach@DcmSignature@@QAEXXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: char const * __thiscall SiCertificateVerifier::lastError(void)const " (?lastError@SiCertificateVerifier@@QBEPBDXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "char const * __cdecl siErrorConditionToString(enum SI_E_Condition)" (?siErrorConditionToString@@YAPBDW4SI_E_Condition@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: long __thiscall SiCertificate::getCertKeyBits(void)" (?getCertKeyBits@SiCertificate@@QAEJXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall SiCertificate::getCertValidityNotAfter(class OFString &)" (?getCertValidityNotAfter@SiCertificate@@QAEXAAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall SiCertificate::getCertValidityNotBefore(class OFString &)" (?getCertValidityNotBefore@SiCertificate@@QAEXAAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: long __thiscall SiCertificate::getCertSerialNo(void)" (?getCertSerialNo@SiCertificate@@QAEJXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall SiCertificate::getCertIssuerName(class OFString &)" (?getCertIssuerName@SiCertificate@@QAEXAAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall SiCertificate::getCertSubjectName(class OFString &)" (?getCertSubjectName@SiCertificate@@QAEXAAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: long __thiscall SiCertificate::getX509Version(void)" (?getX509Version@SiCertificate@@QAEJXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum E_KeyType __thiscall SiCertificate::getKeyType(void)" (?getKeyType@SiCertificate@@QAE?AW4E_KeyType@@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentSignatureDateTime(class OFString &)" (?getCurrentSignatureDateTime@DcmSignature@@QAE?AW4SI_E_Condition@@AAVOFStrin
g@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentDataElementsSigned(class DcmAttributeTag &)" (?getCurrentDataElementsSigned@DcmSignature@@QAE?AW4SI_E_Condition@@A
AVDcmAttributeTag@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentMacXferSyntaxName(class OFString &)" (?getCurrentMacXferSyntaxName@DcmSignature@@QAE?AW4SI_E_Condition@@AAVOFStrin
g@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentMacName(class OFString &)" (?getCurrentMacName@DcmSignature@@QAE?AW4SI_E_Condition@@AAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentMacID(unsigned short &)" (?getCurrentMacID@DcmSignature@@QAE?AW4SI_E_Condition@@AAG@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::getCurrentSignatureUID(class OFString &)" (?getCurrentSignatureUID@DcmSignature@@QAE?AW4SI_E_Condition@@AAVOFString@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall SiCertificateVerifier::verifyCertificate(class SiCertificate &)" (?verifyCertificate@SiCertificateVerifier@@QAE?AW4SI_E_Condition@@AAVSiCe
rtificate@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: class SiCertificate * __thiscall DcmSignature::getCurrentCertificate(void)" (?getCurrentCertificate@DcmSignature@@QAEPAVSiCertificate@@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::verifyCurrent(void)" (?verifyCurrent@DcmSignature@@QAE?AW4SI_E_Condition@@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::selectSignature(unsigned long)" (?selectSignature@DcmSignature@@QAE?AW4SI_E_Condition@@K@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall DcmSignature::numberOfSignatures(void)" (?numberOfSignatures@DcmSignature@@QAEKXZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall DcmSignature::attach(class DcmItem *)" (?attach@DcmSignature@@QAEXPAVDcmItem@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: __thiscall DcmSignature::DcmSignature(void)" (??0DcmSignature@@QAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: static class DcmItem * __cdecl DcmSignature::findFirstSignatureItem(class DcmItem &,class DcmStack &)" (?findFirstSignatureItem@DcmSignature@@SAPAVDcmItem@@AAV2@AAVDcmSt
ack@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiSecurityProfile::checkAttributeList(class DcmItem &,class DcmAttributeTag &)" (?checkAttributeList@SiSecurityProfile@@UAEHAAVDcmItem@@AAVDcmAttr
ibuteTag@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiSecurityProfile::checkAttributeList(class DcmItem &)" (?checkAttributeList@SiSecurityProfile@@UAEHAAVDcmItem@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual enum SI_E_Condition __thiscall SiSecurityProfile::updateAttributeList(class DcmItem &,class DcmAttributeTag &)" (?updateAttributeList@SiSecurityProfile@@UAE?AW4S
I_E_Condition@@AAVDcmItem@@AAVDcmAttributeTag@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiNullProfile::attributeForbidden(class DcmTagKey const &)const " (?attributeForbidden@SiNullProfile@@UBEHABVDcmTagKey@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiNullProfile::attributeRequired(class DcmTagKey const &)const " (?attributeRequired@SiNullProfile@@UBEHABVDcmTagKey@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiNullProfile::isAllowableTransferSyntax(enum E_TransferSyntax)const " (?isAllowableTransferSyntax@SiNullProfile@@UBEHW4E_TransferSyntax@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiSecurityProfile::isAllowableAlgorithm(class SiAlgorithm const &)const " (?isAllowableAlgorithm@SiSecurityProfile@@UBEHABVSiAlgorithm@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiNullProfile::isAllowableAlgorithmType(enum E_KeyType)const " (?isAllowableAlgorithmType@SiNullProfile@@UBEHW4E_KeyType@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiSecurityProfile::isAllowableMAC(class SiMAC const &)const " (?isAllowableMAC@SiSecurityProfile@@UBEHABVSiMAC@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual int __thiscall SiNullProfile::isAllowableMACType(enum E_MACType)const " (?isAllowableMACType@SiNullProfile@@UBEHW4E_MACType@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall SiPrivateKey::~SiPrivateKey(void)" (??1SiPrivateKey@@UAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall SiRIPEMD160::~SiRIPEMD160(void)" (??1SiRIPEMD160@@UAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall DcmSignature::createSignature(class SiPrivateKey &,class SiCertificate &,class SiMAC &,class SiSecurityProfile &,enum E_TransferSyntax,int
,class DcmAttributeTag const *,class SiTimeStamp *)" (?createSignature@DcmSignature@@QAE?AW4SI_E_Condition@@AAVSiPrivateKey@@AAVSiCertificate@@AAVSiMAC@@AAVSiSecurityProfile@@W4E_TransferSyntax@@HPBVDcmAttributeTag@@PAVSiTimeStamp@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: __thiscall SiRIPEMD160::SiRIPEMD160(void)" (??0SiRIPEMD160@@QAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: int __thiscall SiPrivateKey::matchesCertificate(class SiCertificate &)" (?matchesCertificate@SiPrivateKey@@QAEHAAVSiCertificate@@@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall SiCertificate::~SiCertificate(void)" (??1SiCertificate@@UAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall SiCertificate::loadCertificate(char const *,int)" (?loadCertificate@SiCertificate@@QAE?AW4SI_E_Condition@@PBDH@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: __thiscall SiCertificate::SiCertificate(void)" (??0SiCertificate@@QAE@XZ)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: enum SI_E_Condition __thiscall SiPrivateKey::loadPrivateKey(char const *,int)" (?loadPrivateKey@SiPrivateKey@@QAE?AW4SI_E_Condition@@PBDH@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: void __thiscall SiPrivateKey::setPrivateKeyPasswd(char const *)" (?setPrivateKeyPasswd@SiPrivateKey@@QAEXPBD@Z)
dcmpstat.lib(dvsighdl.obj) : error LNK2001: unresolved external symbol "public: __thiscall SiPrivateKey::SiPrivateKey(void)" (??0SiPrivateKey@@QAE@XZ)
OpenSSL/jInterface.dll : fatal error LNK1120: 52 unresolved externals
Error executing link.exe.

jInterface.dll - 53 error(s), 0 warning(s)

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier » Tue, 2009-08-25, 08:17

You are probably using a newer version of OpenSSL than it was available at the time when we released DICOMscope 3.5.1 – btw, there is already a version 3.6.0.

This is how we solved this issue (also see DCMTK 3.5.4):

Code: Select all

#if OPENSSL_VERSION_NUMBER >= 0x00908000L
              // incompatible API change in OpenSSL 0.9.8
              const Uint8 *cdata = data;
              x509 = d2i_X509(NULL, &cdata, cert->getLength());
#else
              x509 = d2i_X509(NULL, &data, cert->getLength());
#endif

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest