Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36115 - gaim encryption doesn't like moz > 1.5
Summary: gaim encryption doesn't like moz > 1.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gaim Bugs Crew
URL:
Whiteboard:
Keywords:
Depends on: 30071
Blocks:
  Show dependency tree
 
Reported: 2003-12-19 08:18 UTC by Bartosch Pixa (RETIRED)
Modified: 2004-01-02 12:06 UTC (History)
1 user (show)

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


Attachments
config.log of gaim-encryption with USE="mozilla" (gaim-encryption_mozilla_config.log,41.59 KB, text/plain)
2003-12-22 09:38 UTC, Don Seiler (RETIRED)
Details
config.log with USE="-mozilla" (gaim-encryption_nomoz_config.log,41.07 KB, text/plain)
2003-12-22 09:55 UTC, Don Seiler (RETIRED)
Details
Gaim-Encryption patch to work with Mozilla 1.6b (moz1.6.patch,3.42 KB, patch)
2004-01-01 21:31 UTC, Bill Tompkins
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosch Pixa (RETIRED) gentoo-dev 2003-12-19 08:18:32 UTC
ok, here's what i could find out so far:
- moz 1.6b comes with a nss that the gaim encryption plugin doesn't like
- gaim merged fine with USE="-mozilla" as the encryption plugin uses
  the separate nss ebuild we have
- gaim dies on startup when trying to load the encryption plugin
  as it tries to link to the nss libs in /usr/lib/mozilla instead 
  of /usr/lib/nss

# ldd /usr/lib/gaim/encrypt.so
        libdl.so.2 => /lib/libdl.so.2 (0x40035000)
        libplc4.so => /usr/lib/mozilla/libplc4.so (0x40038000)
        libplds4.so => /usr/lib/mozilla/libplds4.so (0x4003d000)
        libnspr4.so => /usr/lib/mozilla/libnspr4.so (0x40040000)
        libssl3.so => /usr/lib/mozilla/libssl3.so (0x40074000)
        libsmime3.so => /usr/lib/mozilla/libsmime3.so (0x40097000)
        libnss3.so => /usr/lib/mozilla/libnss3.so (0x400bb000)
        libsoftokn3.so => /usr/lib/mozilla/libsoftokn3.so (0x40128000)
        libc.so.6 => /lib/libc.so.6 (0x40199000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x402c7000)
Comment 1 Don Seiler (RETIRED) gentoo-dev 2003-12-22 07:45:30 UTC
Working this out now.

Can you tell me what ldd reports for /usr/lib/gaim/ssl-nss.so?
Comment 2 Don Seiler (RETIRED) gentoo-dev 2003-12-22 07:50:48 UTC
Also can you attach the config.log from your build.
Comment 3 Don Seiler (RETIRED) gentoo-dev 2003-12-22 09:33:58 UTC
OK I'm duplicating this now.

For the record, if you do tell it to USE="mozilla", gaim-encryption fails on compile here:

 gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/u
