Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 59889

Summary: Ximian-connector 1.4.7.2 ebuild needs nspr and nss but doesn't require them.
Product: Gentoo Linux Reporter: Paul Kronenwetter <kronenpj>
Component: New packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed ebuild patch

Description Paul Kronenwetter 2004-08-09 12:42:11 UTC
On a system without nspr installed the build of Ximian-connector fails wanting to link -lplc4 which is provided by nspr.
Comment 1 Paul Kronenwetter 2004-08-09 13:10:15 UTC
Created attachment 37116 [details, diff]
Proposed ebuild patch

Proposed patch.  Not sure if >=dev-libs/nspr-4 or nss-3 is correct, I haven't
tried all variations.

Just built connector again and the patched ebuild works.  For me at least :)
Comment 2 Paul Kronenwetter 2004-08-09 13:10:58 UTC
Updated summary.
Comment 3 foser (RETIRED) gentoo-dev 2004-08-09 15:11:43 UTC
what is the output ? This report is not half as informative as it could be : the situation with evo & nspr/nss is rather complicated and it would be much more useful if you let us interpret the error.
Comment 4 Paul Kronenwetter 2004-08-09 18:34:14 UTC
Ok, sorry.  I'll unload the three packages and update this again.  The machine is at work so it'll take me a few minutes...
Comment 5 Paul Kronenwetter 2004-08-09 18:50:16 UTC
...
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DCONNECTOR_PREFIX=\""/usr"\" -DCONNECTOR_LOCALEDIR=\""/usr/share/locale"\" -DCONNECTOR_DATADIR=\""/usr/share/ximian-connector/1.4"\" -DEVOLUTION_VERSION=\"1.4.6\"  -DORBIT2=1 -pthread -I/usr/include/soup-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0   -DORBIT2=1 -pthread -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/evolution-1.4 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/gal-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/freetype2/config -I/usr/include/libxml2 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2   -I.. -I../xntlm    -O2 -mcpu=i586 -march=i586 -pipe -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare  -c ebrowse.c
/bin/sh ../libtool --mode=link gcc  -O2 -mcpu=i586 -march=i586 -pipe -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare   -o ebrowse  ebrowse.o libexchange.a ../xntlm/libxntlm.a -L/usr/lib/evolution/1.4 -leutil -Wl,--export-dynamic -pthread -lsoup-2.0 -lbonobo-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0
mkdir .libs
gcc -O2 -mcpu=i586 -march=i586 -pipe -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -o ebrowse ebrowse.o -Wl,--export-dynamic  libexchange.a ../xntlm/libxntlm.a -L/usr/lib/evolution/1.4 /usr/lib/evolution/1.4/libeutil.so -L/usr/X11R6/lib /usr/lib/libgal-2.0.so -L/usr/lib /usr/lib/libgal-a11y-2.0.so /usr/lib/libgnomeprintui-2-2.so /usr/lib/libglade-2.0.so /usr/lib/libgnomeprint-2-2.so /usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so /usr/lib/libgnomeui-2.so /usr/lib/libgnome-keyring.so /usr/lib/libjpeg.so /usr/lib/libbonoboui-2.so -lSM -lICE -lX11 /usr/lib/libgnome-2.so /usr/lib/libesd.so /usr/lib/libasound.so /usr/lib/libaudiofile.so /usr/lib/libgnomevfs-2.so /usr/lib/libgconf-2.so /usr/lib/libxml2.so -lz -lssl -lcrypto -lrt /usr/lib/libgnomecanvas-2.so /usr/lib/libart_lgpl_2.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libpangoxft-1.0.so /usr/lib/libpangox-1.0.so /usr/lib/libpango-1.0.so -lplc4 -lplds4 -lnspr4 -pthread /usr/lib/libsoup-2.0.so /usr/lib/libbonobo-2.so /usr/lib/libbonobo-activation.so /usr/lib/libORBitCosNaming-2.so /usr/lib/libORBit-2.so /usr/lib/libpopt.so /usr/lib/libgobject-2.0.so -lm /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libgthread-2.0.so -lpthread /usr/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/lib/evolution/1.4 -Wl,--rpath -Wl,/usr/lib/evolution/1.4
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lplc4
collect2: ld returned 1 exit status
distcc[30881] ERROR: compile on localhost failed
make[2]: *** [ebrowse] Error 1
make[2]: Leaving directory `/var/tmp/portage/ximian-connector-1.4.7.2/work/ximian-connector-1.4.7.2/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ximian-connector-1.4.7.2/work/ximian-connector-1.4.7.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: mail-client/ximian-connector-1.4.7.2 failed.
!!! Function gnome2_src_compile, Line 38, Exitcode 2
!!! compile failure

#

And, just in case you're interested.  I didn't include it the first time because the ebuild didn't reference use variables except doc and debug.  Let me know if you need more.

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i586 -march=i586 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/export/home1/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirrors.tds.net/gentoo"
MAKEOPTS="-j6"
PKGDIR="/export/home1/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 apm arts avi berkdb cdr crypt dvd encode esd ethereal foomaticdb gd gdbm gif gnome gphoto2 gpm gps gtk guile imlib java jpeg junit ldap libg++ libwww mad mbox mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png postgres python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype trusted usb x86 xml2 xmms xv zlib"
Comment 6 Paul Kronenwetter 2004-10-07 12:48:43 UTC
If this one is handled, then another message comes up as:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lplds4

Then...

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnspr4

Then...

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lssl3

...
Comment 7 Alastair Tse (RETIRED) gentoo-dev 2004-10-08 02:58:16 UTC
which versions of nspr and nss are you using? were they on the system when you first merged ximian-connector? they are linked through evolution, i don't think ximian-connector depends on nss/nspr.
Comment 8 Paul Kronenwetter 2004-10-08 05:50:08 UTC
For what ever reason, the nspr and nss packages were not present on the system when ximian-connector-1.4.7.x was compiled originally or yesterday (after I had forgotten about this bug and already removed those packages to obtain the output in Comment #5).  

I recompiled the connector yesterday and successfully used the current stable versions:
[I--] [  ] dev-libs/nspr-4.4.1 (0)
[I--] [  ] dev-libs/nss-3.8 (0)

Operation of Evolution with the plugin as compiled above worked correctly with the Exchange server I use at work.

IIRC, Evolution was compiled on a different system and installed here as a binary.  Portage didn't have the chance to require these libraries.
Comment 9 Alastair Tse (RETIRED) gentoo-dev 2004-10-16 13:15:21 UTC
those are included either with dev-libs/nss or mozilla, the ebuild for evolution can take both. if you move a binary package to another machine and install it, and your useflags and installed packages are different, then it would make a difference.

i don't think we can suppose that atm, the deps are not directly needed for ximian but were extracted from the libtool files from evolution.