Bug 1908951 - Undefined reference from libpoppler.so.101 caused failure of xournalpp build.
Summary: Undefined reference from libpoppler.so.101 caused failure of xournalpp build.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: poppler
Version: 34
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Marek Kašík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1909381 (view as bug list)
Depends On: 1908791
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-18 02:46 UTC by Luya Tshimbalanga
Modified: 2021-02-20 18:59 UTC (History)
10 users (show)

Fixed In Version: 21.01.0-5.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-20 18:59:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Luya Tshimbalanga 2020-12-18 02:46:40 UTC
Description of problem:
Undefined reference from libpoppler.so.101 caused failure of xournalpp build.

Version-Release number of selected component (if applicable):
0.90.0-8

How reproducible:
Always

Steps to Reproduce:
1.Scratch build a package like xournalpp
2.
3.

Actual results:
Undefined reference caused build failure

Expected results:
Build should be successful 

Additional info:
Scratch build result: 
https://koji.fedoraproject.org/koji/taskinfo?taskID=57680585

Tail from scratch build

/usr/bin/ld: warning: libsmime3.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnss3.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnspr4.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSContentInfo_GetContent'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECOID_FindOIDTag'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_NewTempCertificate'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_GetHashTypeByOidTag'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_NameToAscii'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetOrgName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_ExtractPublicKey'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECKEY_PublicKeyStrengthInBits'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetClassicOCSPEnabledSoftFailurePolicy'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_Verify'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_GetSigningTime'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Create'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_GetSigningCertificate'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECITEM_FreeItem'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetDefaultCertDB'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignedData_GetDigestAlgs'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_IsInitialized.2'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCommonName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_CreateFromDER'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_GetError'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCertTimes'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_Free'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_IsSigned'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Destroy'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_End'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Update'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECKEY_DestroyPublicKey'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_Shutdown'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCertEmailAddress'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_PKIXVerifyCert'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECMOD_AddNewModule'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_CompareName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_ContentLevel'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignedData_GetSignerInfo'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `DER_GetInteger'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_Init'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_Alloc'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PR_ErrorToString'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_NoDB_Init'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_Destroy'
collect2: error: ld returned 1 exit status
gmake[2]: *** [test/CMakeFiles/test-util.dir/build.make:668: test/test-util] Error 1
gmake[2]: Leaving directory '/builddir/build/BUILD/xournalpp-1.0.20'
gmake[1]: *** [CMakeFiles/Makefile2:484: test/CMakeFiles/test-util.dir/all] Error 2
/usr/bin/ld: warning: libsmime3.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnss3.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnspr4.so, needed by /usr/lib64/libpoppler.so.101, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSContentInfo_GetContent'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECOID_FindOIDTag'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_NewTempCertificate'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_GetHashTypeByOidTag'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_NameToAscii'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetOrgName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_ExtractPublicKey'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECKEY_PublicKeyStrengthInBits'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetClassicOCSPEnabledSoftFailurePolicy'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_Verify'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_GetSigningTime'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Create'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignerInfo_GetSigningCertificate'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECITEM_FreeItem'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetDefaultCertDB'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignedData_GetDigestAlgs'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_IsInitialized.2'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCommonName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_CreateFromDER'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_GetError'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCertTimes'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_Free'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_IsSigned'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Destroy'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_End'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `HASH_Update'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECKEY_DestroyPublicKey'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_Shutdown'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_GetCertEmailAddress'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_PKIXVerifyCert'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `SECMOD_AddNewModule'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `CERT_CompareName'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSMessage_ContentLevel'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSSignedData_GetSignerInfo'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `DER_GetInteger'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_Init'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PORT_Alloc'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `PR_ErrorToString'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_NoDB_Init'
/usr/bin/ld: /usr/lib64/libpoppler.so.101: undefined reference to `NSS_CMSM

Comment 1 Marek Kašík 2020-12-18 10:02:52 UTC
Thank you for letting me know about this. I'm going to rebuild poppler.

Comment 2 Marek Kašík 2020-12-18 13:52:30 UTC
This is an issue in firefox (#1908791), it declares that it provides the libraries but they somehow are not available when the build of xournalpp tries to use them.
Btw, it is interesting that evince passes.
I'm setting dependency on the firefox bug for now.

Comment 3 Marek Kašík 2020-12-18 13:54:36 UTC
You could use the same workaround as Zbyszek used here probably:

https://src.fedoraproject.org/rpms/geeqie/c/70877540539d3592e583ddc14cdcf8edfb468ee6?branch=master

Comment 4 Luya Tshimbalanga 2020-12-19 02:14:14 UTC
Thank you for the suggestion. The workaround for the rawhide build worked.
https://koji.fedoraproject.org/koji/buildinfo?buildID=1660272

Comment 5 Jerry James 2020-12-19 15:14:43 UTC
*** Bug 1909381 has been marked as a duplicate of this bug. ***

Comment 6 Ben Cotton 2021-02-09 16:18:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 7 Luya Tshimbalanga 2021-02-20 18:59:29 UTC
Closing this report as it appears the issue is resolved.


Note You need to log in before you can comment on or make changes to this bug.