[Pidgin] #566: Perl plugin doesn't build when building in separate directory

Pidgin trac at pidgin.im
Thu May 3 00:19:04 EDT 2007


#566: Perl plugin doesn't build when building in separate directory
--------------------------+-------------------------------------------------
 Reporter:  ari           |       Type:  defect
   Status:  new           |   Priority:  minor 
Component:  pidgin (gtk)  |    Version:  2.0   
 Keywords:                |    Pending:  0     
--------------------------+-------------------------------------------------
 In 2.0.0beta7 and the current development tree, after configuring in a
 separate directory and building (e.g. mkdir build; ../configure; make), it
 barfs on the perl plugin:

 if /bin/sh ../../../libtool --silent --tag=CC --mode=compile gcc
 -DHAVE_CONFIG_H -I. -I../../../../libpurple/plugins/perl -I../../..
 -DVERSION=\"2.0.0beta7\" -I../../../.. -I../../../../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/usr/include/glib-2.0
 -I/usr/lib/glib-2.0/include    -D_REENTRANT -D_GNU_SOURCE
 -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/usr/lib/perl/5.8/CORE    -g -g -O2 -MT perl.lo -MD -MP -MF
 ".deps/perl.Tpo" -c -o perl.lo ../../../../libpurple/plugins/perl/perl.c;
 \
         then mv -f ".deps/perl.Tpo" ".deps/perl.Plo"; else rm -f
 ".deps/perl.Tpo"; exit 1; fi
 ../../../../libpurple/plugins/perl/perl.c:91:21: error: version.h: No such
 file or directory
 ../../../../libpurple/plugins/perl/perl.c: In function
 'probe_perl_plugin':
 ../../../../libpurple/plugins/perl/perl.c:290: error:
 'PURPLE_MAJOR_VERSION' undeclared (first use in this function)
 ../../../../libpurple/plugins/perl/perl.c:290: error: (Each undeclared
 identifier is reported only once
 ../../../../libpurple/plugins/perl/perl.c:290: error: for each function it
 appears in.)
 ../../../../libpurple/plugins/perl/perl.c:291: error:
 'PURPLE_MINOR_VERSION' undeclared (first use in this function)
 ../../../../libpurple/plugins/perl/perl.c: At top level:
 ../../../../libpurple/plugins/perl/perl.c:592: error:
 'PURPLE_MAJOR_VERSION' undeclared here (not in a function)
 ../../../../libpurple/plugins/perl/perl.c:593: error:
 'PURPLE_MINOR_VERSION' undeclared here (not in a function)
 make: *** [perl.lo] Error 1


 In case that was too much read, the jist of the problem is this:
 ../../../../libpurple/plugins/perl/perl.c:91:21: error: version.h: No such
 file or directory
 It looks like ../../ needs to be added to the include path, since that's
 where version.h gets built.

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


More information about the Tracker mailing list