[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

swig-pl

From: Edmund Wong <ed_at_kdtc.net>
Date: Sat, 06 Jun 2009 12:54:53 +0800

Hi,

Aside for perl 5.8.0+ and swig (any specific version? I am using
1.3.38), what other requirements does swig-pl need? I'm using
Slackware as my distro (which really should be irrelevant to the
issue, I think?) Either I'm doing something terribly wrong, or
something's really broken.

'make swig-pl' produces the following:

/usr/bin/swig -I/home/cc/svn_stuff/svn/subversion
-I/home/cc/svn_stuff/svn/subversion/include
-I/home/cc/svn_stuff/svn/subversion/bindings/swig
-I/home/cc/svn_stuff/svn/subversion/bindings/swig/include
-I/home/cc/svn_stuff/svn/subversion/bindings/swig/proxy
-I/home/cc/svn_stuff/svn/subversion/bindings/swig/proxy
-I/usr/include/apr-1 -I/usr/include/apr-1 -perl -nopm -noproxy -o
subversion/bindings/swig/perl/native/core.c
./subversion/bindings/swig/core.i
/home/cc/svn_stuff/svn/subversion/include/svn_props.h:508: Warning(305):
Bad constant value (ignored).
/home/cc/svn_stuff/svn/subversion/bindings/swig/include/svn_containers.swg:126:
Warning(453): Can't apply (apr_hash_t **HASH_CSTRING). No typemaps are
defined.
/home/cc/svn_stuff/svn/subversion/bindings/swig/include/svn_containers.swg:126:
Warning(453): Can't apply (apr_hash_t **HASH_CSTRING). No typemaps are
defined.
/home/cc/svn_stuff/svn/subversion/bindings/swig/include/svn_containers.swg:126:
Warning(453): Can't apply (apr_hash_t **HASH_CSTRING). No typemaps are
defined.
/home/cc/svn_stuff/svn/subversion/bindings/swig/include/svn_containers.swg:126:
Warning(453): Can't apply (apr_hash_t **HASH_CSTRING). No typemaps are
defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:257: Warning(453): Can't apply
(apr_array_header_t *RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:268: Warning(453): Can't apply
(apr_array_header_t **RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:268: Warning(453): Can't apply
(apr_array_header_t **RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:268: Warning(453): Can't apply
(apr_array_header_t **RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:268: Warning(453): Can't apply
(apr_array_header_t **RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:268: Warning(453): Can't apply
(apr_array_header_t **RANGELIST). No typemaps are defined.
./subversion/bindings/swig/core.i:275: Warning(453): Can't apply
(apr_array_header_t **RANGELIST_INOUT). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:290: Warning(453): Can't apply
(apr_hash_t *MERGEINFO). No typemaps are defined.
./subversion/bindings/swig/core.i:594: Warning(454): Setting a
pointer/reference variable may leak memory.
/home/cc/svn_stuff/svn/subversion/include/svn_props.h:195: Warning(900):
FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_props.h:196: Warning(900):
FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_props.h:197: Warning(900):
FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_props.h:223: Warning(900):
FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_auth.h:825: Warning(900):
FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_mergeinfo.h:158:
Warning(900): FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_mergeinfo.h:183:
Warning(900): FIXME: Missing argout typemap
/home/cc/svn_stuff/svn/subversion/include/svn_mergeinfo.h:183:
Warning(900): FIXME: Missing argout typemap

and then later on

subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:1522:
warning: value computed is not used
subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:155:
warning: 'Perl_reentr_getgrent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:233:
warning: 'Perl_reentr_getgrgid' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:291:
warning: 'Perl_reentr_getgrnam' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:438:
warning: 'Perl_reentr_gethostbyaddr' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:459:
warning: 'Perl_reentr_gethostbyname' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:500:
warning: 'Perl_reentr_gethostent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:578:
warning: 'Perl_reentr_getlogin' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:713:
warning: 'Perl_reentr_getnetbyaddr' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:734:
warning: 'Perl_reentr_getnetbyname' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:792:
warning: 'Perl_reentr_getnetent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:870:
warning: 'Perl_reentr_getprotobyname' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:911:
warning: 'Perl_reentr_getprotobynumber' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:952:
warning: 'Perl_reentr_getprotoent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1010:
warning: 'Perl_reentr_getpwent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1088:
warning: 'Perl_reentr_getpwnam' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1146:
warning: 'Perl_reentr_getpwuid' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1204:
warning: 'Perl_reentr_getservbyname' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1245:
warning: 'Perl_reentr_getservbyport' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1286:
warning: 'Perl_reentr_getservent' defined but not used
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1344:
warning: 'Perl_reentr_getspnam' defined but not used
subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:223:
warning: 'convert_int' defined but not used
cd subversion/bindings/swig/perl/libsvn_swig_perl &&
/usr/lib/apr-1.3.3/build-1/libtool --tag=CC --silent --mode=link
i486-slackware-linux-gcc -Wold-style-definition -Wpointer-arith
-Wwrite-strings -Wshadow -ansi -Wall -Wformat=2 -Wunused
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs
-Wunreachable-code -Winline -Wno-long-long -g -pthread
-D_LARGEFILE64_SOURCE -DNE_LFS -Werror=implicit-function-declaration
-DSVN_DEBUG -DAP_DEBUG -rpath /usr/local/lib -o libsvn_swig_perl-1.la
  swigutil_pl.lo
../../../../../subversion/libsvn_delta/libsvn_delta-1.la
../../../../../subversion/libsvn_subr/libsvn_subr-1.la
/usr/lib/libaprutil-1.la -lldap -llber -ldb-4.4 -lexpat
/usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
cd /home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native;
/usr/bin/perl Makefile.PL
Writing Makefile for SVN::_Core
Writing Makefile.client for SVN::_Client
Writing Makefile.delta for SVN::_Delta
Writing Makefile.fs for SVN::_Fs
Writing Makefile.ra for SVN::_Ra
Writing Makefile.repos for SVN::_Repos
Writing Makefile.wc for SVN::_Wc
if test "/home/cc/svn_stuff/svn/subversion/bindings/swig/perl" !=
"/home/cc/svn_stuff/svn/subversion/bindings/swig/perl"; then \
          ln -sf
/home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native/*.c
/home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native; \
        fi
cd /home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native; make
OPTIMIZE="" OTHERLDFLAGS=""
make[1]: Entering directory
`/home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native'
cp ../../../../../subversion/bindings/swig/perl/native/Delta.pm
blib/lib/SVN/Delta.pm
cp ../../../../../subversion/bindings/swig/perl/native/Ra.pm
blib/lib/SVN/Ra.pm
cp ../../../../../subversion/bindings/swig/perl/native/Wc.pm
blib/lib/SVN/Wc.pm
cp ../../../../../subversion/bindings/swig/perl/native/Base.pm
blib/lib/SVN/Base.pm
cp ../../../../../subversion/bindings/swig/perl/native/Core.pm
blib/lib/SVN/Core.pm
cp ../../../../../subversion/bindings/swig/perl/native/Repos.pm
blib/lib/SVN/Repos.pm
cp ../../../../../subversion/bindings/swig/perl/native/Fs.pm
blib/lib/SVN/Fs.pm
cp ../../../../../subversion/bindings/swig/perl/native/Client.pm
blib/lib/SVN/Client.pm
cc -c -I/usr/include/apr-1 -I/usr/include/apr-1
-I../../../../../subversion/bindings/swig/perl/libsvn_swig_perl
-I../../../../../subversion/include -I../../../../../subversion
-I../../../../../subversion/bindings/swig -g -Wold-style-definition
-Wpointer-arith -Wwrite-strings -Wshadow -ansi -Wall -Wformat=2 -Wunused
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs
-Wunreachable-code -Winline -Wno-long-long -g -pthread
-D_LARGEFILE64_SOURCE -DNE_LFS -Werror=implicit-function-declaration
-DSVN_DEBUG -DAP_DEBUG -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC
"-I/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE" -DLINUX=2
-D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1
  -I/usr/include/apr-1 core.c
In file included from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:1108: warning:
redundant redeclaration of 'strerror'
/usr/include/string.h:256: warning: previous declaration of 'strerror'
was here
In file included from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:2931: warning:
redundant redeclaration of 'getuid'
/usr/include/unistd.h:654: warning: previous declaration of 'getuid' was
here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:2932: warning:
redundant redeclaration of 'geteuid'
/usr/include/unistd.h:657: warning: previous declaration of 'geteuid'
was here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:2933: warning:
redundant redeclaration of 'getgid'
/usr/include/unistd.h:660: warning: previous declaration of 'getgid' was
here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:2934: warning:
redundant redeclaration of 'getegid'
/usr/include/unistd.h:663: warning: previous declaration of 'getegid'
was here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3217: warning:
redundant redeclaration of 'mktemp'
/usr/include/stdlib.h:583: warning: previous declaration of 'mktemp' was
here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3219: warning:
redundant redeclaration of 'atof'
/usr/include/stdlib.h:145: warning: previous declaration of 'atof' was here
In file included from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3310: warning:
redundant redeclaration of 'crypt'
/usr/include/crypt.h:33: warning: previous declaration of 'crypt' was here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3316: warning:
redundant redeclaration of 'getenv'
/usr/include/stdlib.h:545: warning: previous declaration of 'getenv' was
here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3327: warning:
redundant redeclaration of 'getlogin'
/usr/include/unistd.h:827: warning: previous declaration of 'getlogin'
was here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3432: warning:
redundant redeclaration of 'environ'
/usr/include/unistd.h:510: warning: previous declaration of 'environ'
was here
In file included from
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3950,
                  from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/proto.h:1289: warning:
redundant redeclaration of 'Perl_utf8n_to_uvuni'
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/proto.h:1288: warning:
previous declaration of 'Perl_utf8n_to_uvuni' was here
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/proto.h:1291: warning:
redundant redeclaration of 'Perl_uvuni_to_utf8'
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/proto.h:1290: warning:
previous declaration of 'Perl_uvuni_to_utf8' was here
In file included from
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:3993,
                  from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:155:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getgrent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:155:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:500:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_gethostent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:500:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:578:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getlogin':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:578:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:792:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getnetent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:792:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:952:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getprotoent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:952:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1010:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getpwent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1010:
warning: old-style function definition
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: At top level:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1286:
warning: function declaration isn't a prototype
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc: In
function 'Perl_reentr_getservent':
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/reentr.inc:1286:
warning: old-style function definition
In file included from
../../../../../subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.h:38,
                  from core.c:1634:
../../../../../subversion/svn_private_config.h:193:1: warning: "_" redefined
In file included from
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/perl.h:37,
                  from core.c:731:
/usr/lib/perl5/5.8.8/i486-linux-thread-multi/CORE/config.h:3808:1:
warning: this is the location of the previous definition
core.c: At top level:
core.c:1770: warning: no previous prototype for
'svn_swig_pl_get_current_pool'
core.c:1776: warning: no previous prototype for
'svn_swig_pl_set_current_pool'
core.c: In function 'SWIG_AsVal_int':
core.c:1935: warning: will never be executed
core.c: In function 'swig_magic_readonly':
core.c:2345: warning: will never be executed
core.c: At top level:
core.c:2382: warning: no previous prototype for '_wrap_apr_initialize'
core.c:2405: warning: no previous prototype for '_wrap_apr_terminate'
core.c:2427: warning: no previous prototype for '_wrap_apr_time_ansi_put'
core.c:2470: warning: no previous prototype for '_wrap_apr_pool_destroy'
core.c:2502: warning: no previous prototype for '_wrap_apr_pool_clear'

'make check-swig-pl' fails on 210 out of 213 tests.
Failed Test Stat Wstat Total Fail Failed List of
Failed
-------------------------------------------------------------------------------
../../../../../subversion/binding 255 65280 118 222 188.14% 8-118
Failed 1/10 test scripts, 90.00% okay. 111/213 subtests failed, 47.89% okay.
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory
`/home/cc/svn_stuff/svn/subversion/bindings/swig/perl/native'
make: *** [check-swig-pl] Error 2

make swig-py produces some errors but nothing catastrophic.
make check-swig-py setfaults.

This is on the latest trunk (as of r37947). The reason why I'm
doing this swig-pl is to get a patch in to output the version
info of the subversion server.

Edmund

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2359911
Received on 2009-06-06 06:55:46 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.