Subject: mail/thunderbird-gtk2 fails to build on Solaris 10
To: None <tech-pkg@netbsd.org>
From: None <sigsegv@rambler.ru>
List: tech-pkg
Date: 03/07/2005 09:37:27
Greetings, I'm trying to build thunderbird on Solaris 10 and get the 
following error messages. Looks like it needs '-lnsl' flag for 
'gethostbyaddr'. Any ideas how to fix it?


gmake[2]: Entering directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer'
gmake[3]: Entering directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer/unix'
gmake[4]: Entering directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer/unix/wizard'
g++ -o mozilla-installer-bin -I/usr/pkg32/include 
-I/usr/pkg32/include/freetype2 -I/usr/include  -I/usr/openwin/include 
-fno-rtti -fno-exceptions -Wno-long-long -O -mcpu=ultrasparc -
O2 -I/usr/pkg32/include -I/usr/pkg32/include/freetype2 -I/usr/include 
-mcpu=ultrasparc -O2 -fshort-wchar -pthreads  -DNDEBUG -DTRIMMED 
-mcpu=ultrasparc -O2 -DXTHREADS -I/usr/pkg32/in
clude/gtk-2.0 -I/usr/pkg32/lib/gtk-2.0/include -I/usr/pkg32/include 
-I/usr/openwin/include -I/usr/pkg32/include/atk-1.0 
-I/usr/pkg32/include/pango-1.0 -I/usr/pkg32/include/freetype2
-I/usr/pkg32/include/glib/glib-2.0 -I/usr/pkg32/lib/glib-2.0/include 
nsINIParser.o nsXInstallerDlg.o nsComponent.o nsSetupType.o 
nsComponentList.o nsRunApp.o nsLicenseDlg.o nsWelc
omeDlg.o nsSetupTypeDlg.o nsComponentsDlg.o nsInstallDlg.o 
nsZipExtractor.o nsXIOptions.o nsXIContext.o nsXInstaller.o nsXIEngine.o 
   -Wl,-R/usr/pkg32/lib/thunderbird-gtk2  -L/usr/pk
g32/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5 
-Wl,-R/usr/pkg32/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5 
-L/usr/pkg32/gcc3/lib -Wl,-R/usr/pkg32/gcc3/lib -L/usr/pkg32/lib 
-Wl,-R/usr/p
kg32/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/openwin/lib 
-Wl,-R/usr/openwin/lib   -L../../../../../dist/bin 
-L../../../../../dist/lib -Wl,-R/usr/pkg32/lib -L/usr/pkg32/lib 
-lgtk-x11-2.0
  -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 
-lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -liconv 
   ../../../../../dist/lib/libjar50_s.a ../../../.
./../dist/lib/libxpnet_s.a -lpthread  -lsocket -ldl -lm  -lintl -liconv
Undefined                       first referenced
  symbol                             in file
gethostbyaddr 
../../../../../dist/lib/libxpnet_s.a(nsSocket.o)  (symbol belongs to 
implicit dependency /usr/lib/libnsl.so.1)
gethostbyname 
../../../../../dist/lib/libxpnet_s.a(nsSocket.o)  (symbol belongs to 
implicit dependency /usr/lib/libnsl.so.1)
inet_addr 
../../../../../dist/lib/libxpnet_s.a(nsSocket.o)  (symbol belongs to 
implicit dependency /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to 
mozilla-installer-bin
collect2: ld returned 1 exit status
gmake[4]: *** [mozilla-installer-bin] Error 1
gmake[4]: Leaving directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer/unix/wizard'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer/unix'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla/toolkit/mozapps/installer'
gmake[1]: *** [tier_99] Error 2
gmake[1]: Leaving directory 
`/usr/obj.pkg32/mail/thunderbird-gtk2/work/mozilla'
gmake: *** [default] Error 2
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/mail/thunderbird-gtk2
===>
===> There was an error during the ``build'' phase.
===> Please investigate the following for more information:
===>      * log of the build
===>      * /usr/obj.pkg32/mail/thunderbird-gtk2/work/.work.log
===>
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/mail/thunderbird-gtk2