Menu

Building Beta 5 on Solaris 10/X86?

2007-01-14
2013-01-14
  • Bob Wickline

    Bob Wickline - 2007-01-14

    Trying to build 2.0.0-Beta5 on Solaris 10/X86 and I get the following:

    (a1483w:wick:gaim-2.0.0beta5) 91 --> ? gmake
    gmake  all-recursive
    gmake[1]: Entering directory `/home/wick/gaim-2.0.0beta5'
    Making all in libgaim
    gmake[2]: Entering directory `/home/wick/gaim-2.0.0beta5/libgaim'
    Making all in gconf
    gmake[3]: Entering directory `/home/wick/gaim-2.0.0beta5/libgaim/gconf'
    LC_ALL=C ../../intltool-merge -s -u -c ../../po/.intltool-merge-cache ../../po gaim.schemas.in gaim.schemas
    Generating and caching the translation database
    WARNING: ../../po/tr.po is not in UTF-8 but ISO-8859-9, converting...
    WARNING: ../../po/nb.po is not in UTF-8 but ISO-8859-1, converting...
    WARNING: ../../po/th.po is not in UTF-8 but tis-620, converting...
    WARNING: ../../po/en_GB.po is not in UTF-8 but iso-8859-1, converting...
    WARNING: ../../po/it.po is not in UTF-8 but iso-8859-1, converting...
    WARNING: ../../po/pl.po is not in UTF-8 but ISO-8859-2, converting...
    Merging translations into gaim.schemas.
    gmake[3]: Leaving directory `/home/wick/gaim-2.0.0beta5/libgaim/gconf'
    Making all in plugins
    gmake[3]: Entering directory `/home/wick/gaim-2.0.0beta5/libgaim/plugins'
    Making all in perl
    gmake[4]: Entering directory `/home/wick/gaim-2.0.0beta5/libgaim/plugins/perl'
    if /bin/bash ../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../..  -DVERSION=\"2.0.0beta5\" -I../../.. -I../../../libgaim -Wall  -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/local/lib/perl5/5.8.7/i86pc-solaris/CORE    -g -g -O2 -MT libgaimperl.lo -MD -MP -MF ".deps/libgaimperl.Tpo" -c -o libgaimperl.lo libgaimperl.c; \
    then mv -f ".deps/libgaimperl.Tpo" ".deps/libgaimperl.Plo"; else rm -f ".deps/libgaimperl.Tpo"; exit 1; fi
    cc1: error: invalid option `t'
    gmake[4]: *** [libgaimperl.lo] Error 1
    gmake[4]: Leaving directory `/home/wick/gaim-2.0.0beta5/libgaim/plugins/perl'
    gmake[3]: *** [all-recursive] Error 1
    gmake[3]: Leaving directory `/home/wick/gaim-2.0.0beta5/libgaim/plugins'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/home/wick/gaim-2.0.0beta5/libgaim'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/home/wick/gaim-2.0.0beta5'
    gmake: *** [all] Error 2

    It appears something in the configure process sets a '-mt' option in the Makefile for the variable GLIB_CFLAGS:

    GLIB_CFLAGS = -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

    Anyone know where this is coming from and how I can mask it out (outside of editing all the Makefiles)?

     
    • Harvey King

      Harvey King - 2007-01-16

      It's a Solaris thing.  I encounter the same problem on Solaris 10/SPARC.

      Apparently, the flag "t" (thread) is invalid on Solaris version of gcc.  If you go do a google search, you will find this is a common problem that is not gaim-specific.

      I don't know where is this flag "t" is generated from.  The best thing to do is find out where that flag is being configured and modify it.   Let me know if you hit any luck.

      Harv

       
    • Bob Wickline

      Bob Wickline - 2007-01-16

      Edit: /usr/lib/pkgconfig/gthread-2.0.pc

      and remove "-mt" from the Cflags: row.

      BTW - I had to specify "--disable-perl" and "--disable-consoleui" for it to build.  I would love the console GUI at some point.