Error in compiling

Help
Sean
2004-11-12
2013-04-22
  • Sean
    Sean
    2004-11-12

    I'm trying to compile gaim-encryption on Ubuntu, since there is no package for it, and the Debian package doesn't seem to work.

    ./configure seems to work happily enough, finds NSS libraries, gaim, etc.

    However, when running make install I get the following error:

    gcc -DHAVE_CONFIG_H -I. -I. -I. -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib/gaim/\" -DDATADIR=\"/usr/share\" -I/usr/include/gaim -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/mozilla/nss -I/usr/include/mozilla/nspr -DXTHREADS -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -g -O2 -c ge_blist.c  -fPIC -DPIC -o .libs/ge_blist.o
    ge_blist.c:1:19: blist.h: No such file or directory
    ge_blist.c:2:19: debug.h: No such file or directory
    ge_blist.c:3:22: gtkutils.h: No such file or directory
    In file included from ge_blist.c:5:
    ge_blist.h:7:23: gtkplugin.h: No such file or directory
    ge_blist.h:8:19: blist.h: No such file or directory
    In file included from ge_blist.c:5:
    ge_blist.h:12: error: parse error before '*' token
    ge_blist.h:14: warning: type defaults to `int' in declaration of `GaimAccount'
    ge_blist.h:14: error: parse error before '*' token
    In file included from ge_blist.c:6:
    state.h:17: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:17: error: parse error before '*' token
    state.h:18: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:18: error: parse error before '*' token
    state.h:20: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:20: error: parse error before '*' token
    state.h:21: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:21: error: parse error before '*' token
    state.h:24: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:24: error: parse error before '*' token
    state.h:27: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:27: error: parse error before '*' token
    state.h:28: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:28: error: parse error before '*' token
    state.h:31: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:31: error: parse error before '*' token
    state.h:34: warning: type defaults to `int' in declaration of `GaimAccount'
    state.h:34: error: parse error before '*' token
    ge_blist.c:9: warning: type defaults to `int' in declaration of `GaimAccount'
    ge_blist.c:9: error: parse error before '*' token
    ge_blist.c: In function `GE_get_buddy_default_autoencrypt':
    ge_blist.c:10: error: `GaimBuddy' undeclared (first use in this function)
    ge_blist.c:10: error: (Each undeclared identifier is reported only once
    ge_blist.c:10: error: for each function it appears in.)
    ge_blist.c:10: error: `buddy' undeclared (first use in this function)
    ge_blist.c:13: warning: implicit declaration of function `gaim_debug'
    ge_blist.c:13: error: `GAIM_DEBUG_MISC' undeclared (first use in this function)
    ge_blist.c:14: error: `account' undeclared (first use in this function)
    ge_blist.c:14: error: `buddyname' undeclared (first use in this function)
    ge_blist.c:18: warning: implicit declaration of function `gaim_find_buddy'
    ge_blist.c:18: error: `GaimAccount' undeclared (first use in this function)
    ge_blist.c:18: error: parse error before ')' token
    ge_blist.c:30: warning: implicit declaration of function `gaim_blist_node_get_bool'
    ge_blist.c: At top level:
    ge_blist.c:40: error: parse error before '*' token
    ge_blist.c: In function `buddy_autoencrypt_callback':
    ge_blist.c:43: error: `GAIM_DEBUG_INFO' undeclared (first use in this function)
    ge_blist.c:44: error: `buddy' undeclared (first use in this function)
    ge_blist.c:47: warning: implicit declaration of function `gaim_blist_node_set_bool'
    ge_blist.c: At top level:
    ge_blist.c:51: error: parse error before '*' token
    ge_blist.c: In function `GE_buddy_menu_cb':
    ge_blist.c:52: error: `GaimBlistNodeAction' undeclared (first use in this function)
    ge_blist.c:52: error: `action' undeclared (first use in this function)
    ge_blist.c:53: error: `GaimBuddy' undeclared (first use in this function)
    ge_blist.c:53: error: `buddy' undeclared (first use in this function)
    ge_blist.c:56: warning: implicit declaration of function `GAIM_BLIST_NODE_IS_BUDDY'
    ge_blist.c:56: error: `node' undeclared (first use in this function)
    ge_blist.c:58: error: parse error before ')' token
    ge_blist.c:63: warning: implicit declaration of function `gaim_blist_node_action_new'
    ge_blist.c:69: error: `menu' undeclared (first use in this function)
    make[2]: *** [ge_blist.lo] Error 1
    make[2]: Leaving directory `/home/francis/downloads/gaim-encryption-2.32'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/francis/downloads/gaim-encryption-2.32'
    make: *** [all-recursive-am] Error 2
    r

    ----

    I don't have a clue of where to find ge_blist or how to fix this. Any help? Thanks!

     
    • Bill Tompkins
      Bill Tompkins
      2004-11-13

      If you are using the Ubuntu Gaim package, ./configure should not have worked (at least, it doesn't work on my Ubuntu AMD64 box).  Debian doesn't have a Gaim-devel package that installs the headers, without which you can't compile the plugin.

      It looks like ./configure thought that it found the Gaim headers in /usr/include/gaim.  Does that directory exist, and have headers in it?  Also, run "locate gaim.pc" from the command line.  Do you have a gaim.pc left over from an old Gaim install?

      In order to get the plugin to compile, you'll either have to convince the Debian/Ubuntu maintainer for Gaim to produce a Gaim-devel package that properly installs the headers, or compile/install Gaim yourself (which is very straightforward, but you won't get nice updating from apt).

      -Bill

       
    • Sean
      Sean
      2004-11-15

      Thanks, Bill, for your time.

      /usr/include/gaim didn't exist. However, I did have a gaim.pc file. I think I had noticed that ./configure was asking for it, and so found it in the gaim source package and just copied it to the proper location. Obviously I'm a newbie who doesn't understand the ins and outs of how it all works :-)

      Once I removed gaim.pc, then ./configure failed, as you said.

      I'll try to see if the Debian maintainer for gaim will release a gaim-devel package. If not, I'll try installing GAIM from scratch. I was going to, but when I read the instructions from the GAIM site it seemed to be a bit above my level.

      Thanks again for responding.