[Pidgin] #492: Pidgin does not compile with separate source dir

Pidgin trac at pidgin.im
Tue May 1 13:13:21 EDT 2007


#492: Pidgin does not compile with separate source dir
--------------------------+-------------------------------------------------
 Reporter:  bjoernv       |       Type:  defect
   Status:  new           |   Priority:  minor 
Component:  pidgin (gtk)  |    Version:  2.0   
 Keywords:                |    Pending:  0     
--------------------------+-------------------------------------------------
 I prefer to compile Pidgin with an separate source and build directories,
 e.g.:

 {{{
 $ mkdir pidgin-build
 $ cd pidgin-build
 $ ../pidgin-mtn/configure
 }}}

 Unfortunately such setups do not compile since some days because of
 incorrect handling of libpurple/version.h. version.h is searched in the
 source directory (e.g. pidgin-mtn/libpurple/version.h) but it is really
 created from version.h.in in my build directory (e.g. pidgin-
 build/libpurple/version.h).

 This is the first compilation error message:

 {{{
 $ cd pidgin-build
 $ make
 make  all-recursive
 make[1]: Entering directory `/var/soft/pidgin-build'
 Making all in libpurple
 make[2]: Entering directory `/var/soft/pidgin-build/libpurple'
 Making all in gconf
 make[3]: Entering directory `/var/soft/pidgin-build/libpurple/gconf'
 make[3]: Nothing to be done for `all'.
 make[3]: Leaving directory `/var/soft/pidgin-build/libpurple/gconf'
 Making all in plugins
 make[3]: Entering directory `/var/soft/pidgin-build/libpurple/plugins'
 Making all in perl
 make[4]: Entering directory `/var/soft/pidgin-
 build/libpurple/plugins/perl'
 if /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc
 -DHAVE_CONFIG_H -I. -I../../../../pidgin-mtn/libpurple/plugins/perl
 -I../../..  -DVERSION=\"2.0.0beta7\" -I../../../../pidgin-mtn -I
 ../../../../pidgin-mtn/libpurple -Wall  -Waggregate-return -Wcast-align
 -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-
 declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self
 -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wnested-
 externs -Wpointer-arith -Wundef -Wp,-D_FORTIFY_SOURCE=2 -pthread
 -I/var/soft/gnome2/gnome-2-2/include/glib-2.0
 -I/var/soft/gnome2/gnome-2-2/lib/glib-2.0/include    -D_REENTRANT
 -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe
 -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/usr/lib/perl5/5.8.8/i586-linux-thread-multi/CORE    -g -g -O2 -MT
 perl.lo -MD -MP -MF ".deps/perl.Tpo" -c -o perl.lo ../../../../pidgin-
 mtn/libpurple/plugins/perl/perl.c; \
         then mv -f ".deps/perl.Tpo" ".deps/perl.Plo"; else rm -f
 ".deps/perl.Tpo"; exit 1; fi
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:91:21: error:
 version.h: No such file or directory
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c: In function
 'probe_perl_plugin':
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:290: error:
 'PURPLE_MAJOR_VERSION' undeclared (first use in this function)
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:290: error: (Each
 undeclared identifier is reported only once
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:290: error: for each
 function it appears in.)
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:291: error:
 'PURPLE_MINOR_VERSION' undeclared (first use in this function)
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c: At top level:
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:592: error:
 'PURPLE_MAJOR_VERSION' undeclared here (not in a function)
 ../../../../pidgin-mtn/libpurple/plugins/perl/perl.c:593: error:
 'PURPLE_MINOR_VERSION' undeclared here (not in a function)
 make[4]: *** [perl.lo] Error 1
 make[4]: Leaving directory `/var/soft/pidgin-build/libpurple/plugins/perl'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/var/soft/pidgin-build/libpurple/plugins'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/var/soft/pidgin-build/libpurple'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/var/soft/pidgin-build'
 make: *** [all] Error 2
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/492>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list