Menu

#281 Cannot compile pidgin-sipe from git

OBSOLETE_(1.19.x)
closed-works-for-me
nobody
Pidgin
5
2016-04-23
2015-04-10
No

I'm trying to compile pidgin sip from the git version.

commit a614f6d122879d199ced9dc1ca258d52b0eda75d
Merge: 69a7176 4f34ae0
Author: Stefan Becker <chemobejk@gmail.com>

Using default ./configure options

I'm running Pidgin 3.0.0devel (libpurple 3.0.0devel)

I'm getting the following error when I run make

/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -Werror -Wall -Wextra -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wdeprecated-declarations -Winit-self -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wunused-but-set-variable -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I./../api -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -MT libsipe_backend_la-purple-chat.lo -MD -MP -MF .deps/libsipe_backend_la-purple-chat.Tpo -c -o libsipe_backend_la-purple-chat.lo test -f 'purple-chat.c' || echo './'purple-chat.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -Werror -Wall -Wextra -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wdeprecated-declarations -Winit-self -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wunused-but-set-variable -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I./../api -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -MT libsipe_backend_la-purple-chat.lo -MD -MP -MF .deps/libsipe_backend_la-purple-chat.Tpo -c purple-chat.c -fPIC -DPIC -o .libs/libsipe_backend_la-purple-chat.o
purple-chat.c:223:6: error: unknown type name ‘PurpleMessage’
PurpleMessage *msg)
^

Let me know if you require any further information. Thank you for any help

Discussion

  • Stefan Becker

    Stefan Becker - 2015-04-10

    Can't reproduce. Closing as WORKSFORME.

    $ git lo
    a614f6d Merge tag '1.19.1' into mob
    
    $ hg id
    9d62816617b9 tip
    
    ...
    checking for PURPLE... yes
    configure: using package "purple-3".
    checking for purple voice and video support... ok
    checking for NICE... yes
    checking for _SIPE_MEDIA_RECHECK_PLEASE_IGNORE... yes
    configure: using package "gstreamer-0.10".
    checking for GSTREAMER... yes
    checking for TCP media transport... yes
    ...
    Build purple plugin
    PURPLE_CFLAGS  : -I/home/stefanb/git/pidgin-hg/../pidgin-install/include/libpurple -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
    PURPLE_LIBS    : -L/home/stefanb/git/pidgin-hg/../pidgin-install/lib -lpurple -lglib-2.0 
    Voice and video: enabled with TCP transport
    ...
    
    $ readelf --all --wide src/purple/.libs/libsipe.so | fgrep NEEDED | fgrep purple
     0x0000000000000001 (NEEDED)             Shared library: [libpurple.so.20]
    
    $ ls -lht pidgin-install/lib/libpurple.*
    -rwxr-xr-x. 1 stefanb stefanb 1.3K Apr 10 16:42 pidgin-install/lib/libpurple.la
    lrwxrwxrwx. 1 stefanb stefanb   19 Apr 10 16:42 pidgin-install/lib/libpurple.so -> libpurple.so.20.0.0
    lrwxrwxrwx. 1 stefanb stefanb   19 Apr 10 16:42 pidgin-install/lib/libpurple.so.20 -> libpurple.so.20.0.0
    -rwxr-xr-x. 1 stefanb stefanb 5.9M Apr 10 16:42 pidgin-install/lib/libpurple.so.20.0.0
    
    # cross-check: code does not use libpurple version 2 from system installation
    $ ls -lht /lib64/libpurple.*
    -rwxr-xr-x. 1 root root 1.4M Mar  9 16:19 /lib64/libpurple.so.0.10.11
    lrwxrwxrwx. 1 root root   20 Mar  9 16:19 /lib64/libpurple.so -> libpurple.so.0.10.11
    lrwxrwxrwx. 1 root root   20 Mar  9 16:19 /lib64/libpurple.so.0 -> libpurple.so.0.10.11
    
     
  • Stefan Becker

    Stefan Becker - 2015-04-10
    • status: open --> closed-works-for-me
     
  • Stephen Wright

    Stephen Wright - 2015-04-10

    Ok do you think having gstream-1.x could have any issues with pidgin sip?

     
  • Stefan Becker

    Stefan Becker - 2015-04-10

    No, only src/purple/purple-media.c includes gstreamer headers. You could try to cross check this by adding "--without-vv" to the configure command line.

     
  • Stefan Becker

    Stefan Becker - 2015-04-10

    I can only explain your error message with an unclean build environment, i.e. purple 2 and 3 header are visible during compilation:

    purple-chat.c:223:6: error: unknown type name PurpleMessage
    
    int sipe_purple_chat_send(PurpleConnection *gc,
                  int id,
    #if PURPLE_VERSION_CHECK(3,0,0)
                  PurpleMessage *msg)
    #else
                  const char *what,
    
    # purple 2 interfaces:
    $ find /usr/include/libpurple -type f | xargs fgrep -l 'PurpleMessage;'
    $
    
    # purple 3 interfaces:
    $ find ../pidgin-install/include/ -type f | xargs fgrep -l 'PurpleMessage;'
    ../pidgin-install/include/libpurple/message.h
    

    i.e. purple-chat.c included the purple 2 interface files.

     

    Last edit: Stefan Becker 2015-04-10

Log in to post a comment.