Hi,

I got an error (attached) when building w/scripting enabled.  I am using
RH7.3 compilers (gcc...2.96-113) with also RH7.3 perl
(perl-5.6.1-34.99.6) modules.  This is on the CVS head downloaded
yesterday.  A small patch is attached to allow building under perl
5.6.1. 

Thanks really must go to Shane Mason ( [EMAIL PROTECTED] ;
http://www.perlbox.org ) who actually knows a bit about coding.

Chris Winne

make[4]: Entering directory `/home/chris/abiword/abi/src/af/util/xp'
source='ut_PerlBindings.cpp' object='ut_PerlBindings.o' libtool=no \
depfile='.deps/ut_PerlBindings.Po' tmpdepfile='.deps/ut_PerlBindings.TPo' \
depmode=gcc3 /bin/sh ../../../../ac-helpers/depcomp \
g++ -DPACKAGE_NAME=\"AbiSuite\" -DPACKAGE_TARNAME=\"abisuite\" 
-DPACKAGE_VERSION=\"2.0\" -DPACKAGE_STRING=\"AbiSuite\ 2.0\" 
-DPACKAGE_BUGREPORT=\"http://www.abisource.com/\"; -DPACKAGE=\"AbiSuite-2.0\" 
-DVERSION=\"1.1.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 
-DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_MALLOC_H=1 -DHAVE_LIBXML2=1 -DHAVE_WV=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 
-DRETSIGTYPE=void -DHAVE_RE_COMP=1 -DHAVE_REGCOMP=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1  
-I. -I. -I'../../../../src/af/util/xp'  -I'../../../../src/af/ev/xp' 
-I'../../../../src/af/ev/xp' -I'../../../../src/af/gr/xp' 
-I'../../../../src/af/xap/xp' -I'../../../../src/af/util/unix' 
-I'../../../../src/af/ev/unix' -I'../../../../src/af/gr/unix' 
-I'../../../../src/af/xap/unix' -I'../../../../src/other/spell/xp' 
-I'../../../../src/other/fribidi/xp' -I'../../../../src/other/ttftool/unix'      -Wall 
-pedantic -ansi -D_POSIX_SOURCE -D_BSD_SOURCE -pipe -DNDEBUG 
-I/usr/local/include/libxml2/libxml -I/usr/local/include/libxml2 -I/include 
-DABI_OPT_PERL  -fno-strict-aliasing -I/usr/local/include  
-I/usr/lib/perl5/5.6.1/i386-linux/CORE  -Ubool -DNOT_PERL_5_8 -I/usr/local/include 
-DBIDI_ENABLED -I/home/chris/abiword/wv -DHAVE_THREADS=1 -D_REENTRANT 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include  
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include    
-I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include 
-I/usr/local/include/atk-1.0 -I/usr/local/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/include/freetype2 -I/usr/local/include/glib-2.0 
-I/usr/local/lib/glib-2.0/include   -DSUPPORTS_UT_IDLE=1   
-DABI_BUILD_VERSION=\"1.1.2\" -c -o ut_PerlBindings.o `test -f 'ut_PerlBindings.cpp' 
|| echo './'`ut_PerlBindings.cpp
In file included from ut_PerlBindings.h:11,
                 from ut_PerlBindings.cpp:7:
ut_Script.h:125: warning: `class UT_ScriptLibrary' only defines private 
constructors and has no friends
ut_PerlBindings.cpp: In function `void xs_init ()':
ut_PerlBindings.cpp:75: cannot convert `void (*) (PerlInterpreter *, CV 
*)' to `void (*) (CV *)' for argument `2' to `Perl_newXS (char *, void 
(*) (CV *), char *)'
ut_PerlBindings.cpp: In method `bool UT_PerlBindings::evalFile (const 
UT_String &)':
ut_PerlBindings.cpp:240: warning: ISO C++ forbids braced-groups within 
expressions
ut_PerlBindings.cpp:256: warning: ISO C++ forbids braced-groups within 
expressions
ut_PerlBindings.cpp: In method `bool UT_PerlBindings::runCallback 
(const char *)':
ut_PerlBindings.cpp:302: warning: ISO C++ forbids braced-groups within 
expressions
make[4]: *** [ut_PerlBindings.o] Error 1
make[4]: Leaving directory `/home/chris/abiword/abi/src/af/util/xp'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/chris/abiword/abi/src/af/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/chris/abiword/abi/src/af'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chris/abiword/abi/src'
make: *** [all-recursive] Error 1
--- abi/src/af/util/xp/ut_PerlBindings.cpp.ORG  Sat Sep 14 07:47:06 2002
+++ abi/src/af/util/xp/ut_PerlBindings.cpp      Thu Dec 12 20:07:29 2002
@@ -63,11 +63,12 @@
 
 extern "C" {
 
-  void boot_DynaLoader(PerlInterpreter *pi, CV* cv);
 
 #ifdef NOT_PERL_5_8
+  void boot_DynaLoader(CV* cv);
   void xs_init ()
 #else
+  void boot_DynaLoader(PerlInterpreter *pi, CV* cv);
   void xs_init(PerlInterpreter * my_perl)
 #endif
   {

Attachment: msg28308/pgp00000.pgp
Description: PGP signature

Reply via email to