Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2005 11:23:47 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        freebsd-ports@freebsd.org
Cc:        Anish Mistry <mistry.7@osu.edu>, bsdlogical <kwlogical@bellsouth.net>, Mike Hunter <mhunter@ack.berkeley.edu>
Subject:   Re: Firefox 1.0.7 build problems: Can anyone confirm?
Message-ID:  <200509271123.47367.kstewart@owt.com>
In-Reply-To: <20050927153742.GB36593@malcolm.berkeley.edu>
References:  <4338B7AE.9090806@bellsouth.net> <200509262324.09131.mistry.7@osu.edu> <20050927153742.GB36593@malcolm.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 27 September 2005 08:37 am, Mike Hunter wrote:
> On Sep 26, "Anish Mistry" wrote:
> > On Monday 26 September 2005 11:08 pm, bsdlogical wrote:
> > > I'm having build issues with Firefox 1.0.7. Here is the output:
> > >
> > > In file included from nsDNSService2.h:40,
> > >                  from nsDNSService2.cpp:38:
> > > nsHostResolver.h:95: error: ISO C++ forbids declaration of
> > > `PRAddrInfo' with no type
> > > nsHostResolver.h:95: error: expected `;' before '*' token
> > > nsHostResolver.h: In member function `PRBool
> > > nsHostRecord::HasResult() const':
> > > nsHostResolver.h:99: error: `addr_info' undeclared (first use
> > > this
> >
> > This has been discussed here before, check the archives.
> >
> > > Any suggestions? This is the first time I've tried compiling
> > > 1.0.7. Currently I run 1.0.6 with no problems. Thanks,
> > >
> > > bsdlogical
> >
> > You need to rebuild devel/nspr
>
> I came up against this recently and did find this suggestion and got
> past it.
>
> I don't mean to troll, but is there a reason why the port can't have
> a proper dependency on the correct version of nspr?  I'm just curious
> whether there's a problem with the port of if this problem isn't
> avoidable.

The dependancy is there. You all just didn't use it. For example, when I 
look at the build requirements of Firefox, I see

Port:   firefox-1.0.7_1,1
Path:   /usr/ports/www/firefox
Info:   Web browser based on the browser portion of Mozilla
Maint:  gnome@FreeBSD.org
Index:  www
B-deps: XFree86-fontEncodings-4.5.0 XFree86-fontScalable-4.5.0 XFree86-
        libraries-4.5.0 atk-1.9.1 bitstream-vera-1.10_1 expat-1.95.8_3
        fontconfig-2.2.3,1 freetype2-2.1.10_1 gettext-0.14.5 glib-2.6.6
        gmake-3.80_2 gtk-2.6.10_1 hicolor-icon-theme-0.5 intltool-0.34.1 
        jpeg-6b_3 libIDL-0.8.6 libXft-2.1.7 libiconv-1.9.2_1
        libxml2-2.6.22 nspr-4.6_1 nss-3.10 p5-XML-Parser-2.34_1
        pango-1.8.2 perl-5.8.7 pkgconfig-0.17.2 png-1.2.8_2
        shared-mime-info-0.16_1 tiff-3.7.4 zip-2.3_2 

When you have port build problems and before you complain about it to a 
list, you really should first check to see if all of the dependancies 
were built first. For example, 
"portugrade -R firefox" 
would build the dependancies first. I have also found that if your 
system is sufficiently out of date,  forcing the rebuild of all of the 
dependancies may be necessary. If that doesn't work, then it is time to 
complain to the list. FWIW, Portmanage has similar capabilities. 

If you just walk in and just build firefox manually, you don't really 
understand the port system. Of course, it only takes something like 
this to enlighten you :).

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509271123.47367.kstewart>