Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Xeon(TM) CPU 3.60GHz Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/nfs/misc/icegov-sys/portage-packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/nfs/misc/icegov-sys/portage-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X X509 Xaw3d a52 aac aalib accessibility acpi aim alsa apache2 apm arts audiofile avi bcmath berkdb bidi bitmap-fonts blas bzip2 calendar cdparanoia cdr crypt ctype cups curlwrappers dba dbase dbm dbus dbx dga diet divx4linux doc dv dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd evo examples exif expat fam fastcgi ffmpeg fftw firefox flac flash flatfile foomaticdb fortran freewnn ftp gb gd gdbm ggi gif gimpprint ginac glut gnome gnustep gnutls gpgme gpm graphviz gstreamer gtk gtk2 gtkhtml hal hardenedphp iconv icq idn imagemagick imap imlib inifile innodb ipv6 jabber java javascript jpeg jpeg2k kde kdeenablefinal kerberos ladcca lapack lcms ldap leim libcaca libg++ libgda libwww lm_sensors mad mailwrapper mbox memlimit mikmod milter mime mmap mmx mng motif mozsvg mp3 mpeg mpi msn mule mysql mysqli ncurses netcdf nls nptl nsplugin odbc ofx ogg oggvorbis opengl oscar oss pam pcntl pcre pda pdflib perl plotutils png portaudio posix postgres ppds python qt quicktime radius rdesktop readline real samba sample sasl sdk sdl session sharedext sharedmem simplexml slang sndfile soap sockets sox speex spell spl sqlite sse sse2 ssl svga symlink sysvipc tcltk tcpd tetex theora tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis win32codecs wmf wxwindows xine xml2 xmlrpc xmms xpm xprint xsl xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
If openoffice 2.0.1 and nss-db 2.2 are both emerged, trying to run openoffice gives the following message /usr/lib/openoffice/program/soffice.bin: symbol lookup error: /lib/libnss_db.so.2: undefined symbol: db_create_4002 You can get one of the openoffice programs to run (poorly) if you export the libdb-4.2 via LD_PRELOAD e.g. LD_PRELOAD=/usr/lib/libdb-4.2.so oowriter2 While some of the openoffice programs will run in this condition, difficulties arise with closing them cleanly.
I confirm this bug as I have both sys-libs/nss-db-2.2.3_pre1-r1 and app-office/openoffice-2.0.1 and several things don't work. At startup I also have: pal@avalon ~ $ ooffice2 /usr/lib/openoffice/program/soffice.bin: symbol lookup error: /lib/libnss_db.so.2: undefined symbol: db_create_4002
same problem here emerge info Portage 2.0.53 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.14-suspend2-r7 i686) ================================================================= System uname: 2.6.14-suspend2-r7 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz Gentoo Base System version 1.6.14 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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.16.1 sys-devel/libtool: 1.4.3-r4, 1.5.20 virtual/os-headers: 2.4.19-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=i586 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=i586 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror/gentoo-portage/" USE="x86 X aalib acl alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bonobo browserplugin bzip2 cdr crypt cups curl directfb dri dts eds emboss encode esd ethereal exif expat fam ffmpeg flac foomaticdb fortran gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imlib ipv6 java jpeg kde kerberos lcms ldap libcaca libg++ libwww mad matroska mikmod mng motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sasl scanner sdl slang slp snmp speex spell sqlite ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xinerama xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS eix -vlI nss-db * sys-libs/nss-db Available versions: 2.2-r1 2.2.3_pre1 2.2.3_pre1-r1 Installed: 2.2.3_pre1-r1 Homepage: http://sources.redhat.com/glibc/ Description: Allows important system files to be stored in a fast database file rather than plain text License: GPL-2 LGPL-2 Found 1 matches eix -vlI ^db$ * sys-libs/db Available versions: 1.85-r1 1.85-r2 ~ 1.85-r3 3.2.9-r10 4.0.14-r2 4.0.14-r3 4.1.25_p1-r3 4.1.25_p1-r4 ~ 4.1.25_p2 4.2.52_p2 4.2.52_p2-r1 ~ 4.2.52_p4 [M] 4.3.27 [M] 4.3.29 [M] 4.4.20 Installed: 1.85-r2 3.2.9-r9 4.0.14-r2 4.1.25_p1-r4 4.2.52_p2 Homepage: http://www.sleepycat.com/ Description: Berkeley DB License: DB Found 1 matches eix -vlI openoffice-bin * app-office/openoffice-bin Available versions: 2.0.1 2.0.2 Installed: 2.0.2 Homepage: http://www.openoffice.org/ Description: OpenOffice productivity suite License: LGPL-2 Found 1 matches regards the2nd
Ok, openoffice has it's internal libdb. It actually has the same version. As this library has the same soname as the one used by libnss_db this will not work. These libraries are not the same because of symbol name mangling. The reason this happens is because of the design of the dynamic linking system that ELF/linux uses. What you could try is to build nss-db with another version of db. If you would like to try the 4.3 version, that would be ok, but you need to apply the patch in bug #126396 for now, because nss-db makes assumptions about db. You could also try db-4.1 (that would mean temporarilly unmerging db-4.2, but also that your database may become unusable (I'm not all that good into nss-db)) when merging nss-db. There is a third (your on your own) option. That is try the patch I'll attach here on db-4.2. This patch basically backports db-4.3 and the new solution to conflicting symbols. I'm not sure whether it works, but it should be worth the try. The proper solution would probably be to fix the loading semantics. That's kindof hard though.
temporarily removing db-4.2 and emerging nss-db agains db-4.1 works for me thanks
Openoffice build breaks: [...] if gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I./unix/linux -I./unix -I./unix/linux/gnu -march=pentium3 -O2 -pipe -fomit-frame-pointer -MT sysintf.o -MD -MP -MF ".deps/sysintf.Tpo" -c -o sysintf.o sysintf.c; \ then mv -f ".deps/sysintf.Tpo" ".deps/sysintf.Po"; else rm -f ".deps/sysintf.Tpo"; exit 1; fi sysintf.c:150:3: #error "Utime NULL not supported" sysintf.c: In function `Do_touch': sysintf.c:152: error: syntax error before '}' token make[3]: *** [sysintf.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/dmake' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/dmake' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/openoffice-2.0.3/work/ooo-build-2.0.3.0/build/OOO_2_0_3/dmake' make: *** [stamp/build] Error 1 !!! ERROR: app-office/openoffice-2.0.3 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile openoffice-2.0.3.ebuild, line 251: Called die ---- samma ~ # emerge --pretend openoffice These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] app-office/openoffice-2.0.3 USE="xml -binfilter -cairo -debug -eds -firefox -gnome -gtk -java -kde -ldap -mono -odk -pam" LINGUAS="-af -ar -be_BY -bg -bn -bs -ca -cs -cy -da -de -el -en -en_GB -en_US -en_ZA -es -et -fa -fi -fr -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -lt -mk -nb -nl -nn -nr -ns -pa_IN -pl -pt -pt_BR -ru -rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -th -tn -tr -ts -vi -xh -zh_CN -zh_TW -zu" ---- samma ~ # emerge --info Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-samma i686) ================================================================= System uname: 2.6.16-samma i686 Pentium III (Coppermine) Gentoo Base System version 1.6.15 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 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-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dlloader encode esd gpm gtk2 imlib jpeg mad mikmod mmx moznocompose moznoroaming mp3 mpeg ncurses nls nptl ogg opengl pam pcre png qt3 qt4 readline sdl session sse ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_vesa video_cards_fbdev video_cards_sis video_cards_vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This should be fixed with openoffice-2.1.0 as we use db from the system now