AIXTOOLS, IBM AIX and POWER Portal

AIX => Applications => Topic started by: pravin.katkade on March 10, 2014, 10:58:10 AM

Title: Firefox not starting on AIX
Post by: pravin.katkade on March 10, 2014, 10:58:10 AM
hi,
I installed Firefox 3.6 with all prerequisit RPMs on AIX 6100-07-04-1216. When I am trying to start Firefox I am getting below error:

#firefox
exec(): 0509-036 Cannot load program /usr/mozilla/firefox/firefox-bin because of the following errors:
        0509-130 Symbol resolution failed for /usr/lib/libcairo.a[libcairo.so.2] because:
        0509-136   Symbol png_set_expand_gray_1_2_4_to_8 (number 223) is not exported from
                   dependent module /usr/lib/libpng12.a[libpng12.so.0].
        0509-026 System error: Error 0
        0509-192 Examine .loader section symbols with the
                 'dump -Tv' command.


Title: Re: Firefox not starting on AIX
Post by: Michael on March 17, 2014, 09:12:19 AM
back from vacation.
Let me think a bit on how to better debug what is wrong.

However, do please try dump -H for /usr/mozilla/firefox/firefox-bin

and check if there are multiple cairo libraries installed.

The solution will not be simple I fear. "firefox" is not something I have ever wanted to compile for myself, and I am wondering whether firefox 3.X on any platform is anywhere near current.

As a curiosity - what is the date of /usr/mozilla/firefox/firefox-bin?
Title: Re: Firefox not starting on AIX
Post by: pravin.katkade on March 21, 2014, 08:58:34 AM
Hi Michael,

I tried dump -H on firefox-bin. I am getting below error:

#dump -H /usr/mozilla/firefox/firefox-bin

/usr/mozilla/firefox/firefox-bin:
dump: /usr/mozilla/firefox/firefox-bin: 0654-108 file is not valid in the current object file mode.
        Use the -X option to specify the desired object mode.

Date of /usr/mozilla/firefox/firefox-bin:
#ls -l /usr/mozilla/firefox/firefox-bin
-r-xr-xr-x    1 bin      bin           19356 Jan 16 2013  /usr/mozilla/firefox/firefox-bin
Title: Re: Firefox not starting on AIX
Post by: Michael on March 24, 2014, 01:04:06 PM
That is a bit surprising. I have never needed it (the -X option) myself, but I am usually working - with self-compiled applications, in 32-bit mode.

Try adding either -X any, or switching between -X64 and -X 32 to see if the message changes, goes away, or comes back again.

I have downloaded the files, but have not had time to try an install myself.
Title: Re: Firefox not starting on AIX
Post by: pravin.katkade on April 03, 2014, 06:31:08 AM
Hi Michael,

Please find below output of dump

#dump -TX64 /usr/mozilla/firefox/firefox-bin

/usr/mozilla/firefox/firefox-bin:

                        ***Loader Section***

                        ***Loader Symbol Table Information***
[Index]      Value      Scn     IMEX Sclass   Type           IMPid Name

Title: Re: Firefox not starting on AIX
Post by: Michael on April 03, 2014, 07:02:46 AM
Not been at home long enough to get it loaded on my servers - and to make sure I attempt with the same versions of rpm

Please send output of
Code: [Select]
rpm -qa. and
Code: [Select]
lslpp -L | grep -i firefox and
Code: [Select]
oslevel -q -s | head and
Code: [Select]
oslevel -s
And also dump -X64 -H of the binary.

Thanks.
Title: Re: Firefox not starting on AIX
Post by: pravin.katkade on April 03, 2014, 08:30:22 AM
#rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
bash-3.0-1
tcl-8.4.7-3
tk-8.4.7-3
expect-5.42.1-3
atk-1.12.3-2
bash-doc-3.0-1
gzip-1.2.4a-10
tar-1.14-2
unzip-5.51-1
zip-2.3-3
AIX-rpm-6.1.6.15-3
cairo-1.10.0-1
fontconfig-2.4.2-1
freetype-1.3.1-9
gettext-0.10.40-8
zlib-1.2.3-4
libpng-1.2.8-6
libtiff-3.8.2-1
libjpeg-6b-6
xrender-0.9.1-3
xft-2.1.6-5
pango-1.14.5-4
xcursor-1.1.7-3
pixman-0.20.0-1
gtk2-2.10.6-5
glib-1.2.10-2
glib2-2.14.6-2
freetype2-2.3.9-1
freetype-demo-1.3.1-9
freetype-devel-1.3.1-9
cairo-devel-1.10.0-1
pkg-config-0.19-6
expat-2.0.1-2
zlib-devel-1.2.7-1
perl-5.8.2-1
glib2-devel-2.14.6-2
freetype2-devel-2.3.9-1
pango-devel-1.14.5-4
#lslpp -L | grep -i firefox
  Firefox.base.adt          3.6.25.2    C     F    Firefox Development Tools
  Firefox.base.rte          3.6.25.2    C     F    Firefox Web Browser
