The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

Mozilla on AIX FAQ

Questions or comments to news://news.mozilla.org/netscape.public.mozilla.unix.

Authors: Jim Dunn <jdunn@netscape.com>


  1. OS Version
  2. What compiler should I use?
  3. How do I build?
  4. "Gdk-WARNING **:shmat failed!" error message
  5. Cross-compiler plugin/module compatibility, vtables, and name-mangling
  6. Toplevel bug (#18688) that is tracking the progress.

  • OS Version(s):
    • AIX 4.3.2 : To determine use the following command to get the version (uname -n to get the OS type)
        /usr/bin/lslpp -lc | /usr/bin/grep bos.rte: | /usr/bin/head -1 |  /usr/bin/cut -f3 -d:
  • What compiler should I use?

  • Right now we have only xlC 3.6.4 working.  We have played around with gcc/g++ but had problems dealing with the linker. 
    Compiler Good Bad Notes
    xlC 3.6.4.0* Nothing else is working as of yet. Weak C++ support, lots of special handling is required to build.  xlC 5.0  should fix this  problem but it isn't available yet.
    gcc 2.7.2 & egcs
  • Classic compiler, lots of support on many platforms.
  • Purify support
  • Hasn't produced a workable version. Bad integration with AIX's linker.  Not sure if this will be compatible with AIX's OJI component. Good luck in getting this to run!
    To determine what level of xlC you are using:
      /usr/bin/lslpp -lc | /usr/bin/grep xlC.rte: | /usr/bin/head -1 | /usr/bin/cut -f3 -d:
  • How do I build?
    • gtk & glib
      • We are currently using version 1.2.4 of both of these.
    • Due to a limitation of xlC 3.6.4 linker we need to make a shared 'gtk' library.  So if the gtk/gdk/gmodule libs are in say /usr/wpc/lib, do the following: (see #21117)
      • /usr/ibmcxx/bin/makeC++SharedLib_r -p1 -brtl -bso -o libshared_gtk.so -L/usr/wpc/lib -lgtk -lgdk -lgmodule -lXext -lX11 -lm
      • chmod +x libshared_gtk.so
      • true libshared_gtk.so
      • cp libshared_gtk.so /usr/wpc/lib
      • edit /usr/wpc/bin/gtk-config changing the 2nd to the last
      • line from "echo $libdirs -lgtk -lgdk $my_glib_libs -lXext -lX1 -lm" to "echo $libdirs -lshared_gtk -lXext -lX1 -lm"
    • pull the tree
      • cvs co mozilla/client.mk
      • cd mozilla
      • gmake -f client.mk pull_all
    • build
      • export CC=xlc_r
      • export CXX=xlC_r
      • export CFLAGS='-DAIX -DAIX4_3'
      • export CXXFLAGS='-DAIX -DAIX4_3'
      • export LDFLAGS='-brtl -bso'
      • add /usr/ibmcxx/bin & /usr/wpc/bin (where
      • autoconf/gmake/gtk-config... exist)
      • autoconf -l build/autoconf
      • gmake
  • "Gdk-WARNING **:shmat failed!" error message

  • You did not build the gtk shared library
  • Cross-compiler plugin/module compatibility, vtables, and name-mangling issues

  • These issues are still being fleshed out.
Copyright © 1998-2000 The Mozilla Organization.
Last modified February 3, 2000.