Subject: Re: firefox and GSSAPI
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: tech-pkg
Date: 11/05/2004 16:45:27
Love --> tech-pkg (2004-11-02 21:51:44 +0100):
> 
> Jukka Salmi <j+nbsd@2004.salmi.ch> writes:
> 
> > Hi,
> >
> > I'm trying to build www/firefox-gtk2 with GSSAPI support on
> > NetBSD/i386 2.0_RC4 and -current systems. So far I only had
> > to change a AC_CHECK_HEADERS and a AC_CHECK_LIB argument to
> > make configure detect the Heimdal kerberos libraries from the
> > base system correctly. "make package" succeeded, at least I
> > didn't notice any error messages during the build. Furthermore
> > libnegotiateauth.so was built, but not installed. How is this
> > solved correctly? Is it enough to add
> >
> > 	lib/${MOZILLA}/components/libnegotiateauth.${SO_SUFFIX}
> >
> > to the PLIST? If not, what else should be done?
> 
> That should be it, remember to configure the domains negotiate is allowed
> to be used to.

Thanks for the hint.

This seems to work fine with firefox-gtk2-0.10.1 and mozilla-1.7.3nb1
most of the time, but somtimes both of them dump core. I noticed this
happens when accessing a .htaccess (AuthType Kerberos) protected page
using https.
I'm using mod_auth_kerb[1] 5.0-rc6 (built "manually") on apache-1.3.33
with ap-ssl-2.8.21nb1 built from current pkgsrc. So far I've never
seen a core dump when accessing http sites.

Unfortunately I didn't build with -g; what's the preferred way to
do this with pkgsrc, i.e. which variable should be include the -g?
CFLAGS? DBG? COPTS?

However, gdb bt's show (on NetBSD-current):

$ gdb /usr/pkg/lib/firefox-gtk2/firefox-bin firefox-bin.core
[...]
(gdb) bt
#0  0x487401b3 in kill () from /usr/lib/libc.so.12
#1  0x4875fb3c in raise () from /usr/lib/libc.so.12
#2  0x08054c0d in nsProfileLock::FatalSignalHandler(int) ()
#3  0x48718ecb in pthread__signal_deferred () from /usr/lib/libpthread.so.0
(gdb) quit
$ gdb /usr/pkg/lib/mozilla/mozilla-bin mozilla-bin.core
[...]
(gdb) bt
#0  0x4843e1b3 in kill () from /usr/lib/libc.so.12
#1  0x4845db3c in raise () from /usr/lib/libc.so.12
#2  0x4b985135 in ?? () from /usr/pkg/lib/mozilla/components/libprofile.so
#3  0x48416ecb in pthread__signal_deferred () from /usr/lib/libpthread.so.0
(gdb) quit


Any hints?


Cheers, Jukka

[1] http://modauthkerb.sourceforge.net/

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~