sr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I. -I./src -I/usr/lib/mozilla/include/n
spr -I/usr/lib/mozilla/include/nss -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/inc
lude -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr
/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../../s
rc/.. -Wall -march=pentium3 -O3 -pipe -c nss_pss.c  -fPIC -DPIC -o .libs/nss_pss
.o
nss_oaep.c:23:20: secrng.h: No such file or directory
nss_pss.c:23:20: secrng.h: No such file or directory
make: *** [nss_oaep.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [nss_pss.lo] Error 1

!!! ERROR: net-im/gaim-0.74-r1 failed.
!!! Function src_compile, Line 82, Exitcode 2
!!! Make failed for encryption
Comment 4 Don Seiler (RETIRED) gentoo-dev 2003-12-22 09:38:48 UTC
Created attachment 22545 [details]
config.log of gaim-encryption with USE="mozilla"
Comment 5 Don Seiler (RETIRED) gentoo-dev 2003-12-22 09:55:12 UTC
Created attachment 22546 [details]
config.log with USE="-mozilla"

Attaching config.log for USE="-mozilla" build.	This build actually compiled,
as reporter said.

ldd results are as follows:

 # ldd /usr/lib/gaim/encrypt.so 
	libdl.so.2 => /lib/libdl.so.2 (0x4002d000)
	libplc4.so => /usr/lib/mozilla/libplc4.so (0x40030000)
	libplds4.so => /usr/lib/mozilla/libplds4.so (0x40035000)
	libnspr4.so => /usr/lib/mozilla/libnspr4.so (0x40038000)
	libssl3.so => /usr/lib/mozilla/libssl3.so (0x4006e000)
	libsmime3.so => /usr/lib/mozilla/libsmime3.so (0x40090000)
	libnss3.so => /usr/lib/mozilla/libnss3.so (0x400b4000)
	libsoftokn3.so => /usr/lib/mozilla/libsoftokn3.so (0x40121000)
	libc.so.6 => /lib/libc.so.6 (0x40192000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x402c3000)

# ldd /usr/lib/gaim/ssl-nss.so 
	libdl.so.2 => /lib/libdl.so.2 (0x4001a000)
	libplc4.so => /usr/lib/mozilla/libplc4.so (0x4001d000)
	libplds4.so => /usr/lib/mozilla/libplds4.so (0x40022000)
	libnspr4.so => /usr/lib/mozilla/libnspr4.so (0x40025000)
	libssl3.so => /usr/lib/mozilla/libssl3.so (0x4005b000)
	libsmime3.so => /usr/lib/mozilla/libsmime3.so (0x4007d000)
	libnss3.so => /usr/lib/mozilla/libnss3.so (0x400a1000)
	libsoftokn3.so => /usr/lib/mozilla/libsoftokn3.so (0x4010e000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x4017f000)
	libc.so.6 => /lib/libc.so.6 (0x40194000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x402c6000)

Looks like they're still using the mozilla libs.
Comment 6 Don Seiler (RETIRED) gentoo-dev 2003-12-22 09:57:42 UTC
... and yes gaim crashes when starting up.  Here is gdb backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 1082)]
0x40a7fe98 in PK11_UnwrapPrivKey () from /usr/lib/mozilla/libnss3.so
(gdb) bt
#0  0x40a7fe98 in PK11_UnwrapPrivKey () from /usr/lib/mozilla/libnss3.so
#1  0x40b9146b in rsa_nss_make_key_from_str () from /usr/lib/gaim/encrypt.so
#2  0x40b8dc36 in GE_load_keys () from /usr/lib/gaim/encrypt.so
#3  0x40b8dd4b in GE_key_rings_init () from /usr/lib/gaim/encrypt.so
#4  0x40b8c1cf in GE_plugin_load () from /usr/lib/gaim/encrypt.so
#5  0x0807bd26 in gaim_plugin_load ()
#6  0x0807cbee in gaim_plugins_load_saved ()
#7  0x080f8ae4 in main ()
Comment 7 Don Seiler (RETIRED) gentoo-dev 2003-12-22 14:20:03 UTC
Regarding the error with trying to use mozilla libs.  Mozilla 1.6 beta does not supply secrng.h.  This file is supplied in Mozilla 1.4 and 1.5 that I've seen.  So that is something upstream with either Mozilla or gaim-encryption.
Comment 8 Don Seiler (RETIRED) gentoo-dev 2003-12-22 14:30:08 UTC
The gaim-encryption author is investigating this further.  I'm considering putting a cap of mozilla-1.5-r1 for use in gaim, but I don't know if this only applies to gaim-encryption and not the NSS activity that gaim uses for MSN.

I'll investigate further.
Comment 9 Don Seiler (RETIRED) gentoo-dev 2003-12-23 09:15:53 UTC
I commented out usage of secrng.h in gaim-encryption and was able to compile with mozilla-1.6_beta but it still segfaulted on launch with same backtrace as in Comment #6.

I still need to test with MSN.
Comment 10 Don Seiler (RETIRED) gentoo-dev 2003-12-23 09:40:07 UTC
There are NSS changes abound in both gaim and gaim-encryption CVS dealing with the initializing of those libraries.  I have no idea if those have any impact on Mozilla 1.6b because none of the gaim developers I've been able to speak with have tested with Mozilla 1.6b libs.

In the meantime I'm considering (pseudocode) if(ssl) (<=mozilla-1.5-r1).
Comment 11 Don Seiler (RETIRED) gentoo-dev 2003-12-23 21:21:45 UTC
See my notes in Bug 30071 about playing around with /etc/ld.so.conf.
Comment 12 Bill Tompkins 2004-01-01 21:31:33 UTC
Created attachment 22996 [details, diff]
Gaim-Encryption patch to work with Mozilla 1.6b

This patch should make Gaim-Encryption play nicely with the NSS distributed
with Mozilla 1.6b, and should work happily with earlier versions as well.  This
patch is now in Gaim-Encryption CVS, but I probably won't release 2.19 until
Gaim posts its next release.
Comment 13 Don Seiler (RETIRED) gentoo-dev 2004-01-02 07:49:36 UTC
Great news Bill thanks!  I'll have to test this patch with standalone NSS, Moz 1.5 and Moz 1.6b so assuming I spend all day re-installing mozilla and gaim the earliest this will get in is tonight.  This will most likely merit a -r2 new revision.

Thanks again.
Comment 14 Don Seiler (RETIRED) gentoo-dev 2004-01-02 09:40:50 UTC
FYI testing new patch works fine against standalone NSS and Mozilla 1.5.  Emerging  mozilla 1.6b now.
Comment 15 Don Seiler (RETIRED) gentoo-dev 2004-01-02 12:06:53 UTC
Everything works great and gaim-0.74-r2 is committed to portage CVS.