I have tried to build Openoffice-2.0.0 several times and it fails towards the end with various errors, such as, undefined reference to `PK11_GetCertFromPrivateKey'. Error code 1, while making '../unxlngi6.pro/lib/libxsec_xmlsec.so'. I searched the web and found that PK11_GetCertFromPrivateKey is part of nss so I re-emerged it but I still get the same error. I can workaround by emerging openoffice-bin Reproducible: Always Steps to Reproduce: 1. emerge openoffice 2. 3. Actual Results: Failed to build Expected Results: Properly built openoffice Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r6, 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mtune=athlon-xp -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://wendy/portage" USE="x86 3dnow X Xaw3d aac aalib acl alsa ansi apache2 apm artworkextra audiofile avi bash-completion berkdb bitmap-fonts bonobo boo bzip2 c++ cdb cdr cgi cli crypt ctype cups curl dba dv dvd dvdread eds emacs emboss encode esd ethereal exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif glut gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hbci howl idn imagemagick imap imlib ipv6 java jikes jpeg junit lcms ldap libcaca libg++ libwww mad math mhash mikmod mmx mng mozilla moznomail mozsvg mp3 mpeg mysql ncurses nls nptl nvidia odbc ofx ogg oggvorbis openal opengl oss pam pcre pdflib pdo-external perl php png ppds python quicktime readline real ruby samba scanner sdl session simplexml slang soap speex spell sqlite sse ssl svga tcltk tcpd tetex threads tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs xine xml xml2 xmms xsl xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
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. ***