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)
Working this out now. Can you tell me what ldd reports for /usr/lib/gaim/ssl-nss.so?
Also can you attach the config.log from your build.
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
Created attachment 22545 [details] config.log of gaim-encryption with USE="mozilla"
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.
... 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 ()
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.
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.
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.
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).
See my notes in Bug 30071 about playing around with /etc/ld.so.conf.
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.
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.
FYI testing new patch works fine against standalone NSS and Mozilla 1.5. Emerging mozilla 1.6b now.
Everything works great and gaim-0.74-r2 is committed to portage CVS.