When trying to emerge gaim 2 beta 3 the build fails like this: /bin/sh ../../libtool --silent --tag=CC --mode=link i686-pc-linux-gnu-gcc -g -O2 -march=athlon-xp -pipe -o ssl-gnutls.la -rpath /usr/lib/gaim -module -avoid-version -lglib-2.0 ssl-gnutls.lo -lnsl -lresolv if /bin/sh ../../libtool --silent --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib/gaim/\" -I../../src -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/mozilla/include/nss -I/usr/lib/mozilla/include/nspr -g -O2 -march=athlon-xp -pipe -MT ssl-nss.lo -MD -MP -MF ".deps/ssl-nss.Tpo" -c -o ssl-nss.lo ssl-nss.c; \ then mv -f ".deps/ssl-nss.Tpo" ".deps/ssl-nss.Plo"; else rm -f ".deps/ssl-nss.Tpo"; exit 1; fi ssl-nss.c:37:22: pk11func.h: No such file or directory ssl-nss.c:39:20: secerr.h: No such file or directory ssl-nss.c:40:20: secmod.h: No such file or directory ssl-nss.c:41:17: ssl.h: No such file or directory ssl-nss.c:42:20: sslerr.h: No such file or directory ssl-nss.c:43:22: sslproto.h: No such file or directory ssl-nss.c: In function `ssl_nss_init_nss': ssl-nss.c:111: error: implicit declaration of function `NSS_NoDB_Init' ssl-nss.c:111: warning: nested extern declaration of `NSS_NoDB_Init' ssl-nss.c:119: error: implicit declaration of function `SECMOD_AddNewModule' ssl-nss.c:119: warning: nested extern declaration of `SECMOD_AddNewModule' ssl-nss.c:121: error: implicit declaration of function `NSS_SetDomesticPolicy' ssl-nss.c:121: warning: nested extern declaration of `NSS_SetDomesticPolicy' ssl-nss.c: At top level: ssl-nss.c:128: error: syntax error before "ssl_auth_cert" ssl-nss.c:130: warning: return type defaults to `int' ssl-nss.c:130: warning: no previous prototype for 'ssl_auth_cert' ssl-nss.c: In function `ssl_auth_cert': ssl-nss.c:131: error: `SECSuccess' undeclared (first use in this function) ssl-nss.c:131: error: (Each undeclared identifier is reported only once ssl-nss.c:131: error: for each function it appears in.) ssl-nss.c: At top level: ssl-nss.c:156: error: syntax error before "ssl_bad_cert" ssl-nss.c:157: warning: return type defaults to `int' ssl-nss.c:157: warning: no previous prototype for 'ssl_bad_cert' ssl-nss.c: In function `ssl_bad_cert': ssl-nss.c:158: error: `SECStatus' undeclared (first use in this function) ssl-nss.c:158: error: syntax error before "status" ssl-nss.c:162: error: `status' undeclared (first use in this function) ssl-nss.c:164: error: implicit declaration of function `PORT_GetError' ssl-nss.c:164: warning: nested extern declaration of `PORT_GetError' ssl-nss.c:168: error: `SEC_ERROR_INVALID_AVA' undeclared (first use in this function) ssl-nss.c:169: error: `SEC_ERROR_INVALID_TIME' undeclared (first use in this function) ssl-nss.c:170: error: `SEC_ERROR_BAD_SIGNATURE' undeclared (first use in this function) ssl-nss.c:171: error: `SEC_ERROR_EXPIRED_CERTIFICATE' undeclared (first use in this function) ssl-nss.c:172: error: `SEC_ERROR_UNKNOWN_ISSUER' undeclared (first use in this function) ssl-nss.c:173: error: `SEC_ERROR_UNTRUSTED_CERT' undeclared (first use in this function) ssl-nss.c:174: error: `SEC_ERROR_CERT_VALID' undeclared (first use in this function) ssl-nss.c:175: error: `SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE' undeclared (first use in this function) ssl-nss.c:176: error: `SEC_ERROR_CRL_EXPIRED' undeclared (first use in this function) ssl-nss.c:177: error: `SEC_ERROR_CRL_BAD_SIGNATURE' undeclared (first use in this function) ssl-nss.c:178: error: `SEC_ERROR_EXTENSION_VALUE_INVALID' undeclared (first use in this function) ssl-nss.c:179: error: `SEC_ERROR_CA_CERT_INVALID' undeclared (first use in this function) ssl-nss.c:180: error: `SEC_ERROR_CERT_USAGES_INVALID' undeclared (first use in this function) ssl-nss.c:181: error: `SEC_ERROR_UNKNOWN_CRITICAL_EXTENSION' undeclared (first use in this function) ssl-nss.c:182: error: `SECSuccess' undeclared (first use in this function) ssl-nss.c:186: error: `SECFailure' undeclared (first use in this function) ssl-nss.c: In function `ssl_nss_handshake_cb': ssl-nss.c:218: error: implicit declaration of function `SSL_ForceHandshake' ssl-nss.c:218: warning: nested extern declaration of `SSL_ForceHandshake' ssl-nss.c:218: error: `SECSuccess' undeclared (first use in this function) ssl-nss.c: In function `ssl_nss_connect_cb': ssl-nss.c:270: error: implicit declaration of function `SSL_ImportFD' ssl-nss.c:270: warning: nested extern declaration of `SSL_ImportFD' ssl-nss.c:270: warning: assignment makes pointer from integer without a cast ssl-nss.c:284: error: implicit declaration of function `SSL_OptionSet' ssl-nss.c:284: warning: nested extern declaration of `SSL_OptionSet' ssl-nss.c:284: error: `SSL_SECURITY' undeclared (first use in this function) ssl-nss.c:285: error: `SSL_HANDSHAKE_AS_CLIENT' undeclared (first use in this function) ssl-nss.c:287: error: implicit declaration of function `SSL_AuthCertificateHook'ssl-nss.c:287: warning: nested extern declaration of `SSL_AuthCertificateHook' ssl-nss.c:288: error: `SSLAuthCertificate' undeclared (first use in this function) ssl-nss.c:288: error: syntax error before "ssl_auth_cert" ssl-nss.c:290: error: implicit declaration of function `SSL_BadCertHook' ssl-nss.c:290: warning: nested extern declaration of `SSL_BadCertHook' ssl-nss.c:290: error: `SSLBadCertHandler' undeclared (first use in this function) ssl-nss.c:290: error: syntax error before "ssl_bad_cert" ssl-nss.c:293: error: implicit declaration of function `SSL_SetURL' ssl-nss.c:293: warning: nested extern declaration of `SSL_SetURL' ssl-nss.c:301: error: implicit declaration of function `SSL_ResetHandshake' ssl-nss.c:301: warning: nested extern declaration of `SSL_ResetHandshake' make[3]: *** [ssl-nss.lo] Error 1 make[3]: Leaving directory `/tmp/portage/gaim-2.0.0_beta3/work/gaim-2.0.0beta3/plugins/ssl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/portage/gaim-2.0.0_beta3/work/gaim-2.0.0beta3/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/gaim-2.0.0_beta3/work/gaim-2.0.0beta3' make: *** [all] Error 2 !!! ERROR: net-im/gaim-2.0.0_beta3 failed. Call stack: ebuild.sh, line 1526: Called dyn_compile ebuild.sh, line 923: Called src_compile gaim-2.0.0_beta3.ebuild, line 159: Called die !!! Make failed !!! If you need support, post the topmost build error, and the call stack if relevant. I have the unstable nss (that's a dep of this ebuild). Here is my emerge --info: Portage 2.1_pre7-r4 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15.1 i686) ================================================================= System uname: 2.6.15.1 i686 AMD Athlon(TM) XP 2800+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 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.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X alsa cups dbus gif gnome gtk2 hal jpeg mmx mmxext opengl png samba sse tiff truetype elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_fglrx" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS
*** This bug has been marked as a duplicate of 128043 ***
You marked bug http://bugs.gentoo.org/show_bug.cgi?id=128788 the same as http://bugs.gentoo.org/show_bug.cgi?id=128043 But it's _not_ the same bug, the first one is when compiling, while the second one is a runtime problem.
Ok, the problem is that gaim looks in /usr/lib/mozilla/{nss, nspr} for the include files, and they arent't there. They are in /usr/include/{nss, nspr} Making a symlink should work for me, I'm going to create a patch as soon as I find out where these paths come from :/
Apparently there were 2 wrong pkg config files in /usr/lib/pkgconfig, namely: mozilla-nspr.pc and mozilla-nss.pc. After removing those 2, everything compiled fine. Was this just on my system or could this be a bigger problem? I have mozilla and nss installed.
(In reply to comment #4) > Apparently there were 2 wrong pkg config files in /usr/lib/pkgconfig, namely: > mozilla-nspr.pc and mozilla-nss.pc. After removing those 2, everything compiled > fine. Was this just on my system or could this be a bigger problem? I have > mozilla and nss installed. > The problem is that gaim looks for mozilla proivided nss/nspr first if not found it moves on to straight nss/nspr.
the 2 files in pkgconfig have been removed, is this still an issue?
No, this one is solved now :)