Summary: | Openoffice-2.0.0 fails to build. Fails with undefined reference to `PK11_GetCertFromPrivateKey' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Kordik <mike> |
Component: | Current packages | Assignee: | Gentoo Office Team <office> |
Status: | RESOLVED INVALID | ||
Severity: | minor | CC: | bugs, h.mth, mjbjr, nix, pdcooper, robert.w.thomas |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mike Kordik
2005-11-09 04:49:59 UTC
Forgot to include the build output: ------------------------------ Making: ../unxlngi6.pro/lib/libxsec_xmlsec.so g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared -L../unxlngi6.pro/ lib -L../lib -L/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/oo o680-m3/solenv/unxlngi6/lib -L/var/tmp/portage/openoffice-2.0.0/work/ooo-build-2 .0.0.1/build/ooo680-m3/solver/680/unxlngi6.pro/lib -L/var/tmp/portage/openoffice -2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solenv/unxlngi6/lib -L/opt/blackdo wn-jdk-1.4.2.02/lib -L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386 -L/opt/blackdown- jdk-1.4.2.02/jre/lib/i386/client -L/opt/blackdown-jdk-1.4.2.02/jre/lib/i386/nati ve_threads -L/usr/lib -L/usr/lib/mozilla ../unxlngi6.pro/slo/xsec_xmlsec_version .o ../unxlngi6.pro/slo/xsec_xmlsec_description.o -o ../unxlngi6.pro/lib/libxsec_ xmlsec.so ../unxlngi6.pro/slo/baseencoding.o ../unxlngi6.pro/slo/biginteger.o .. /unxlngi6.pro/slo/certvalidity.o ../unxlngi6.pro/slo/saxhelper.o ../unxlngi6.pro /slo/xmldocumentwrapper_xmlsecimpl.o ../unxlngi6.pro/slo/xmlelementwrapper_xmlse cimpl.o ../unxlngi6.pro/slo/certificateextension_xmlsecimpl.o ../unxlngi6.pro/sl o/xmlstreamio.o ../unxlngi6.pro/slo/errorcallback.o ../unxlngi6.pro/slo/xsec_xml sec.o ../unxlngi6.pro/slo/securityenvironment_nssimpl.o ../unxlngi6.pro/slo/xmle ncryption_nssimpl.o ../unxlngi6.pro/slo/xmlsecuritycontext_nssimpl.o ../unxlngi6 .pro/slo/xmlsignature_nssimpl.o ../unxlngi6.pro/slo/x509certificate_nssimpl.o .. /unxlngi6.pro/slo/seinitializer_nssimpl.o ../unxlngi6.pro/slo/xsec_nss.o -luno_s al -luno_cppu -luno_cppuhelpergcc3 -luno_sal -lutl680li -lsvl680li -ltl680li -lc omphelp4gcc3 -luno_cppuhelpergcc3 -lxo680li -lxml2 -lxmlsec1 -lxmlsec1-nss -lnss 3 -lnspr4 -lplc4 -ldl -lpthread -lm -Wl,-Bdynamic -lstlport_gcc ../unxlngi6.pro/slo/securityenvironment_nssimpl.o(.text+0x297): In function `Nss PrivKeyToXCert(SECKEYPrivateKeyStr*)': /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecu rity/source/xmlsec/nss/securityenvironment_nssimpl.cxx:943: undefined reference to `PK11_GetCertFromPrivateKey' ../unxlngi6.pro/slo/x509certificate_nssimpl.o(.text+0x6fe): In function `X509Cer tificate_NssImpl::getNotValidBefore()': /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecu rity/source/xmlsec/nss/x509certificate_nssimpl.cxx:127: undefined reference to ` DER_DecodeTimeChoice' ../unxlngi6.pro/slo/x509certificate_nssimpl.o(.text+0x81e): In function `X509Cer tificate_NssImpl::getNotValidAfter()': /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecu rity/source/xmlsec/nss/x509certificate_nssimpl.cxx:156: undefined reference to ` DER_DecodeTimeChoice' collect2: ld returned 1 exit status dmake: Error code 1, while making '../unxlngi6.pro/lib/libxsec_xmlsec.so' '---* tg_merge.mk *---' ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-2.0.0/work/ ooo-build-2.0.0.1/build/ooo680-m3/xmlsecurity/util make: *** [stamp/build] Error 1 !!! ERROR: app-office/openoffice-2.0.0 failed. !!! Function src_compile, Line 203, Exitcode 2 !!! Build failed Did you try a revdep-rebuild? Also you could try to rebuild mozilla (nss is from mozilla in this case) and libxml2, maybe something is broken there. (In reply to comment #2) > Did you try a revdep-rebuild? Also you could try to rebuild mozilla (nss is from > mozilla in this case) and libxml2, maybe something is broken there. I did a revdep-rebuild and it rebuilt: gnome-python-extras gnome-system-monitor libfwbuilder fwbuilder gaim gnome-python-extras failed to rebuild with: nautilus_burn.override: In function `_wrap_nautilus_burn_recorder_write_tracks': nautilus_burn.override:99: error: too few arguments to function `nautilus_burn_recorder_write_tracks' as well as other similar errors but they look totally unrelated to the OO build problems. I also rebuilt: libxml2 and mozilla I re-emerged openoffice-2.0.0 and I got the same error as before. Do you have your mozilla built with the ssl-use-flag? (In reply to comment #4) > Do you have your mozilla built with the ssl-use-flag? Yes. # emerge -pv mozilla These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] www-client/mozilla-1.7.12-r2 +crypt -debug +gnome +ipv6 +java +ldap -mozcalendar -mozdevelop -moznocompose -moznoirc +moznomail -moznoxft +mozsvg -postgres +ssl +truetype -xinerama -xprint 0 kB Should I build it without it? No, ssl use flag should be fine. Still something in you mozilla / xml-chain has to be messed up (In reply to comment #6) > No, ssl use flag should be fine. Still something in you mozilla / xml-chain has > to be messed up Any other suggestions at this point? Thanks Try remerging openldap. It could be in openldap. (In reply to comment #8) > Try remerging openldap. It could be in openldap. I re-emerge openldap and openoffice but I get the same error. Thanks (In reply to comment #9) > (In reply to comment #8) > > Try remerging openldap. It could be in openldap. > > I re-emerge openldap and openoffice but I get the same error. > > Thanks I may have found something. kdelibs was compiled with kerberos but I no longer have kerberos installed. I am re-emerging kdelibs (and cyrus-sasl). When it is done I will try openoffice again. Nope. That wasn't it. Still the same problem. (In reply to comment #11) > Nope. That wasn't it. Still the same problem. I searched some more on the web and it appears that at some point there was an issue with OO needing PK11_GetCertFromPrivateKey from nss but mozilla was not exporting it. That seems to be my problem but it looked to be an old problem and fixed in mozilla-1.7.5. I currently have 1.7.12-r2. What version of mozilla do you have? I assume you guys can compile OO? Thanks I'm using mozilla-1.7.12-r2 and everything works fine, so this shouldn't be the root of the problem Could you check whether you have an old version of gecko-sdk installed? (In reply to comment #14) > Could you check whether you have an old version of gecko-sdk installed? # emerge -pv gecko-sdk These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-libs/gecko-sdk-1.7.12-r1 +crypt -debug +gnome +ipv6 +java +ldap -mozcalendar -mozdevelop -moznocompose -moznoirc +moznomail -moznoxft +mozsvg -postgres +ssl +truetype -xinerama -xprint 0 kB I don't have it installed at all. i got one user on my f.g.o thread with same error. at the end it was <=dev-libs/nss-3.9.3 package merged. if this is the case, 1) ugly solution: block OOo2 if dev-libs/nss is merged. rely on the user to switch that 'ssl' useflag on for mozilla build. that is insane. at least for me. 2) nice solution: ignore that 'ssl' useflag for mozilla build. depend on >=dev-libs/nspr-4.3 and >=dev-libs/nss-3.9.3. dev-libs/nss needs bump then. is there any reason not to bump to dev-libs/nss-3.9.3 or even newer? btw, i use dev-libs/nspr-4.6 and dev-libs/nss-3.10 for my OOo2 version without issues yet. ah, forgot to mention that ooo-build is prepared to use system nspr/nss. you only need to have nspr.pc and nss.pc pkg-config files which actually are not shipped with gentoo/upstream version?! (In reply to comment #17) > ah, forgot to mention that ooo-build is prepared to use system nspr/nss. > you only need to have nspr.pc and nss.pc pkg-config files which actually are not > shipped with gentoo/upstream version?! I am not 100% sure I understand what you are saying in number 1). Are you saying that I can get those symbols from mozilla if I compile it with ssl and don't have nss? I tried that but get the same error. In number 2), I guess you are telling me to wait for >=nss-3.9.4? It is not even in portage as unstable so it sounds like it will be a long wait. I am surprised then that I am one of the few people having problems. Thanks for the help! (In reply to comment #18) > that I can get those symbols from mozilla if I compile it with ssl and don't > have nss? I tried that but get the same error. there must be an old libnss3.so somewhere in the search paths of the linker. you may be got /usr/lib/libnss3.so? that is the case i know of. you may check: find /usr/lib/ -name "libnss3*" find /opt/blackdown-jdk-1.4.2.02/ -name "libnss3*" find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solenv/ -name "libnss3*" find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solver/680/unxlngi6.pro/ -name "libnss3*" find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecurity/ -name "libnss3*" > there must be an old libnss3.so somewhere in the search paths of the linker. > you may be got /usr/lib/libnss3.so? > that is the case i know of. > > you may check: > find /usr/lib/ -name "libnss3*" > find /opt/blackdown-jdk-1.4.2.02/ -name "libnss3*" > find > /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solenv/ > -name "libnss3*" > find > /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solver/680/unxlngi6.pro/ > -name "libnss3*" > find > /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecurity/ > -name "libnss3*" # find /usr/lib/ -name "libnss3*" /usr/lib/nvu/libnss3.so /usr/lib/mozilla-thunderbird/libnss3.so /usr/lib/libnss3.so /usr/lib/mozilla/libnss3.so /usr/lib/mozilla-firefox/libnss3.so # find /opt/blackdown-jdk-1.4.2.02/ -name "libnss3*" <nothing> # find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solenv/ -name "libnss3*" <nothing> # find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/solver/680/unxlngi6.pro/ -name "libnss3*" <nothing> # find /var/tmp/portage/openoffice-2.0.0/work/ooo-build-2.0.0.1/build/ooo680-m3/xmlsecurity/ -name "libnss3*" <nothing> Should I delete /usr/lib/libnss3.so and recompile OO? Thanks for your help. do: # emerge gentoolkit # equery belongs /usr/lib/libnss3.so if there is no package it belongs to you may delete it. @Andreas, how do you want to solve this issue with dev-libs/nss? (In reply to comment #21) > do: > # emerge gentoolkit > # equery belongs /usr/lib/libnss3.so > > if there is no package it belongs to you may delete it. > > @Andreas, how do you want to solve this issue with dev-libs/nss? # equery belongs /usr/lib/libnss3.so Showed nothing so I deleted it. I re-emerge openoffice and this time it worked. Thank you all for your help! Seems like this was caused by an old library in /usr/lib. The recent dev-libs/nss stores this in /usr/lib/nss so this shouldn't be a problem anymore. Closing this. Thanks anyone, especially Hanno for helping out *** Bug 114523 has been marked as a duplicate of this bug. *** *** Bug 114681 has been marked as a duplicate of this bug. *** Ive been tryin got sort this out as well . Ive been through all the options and got to the end dads cups # equery belongs /usr/lib/libnss3.so [ Searching for file(s) /usr/lib/libnss3.so in *... ] dev-libs/nss-3.8 (/usr/lib/libnss3.so) dads cups # find / -name libnss3.so /usr/lib/Nvu/libnss3.so /usr/lib/libnss3.so /usr/lib/mozilla/libnss3.so /usr/lib/mozilla-firefox/libnss3.so find: /proc/5441/task: No such file or directory dads cups # so which of these do i delete ? (In reply to comment #26) > Ive been tryin got sort this out as well . Ive been through all the options and got to the > end > dads cups # equery belongs /usr/lib/libnss3.so > [ Searching for file(s) /usr/lib/libnss3.so in *... ] > dev-libs/nss-3.8 (/usr/lib/libnss3.so) > dads cups # find / -name libnss3.so > /usr/lib/Nvu/libnss3.so > /usr/lib/libnss3.so > /usr/lib/mozilla/libnss3.so > /usr/lib/mozilla-firefox/libnss3.so > find: /proc/5441/task: No such file or directory > dads cups # > > so which of these do i delete ? Assuming: # equery belongs /usr/lib/libnss3.so returns nothing delete: /usr/lib/libnss3.so It is too early and I responded too fast. It was /usr/lib/libnss3.so that was causing the problem for me and deleting it allowed me to compile OO. Can you upgrade nss? Then I think you can delete /usr/lib/libnss3.so because nss-3.9.2-r2 stores it in a different place out of the search path. now fixed . I upgraded nss 3.8->3.9.2-r2 in theprocess of which /usr/lib/libnss3.so was removed and then oo2 emerged successfully. Thanks for the help *** Bug 121324 has been marked as a duplicate of this bug. *** *** Bug 140908 has been marked as a duplicate of this bug. *** *** Bug 145421 has been marked as a duplicate of this bug. *** |