Menu

compile help: 2.00beta5 on Solaris

2006-11-13
2013-01-14
  • Harvey King

    Harvey King - 2006-11-13

    I am using Solaris 10/SPARC, without root access.  Right now, I am using an hacked version of Gaim/2.0.0beta3.

    Gaim 1.5.x and 2.0beta3 tarball seems to be more 'self-contained,' in a sense it was a matter of hit ./configure and make.

    Ever since 2.0.0beta4, things are a lot different. a lot of things seems to be modulized, or in my case, a lot of libraries are "missing" if I am trying to compile it.  Problem fells in three catagories:  a) things I don't understand  b) things I thought I knew how to deals with, and c) things I knew about it but have no idea what to do. 

    I need help on all three catagories

    When I hit ./configure, I essentially get these following errors
    No package 'gtkspell' found
    No package 'sqlite3' found
    No package 'x11' found
    No package 'gstreamer-0.10' found
    No package 'meanwhile' found
    No package 'avahi-compat-howl' found
    No package 'howl' found
    No package 'silcclient' found
    No package 'silc' found
    No package 'libgadu' found

    Things I don't understand:
    Question:  sqlite3 -  what is this for?
    I did fetched the sqlite3 tarball and I think I compiled and installed it (with some error which I conveniently ignored).  I would like to know why we need this?

    Question:  x11 - what does it mean it can't find x11 package?  i thought gnome desktop is built upon x11

    Given the fact that I have no root access and dealing with relatively outdated gtk/gnome environment, I thought sensible thing to do is simply *DISABLE* functions that require missing libraries.  The following is my actual ./configure line:

    ./configure --prefix=$HOME/test --disable-screensaver --disable-dbus --disable-libtool-lock --disable-sm --disable-gtkspell --disable-gevolution --disable-plugins --disable-gstreamer --disable-doxygen --without-libgadu --without-slic --without-slicclient --without-meanwhile --without-howl --without-avahi-compt-howl --disable-consoleui --disable-sound > /dev/null

    (yes, I pipe the output to /dev/null so all I see on the screen is error messages)

    The actual errors have reduced to:

    No package 'gstreamer-0.10' found
    No package 'meanwhile' found
    No package 'avahi-compat-howl' found
    No package 'howl' found
    No package 'silcclient' found
    No package 'silc' found
    No package 'libgadu' found

    Things I thought I knew what to do:
    So, I managed to disable dbus (not installed) and gtkspell (gtk is too old for gtkspell/2.0 to be compiled).   But I am having a such tough time disabling gstreamer!!!!

    Question:  How to disable gstreamer?   I am willing to disable sound completely!!! but it seems that ./configure script ignore my --disable-gstreamer flag.  Help!

    Things I have no idea what to do:
    Rest of the errors are these extra protocol plugins.   Given the circumstance I am in, I would like to simply skip those and stick with yahoo/aim/msn/icq/jabber. 

    Question:  what arguements/flags on ./configure which I can simply disable these protocols?  I have tried both --disable-slic and --without-slic  none of them worked.

    Any thoughts and pointers would be much appreciated.  I am stuck here, don't know what to do.

    Thanks in advance

    Harv
    ps. there are other problems when I enabled plugins, some strange error messages which I will bug you guys when *THIS* problem is resolved
    pss. don't want to bore you with config.log file.  if you think it helps, i'll attache it upon request.

     
    • Ka-Hing Cheung

      Ka-Hing Cheung - 2006-11-14

      Are you sure configure failed? Maybe it's just doing some of the tests when it should not. ./configure --help | grep with-dynamic-prpls for your last question.

       
    • Harvey King

      Harvey King - 2006-11-14

      Thanks.  What I did was I statically linked the stuff I wanted.  While it still complains about no package found, it managed to go through configure without issue.

      But 'make' blew up at the yahoo

      cc1: error: invalid option `t'

      What does it mean?

      Harv
      ps. the following are the output

      > ./configure --prefix=$HOME/test --disable-screensaver --disable-dbus --disable-libtool-lock --disable-sm --disable-gtkspell --disable-gevolution --disable-plugins --disable-gstreamer --disable-doxygen --with-static-prpls=yahoo,msn,toc,oscar,jabber,irc -q

      appending configuration tag "CXX" to libtool
      appending configuration tag "F77" to libtool
      Package x11 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `x11.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'x11' found
      Package gstreamer-0.10 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gstreamer-0.10.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gstreamer-0.10' found
      Package meanwhile was not found in the pkg-config search path.
      Perhaps you should add the directory containing `meanwhile.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'meanwhile' found
      Package avahi-compat-howl was not found in the pkg-config search path.
      Perhaps you should add the directory containing `avahi-compat-howl.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'avahi-compat-howl' found
      Package howl was not found in the pkg-config search path.
      Perhaps you should add the directory containing `howl.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'howl' found
      Package silcclient was not found in the pkg-config search path.
      Perhaps you should add the directory containing `silcclient.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'silcclient' found
      Package silc was not found in the pkg-config search path.
      Perhaps you should add the directory containing `silc.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'silc' found
      Package libgadu was not found in the pkg-config search path.
      Perhaps you should add the directory containing `libgadu.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'libgadu' found
      Building without DBUS support

      gaim 2.0.0beta5

      Build GTK+ 2.x UI............. : yes
      Build console UI.............. : no

      Protocols to build dynamically :
      Protocols to link statically.. : yahoo msn toc oscar jabber irc

      Build with GStreamer support.. : no
      Build with DBUS support....... : no
      SSL Library/Libraries......... : Mozilla NSS and GnuTLS
      Build with Cyrus SASL support. : no
      Use kerberos 4 with zephyr.... : no
      Use external libzephyr........ : no
      Has you....................... : yes

      Use XScreenSaver Extension.... : no
      Use X Session Management...... : no
      Use startup notification...... : yes
      Build with GtkSpell support... : no

      Build with plugin support..... : no
      Build with Mono support....... : no
      Build with Perl support....... : no
      Build with Tcl support........ : no
      Build with Tk support......... : no

      Print debugging messages...... : no
      Assertions are fatal.......... : no

      Gaim will be installed in /home/XYZ/test/bin.
      Warning: You have an old copy of gaim at /home/XYZ/bin/gaim.

      > make
      make  all-recursive
      Making all in libgaim
      Making all in gconf
      Making all in plugins
      Making all in ssl
      Making all in protocols
      Making all in yahoo
      if gcc -DHAVE_CONFIG_H -I. -I. -I../../..  -I../../../libgaim  -mt -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -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  -DGAIM_STATIC_PRPL -g -g -O2 -MT libyahoo_a-util.o -MD -MP -MF ".deps/libyahoo_a-util.Tpo" -c -o libyahoo_a-util.o `test -f 'util.c' || echo './'`util.c; \
      then mv -f ".deps/libyahoo_a-util.Tpo" ".deps/libyahoo_a-util.Po"; else rm -f ".deps/libyahoo_a-util.Tpo"; exit 1; fi
      cc1: error: invalid option `t'
      *** Error code 1
      make: Fatal error: Command failed for target `libyahoo_a-util.o'
      Current working directory /home/XYZ/tmp/install/gaim-2.0.0beta5/libgaim/protocols/yahoo
      *** Error code 1
      The following command caused the error:
      failcom='exit 1'; \
      for f in x $MAKEFLAGS; do \
        case $f in \
          *=* | --[!k]*);; \
          *k*) failcom='fail=yes';; \
        esac; \
      done; \
      dot_seen=no; \
      target=`echo all-recursive | sed s/-recursive//`; \
      list=' yahoo msn toc oscar jabber irc'; for subdir in $list; do \
        echo "Making $target in $subdir"; \
        if test "$subdir" = "."; then \
          dot_seen=yes; \
          local_target="$target-am"; \
        else \
          local_target="$target"; \
        fi; \
        (cd $subdir && make  $local_target) \
        || eval $failcom; \
      done; \
      if test "$dot_seen" = "no"; then \
        make  "$target-am" || exit 1; \
      fi; test -z "$fail"
      make: Fatal error: Command failed for target `all-recursive'
      Current working directory /home/XYZ/tmp/install/gaim-2.0.0beta5/libgaim/protocols
      *** Error code 1
      The following command caused the error:
      failcom='exit 1'; \
      for f in x $MAKEFLAGS; do \
        case $f in \
          *=* | --[!k]*);; \
          *k*) failcom='fail=yes';; \
        esac; \
      done; \
      dot_seen=no; \
      target=`echo all-recursive | sed s/-recursive//`; \
      list='gconf plugins protocols'; for subdir in $list; do \
        echo "Making $target in $subdir"; \
        if test "$subdir" = "."; then \
          dot_seen=yes; \
          local_target="$target-am"; \
        else \
          local_target="$target"; \
        fi; \
        (cd $subdir && make  $local_target) \
        || eval $failcom; \
      done; \
      if test "$dot_seen" = "no"; then \
        make  "$target-am" || exit 1; \
      fi; test -z "$fail"
      make: Fatal error: Command failed for target `all-recursive'
      Current working directory /home/XYZ/tmp/install/gaim-2.0.0beta5/libgaim
      *** Error code 1
      The following command caused the error:
      failcom='exit 1'; \
      for f in x $MAKEFLAGS; do \
        case $f in \
          *=* | --[!k]*);; \
          *k*) failcom='fail=yes';; \
        esac; \
      done; \
      dot_seen=no; \
      target=`echo all-recursive | sed s/-recursive//`; \
      list='libgaim doc  gtk m4macros po'; for subdir in $list; do \
        echo "Making $target in $subdir"; \
        if test "$subdir" = "."; then \
          dot_seen=yes; \
          local_target="$target-am"; \
        else \
          local_target="$target"; \
        fi; \
        (cd $subdir && make  $local_target) \
        || eval $failcom; \
      done; \
      if test "$dot_seen" = "no"; then \
        make  "$target-am" || exit 1; \
      fi; test -z "$fail"
      make: Fatal error: Command failed for target `all-recursive'
      Current working directory /home/XYZ/tmp/install/gaim-2.0.0beta5
      *** Error code 1
      make: Fatal error: Command failed for target `all'

       
      • Harvey King

        Harvey King - 2007-01-16

        The compile is didn't go through for sure.  The key problem,

        cc1: error: invalid option `t'

        is that gcc on Solaris couldn't handle the "t" flag. 

        Where in gaim src package I can modify so it doesn't insert the "t" flag?

        thanks

         
    • Bob Wickline

      Bob Wickline - 2006-11-27

      weird.  somehow configure inserted that -mt in your makefile.  try editing the makefile for yahoo and removing the -mt and recompile.

       
    • Bob Wickline

      Bob Wickline - 2007-01-16

      It's not a GAIM problem.  It's a gcc problem.  Edit: /usr/lib/pkgconfig/gthread-2.0.pc and remove "-mt" from the Cflags: row.

       
      • Harvey King

        Harvey King - 2007-01-18

        Thanks you so much.

        I don't have root access.  I can't just go to /usr/lib/pkgconfig/ and edit the gthread-2.0.pc file.

        What I did was I fetched a local copy of it on the net.  The Cflags lines, instead of -mt, has "-threads"

        I appended the pkgconfig path and lib path and compiled it.  It seems went through.

        but during linking, I got this error:

        /bin/bash ../libtool --silent --tag=CC --mode=link gcc  -g -g -O2    -o gaim -export-dynamic eggtrayicon.o  gaimcombobox.o gaimstock.o  gtkaccount.o gtkblist.o  gtkcelllayout.o  gtkcellrendererexpander.o  gtkcellrendererprogress.o  gtkcellview.o  gtkcellviewmenuitem.o  gtkconn.o gtkconv.o  gtkdebug.o gtkdialogs.o  gtkdnd-hints.o gtkdocklet.o  gtkdocklet-x11.o  gtkeventloop.o gtkexpander.o  gtkft.o gtkidle.o  gtkimhtml.o  gtkimhtmltoolbar.o gtklog.o  gtkmain.o gtkmenutray.o  gtknotify.o gtkplugin.o  gtkpluginpref.o gtkpounce.o  gtkprefs.o gtkprivacy.o  gtkrequest.o gtkroomlist.o  gtksavedstatuses.o  gtksession.o gtksound.o  gtksourceiter.o  gtkstatusbox.o gtkthemes.o  gtkutils.o gtkwhiteboard.o               -lstartup-notification-1  -lxml2 -lpthread -lz -lm -lsocket -lnsl  -L/home/hk152093/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lmlib -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  ../libgaim/libgaim.la -lsocket -lnsl -!
        lresolv
        Undefined                       first referenced
        symbol                             in file
        XFree                               eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XSync                               eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XSendEvent                          eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XGetWindowProperty                  eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XFlush                              eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XGrabServer                         eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XUngrabServer                       eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XGetSelectionOwner                  eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XInternAtom                         eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        XSelectInput                        eggtrayicon.o  (symbol belongs to implicit dependency /usr/lib/libX11.so.4)
        ld: fatal: Symbol referencing errors. No output written to .libs/gaim

        What does this mean?

        Harv