#oslevel -q -s | head
Known Service Packs
-------------------
6100-07-04-1216
6100-07-03-1207
6100-07-02-1150
6100-07-01-1141
6100-07-00-0000
6100-06-07-1207
6100-06-06-1140
6100-06-05-1115
6100-06-04-1112
6100-06-03-1048
#oslevel -s
6100-07-04-1216
#dump -X64 -H /usr/mozilla/firefox/firefox-bin

/usr/mozilla/firefox/firefox-bin:

                        ***Loader Section***
                      Loader Header Information
VERSION#         #SYMtableENT     #RELOCent        LENidSTR
0x00000001       0x00000054       0x0000008a       0x000000b4

#IMPfilID        OFFidSTR         LENstrTBL        OFFstrTBL
0x0000000b       0x000010b8       0x00000a78       0x0000116c


                        ***Import File Strings***
INDEX  PATH                          BASE                MEMBER
0      /usr/lib:/lib
1                                    libpthreads.a       shr_xpg5_64.o
2                                    libxul.so
3                                    libmozjs.so
4                                    libxpcom.so
5                                    libplds4.so
6                                    libplc4.so
7                                    libnspr4.so
8                                    libC.a              shr_64.o
9                                    libC.a              ansi_64.o
10                                   libc_r.a            shr_64.o
Title: Re: Firefox not starting on AIX
Post by: Michael on April 03, 2014, 08:11:48 PM
The download-prerequisites.sh script specifies some older versions and maybe it does not work with the latest RPM versions - as I have also seen that cairo has a higher version than the script suggests.

Have you tried only installing the rpm versions that the download-prerequisites.sh specifies? Maybe newer is not better.

Code: [Select]
...
# We feed all of these files into the download_and_checksum function.
cat <<EOF | while read info; do download_and_checksum $info; done
1679854831 316946 atk-1.12.3-2.aix5.2.ppc.rpm
886058499 996515 cairo-1.8.8-1.aix5.2.ppc.rpm
1212136997 160182 expat-2.0.1-1.aix5.2.ppc.rpm
2988482614 295348 fontconfig-2.4.2-1.aix5.2.ppc.rpm
2274001079 711492 freetype2-2.3.9-1.aix5.2.ppc.rpm
3313693538 710948 gettext-0.10.40-6.aix5.1.ppc.rpm
4200156380 1615082 glib2-2.12.4-2.aix5.2.ppc.rpm
4274783092 11784046 gtk2-2.10.6-4.aix5.2.ppc.rpm
3000838206 267086 libjpeg-6b-6.aix5.1.ppc.rpm
2364460881 493057 libpng-1.2.32-2.aix5.2.ppc.rpm
4097781457 792582 libtiff-3.8.2-1.aix5.2.ppc.rpm
906157937 892588 pango-1.14.5-4.aix5.2.ppc.rpm
3894468758 55509 xcursor-1.1.7-3.aix5.2.ppc.rpm
3429223428 120078 xft-2.1.6-5.aix5.1.ppc.rpm
2404858804 71653 xrender-0.9.1-3.aix5.2.ppc.rpm
2426580530 110689 zlib-1.2.3-3.aix5.1.ppc.rpm
1630615048 206727 pixman-0.12.0-3.aix5.2.ppc.rpm
EOF
Title: Re: Firefox not starting on AIX
Post by: Michael on April 03, 2014, 08:15:49 PM
p.s. another direction is to go to even newer versions of the RPM, where possible, using Michael Perlz packaging. e.g., cario is at ftp://www.oss4aix.org/RPMS/cairo/ and shows ftp://www.oss4aix.org/RPMS/cairo/cairo-1.12.14-1.aix5.1.ppc.rpm as most recent version.