Today I decided to upgrade Firefox to version 1.5. After compiling half way the error below shown up

[dean@gasing2 /usr/port/www/firefox]make install clean
.
.
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
.
.

I try to recompile back but still got the same error. After googling, the guy suggest to reinstall back /devel/nspr port.NSPR stand for Nestcape Portable Runtime. I dont know whats wrong with the old package. Maybe Firefox 1.5 need to use new library from NSPR port. After finish installing the nspr port I recompile back the Firefox port and walau the compiling going smoothly. For those impatient you can run the following command to install the Firefox binary

[dean@gasing2]#pkg-add -r firefox

-Update-

After resuming compiling there is another error as bellow.

ZILLA_CLIENT -include ../../../../mozilla-config.h nsNSSComponent.cpp
nsNSSComponent.cpp: In member function `virtual nsresult nsNSSComponent::LaunchS
martCardThread(SECMODModule*)’:
nsNSSComponent.cpp:585: error: `SECMOD_HasRemovableSlots’ undeclared (first use
this function)
nsNSSComponent.cpp:585: error: (Each undeclared identifier is reported only once
for each function it appears in.)
gmake[4]: *** [nsNSSComponent.o] Error 1
gmake[4]: Leaving directory `/usr/ports/www/firefox/work/mozilla/security/manage
r/ssl/src’
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/ports/www/firefox/work/mozilla/security/manage
r/ssl’
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/ports/www/firefox/work/mozilla/security/manage
r’
gmake[1]: *** [tier_50] Error 2
gmake[1]: Leaving directory `/usr/ports/www/firefox/work/mozilla’
gmake: *** [default] Error 2
*** Error code 2

Stop in /usr/ports/www/firefox.
Exit 1

Seems like I have many outdated software in my system. Need to use portupgrade to update all the software in my system. In the mean time I’ll resolve it manually by deinstall the /usr/port/security/nss and reinstall it back.

[dean@gasing2 /usr/port/security/nss] # make deinstall && make reinstall

After an hour the compiling is finish and I tought no more problem but lady luck is not on my side. When I try to launch Firefox the following error occured.

[dean@gasing2 ~]> firefox
/libexec/ld-elf.so.1: Shared object “libpangox-1.0.so.800″ not found, required by “libgtk-x11-2.0.so.600″

Ok, this problem is very easy to solve. It is because the library is outdated. To solve it you must do symbolic link to the old library. For example after searching for libpangox-10.so in the system I get the old library name that is libpangox-1.0.so.0. Use the command below to make the symbolic link.

[dean@gasing2 /usr/X11R6/lib]# ln -s libpangox-1.0.so.0 libpangox-1.0.so.800

I encounter a few others library missing. Just do it the same way. After that my Firefox showing up and at last I can install del.ico.us extension. This extension require Firefox 1.0 - 1.5.

ff_1.5.png