Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111959 - Openoffice-2.0.0 fails to build. Fails with undefined reference to `PK11_GetCertFromPrivateKey'
Summary: Openoffice-2.0.0 fails to build. Fails with undefined reference to `PK11_GetC...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 114523 114681 121324 140908 145421 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-09 04:49 UTC by Mike Kordik
Modified: 2006-08-28 23:43 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kordik 2005-11-09 04:49:59 UTC
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
Comment 1 Mike Kordik 2005-11-09 04:50:54 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
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2005-11-09 10:18:57 UTC
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. 
Comment 3 Mike Kordik 2005-11-10 04:18:29 UTC
(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.
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2005-11-11 06:13:42 UTC
Do you have your mozilla built with the ssl-use-flag?
Comment 5 Mike Kordik 2005-11-11 06:58:59 UTC
(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?
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2005-11-15 22:27:53 UTC
No, ssl use flag should be fine. Still something in you mozilla / xml-chain has
to be messed up
Comment 7 Mike Kordik 2005-11-16 16:05:18 UTC
(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
Comment 8 Paul de Vrieze (RETIRED) gentoo-dev 2005-11-17 12:17:38 UTC
Try remerging openldap. It could be in openldap.
Comment 9 Mike Kordik 2005-11-18 03:48:01 UTC
(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
Comment 10 Mike Kordik 2005-11-18 04:32:37 UTC
(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.
Comment 11 Mike Kordik 2005-11-18 11:29:21 UTC
Nope. That wasn't it. Still the same problem.
Comment 12 Mike Kordik 2005-11-18 17:51:18 UTC
(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
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2005-11-20 12:00:26 UTC
I'm using mozilla-1.7.12-r2 and everything works fine, so this shouldn't be the
root of the problem
Comment 14 Paul de Vrieze (RETIRED) gentoo-dev 2005-11-20 12:37:31 UTC
Could you check whether you have an old version of gecko-sdk installed?
Comment 15 Mike Kordik 2005-11-20 12:40:08 UTC
(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.
Comment 16 Hanno Zysik (geki) 2005-11-25 04:17:17 UTC
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.
Comment 17 Hanno Zysik (geki) 2005-11-25 04:21:36 UTC
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?!
Comment 18 Mike Kordik 2005-11-25 13:02:14 UTC
(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!
Comment 19 Hanno Zysik (geki) 2005-11-25 14:45:39 UTC
(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*"
Comment 20 Mike Kordik 2005-11-26 05:11:17 UTC
> 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.
Comment 21 Hanno Zysik (geki) 2005-11-26 05:34:41 UTC
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?
Comment 22 Mike Kordik 2005-11-26 10:17:26 UTC
(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!
Comment 23 Andreas Proschofsky (RETIRED) gentoo-dev 2005-11-29 13:01:11 UTC
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
Comment 24 Andreas Proschofsky (RETIRED) gentoo-dev 2005-12-05 05:40:57 UTC
*** Bug 114523 has been marked as a duplicate of this bug. ***
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2005-12-06 17:41:48 UTC
*** Bug 114681 has been marked as a duplicate of this bug. ***
Comment 26 p cooper 2005-12-13 22:39:38 UTC
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 ?                                                
Comment 27 Mike Kordik 2005-12-14 05:39:58 UTC
(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
Comment 28 Mike Kordik 2005-12-14 05:45:50 UTC
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.
Comment 29 p cooper 2005-12-15 05:39:41 UTC
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  
Comment 30 Jakub Moc (RETIRED) gentoo-dev 2006-02-02 10:47:07 UTC
*** Bug 121324 has been marked as a duplicate of this bug. ***
Comment 31 Jakub Moc (RETIRED) gentoo-dev 2006-07-18 06:46:43 UTC
*** Bug 140908 has been marked as a duplicate of this bug. ***
Comment 32 Jakub Moc (RETIRED) gentoo-dev 2006-08-28 23:43:56 UTC
*** Bug 145421 has been marked as a duplicate of this bug. ***