Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49290 - subversion-1.0.1 does not work properly with swig >= 1.3.20
Summary: subversion-1.0.1 does not work properly with swig >= 1.3.20
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-28 09:42 UTC by Markus Luisser
Modified: 2005-07-18 01:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Luisser 2004-04-28 09:42:35 UTC
with subversion-1.0.1, swig-1.3.21 and viewcvs-0.9.2_p20030430 i get the following error when calling viewcvs from a browser:

-------------- snip --------------
Traceback (most recent call last):
  File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 3044, in main
    run_viewcvs(server)
  File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 2931, in run_viewcvs
    request = Request(server)
  File "/var/www/localhost/viewcvs/lib/viewcvs.py", line 251, in __init__
    import vclib.svn
  File "/var/www/localhost/viewcvs/lib/vclib/svn/__init__.py", line 26, in ?
    from svn import fs, repos, util
  File "/usr/lib/python2.3/site-packages/svn/fs.py", line 27, in ?
    import libsvn.fs
  File "/usr/lib/python2.3/site-packages/libsvn/fs.py", line 4, in ?
    import _fs
ImportError: /usr/lib/libsvn_swig_py-1.so.0: undefined symbol: SWIG_TypeQuery
-------------- snip --------------

The error is related to the swig version. The issue is covered here:

http://www.contactor.se/~dast/svn/archive-2004-01/0769.shtml

a patch is available at:

http://subversion.tigris.org/issues/show_bug.cgi?id=1690
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-04-28 10:28:28 UTC
what about 1.0.2?  The bug log shows that the last commit was in January, and 1.0.1 and 1.0.2 have come out since then...
Comment 2 Markus Luisser 2004-04-28 23:35:36 UTC
sorry - i missed that update - testing right now - i'll let you know how if it works.
Comment 3 Markus Luisser 2004-04-28 23:45:08 UTC
nope - same error...

working:

svn-1.0.1 and 1.0.2 with swig-1.3.19

not working:

svn-1.0.1 and 1.0.2 with swig-1.3.21

i didnt test it with swig-1.3.20. The error is identical to the previous one including the line-numbers.
Comment 4 Paul de Vrieze (RETIRED) gentoo-dev 2004-05-02 04:00:36 UTC
It works for me with swig-1.3.21 and subversion-1.0.2 and viewcvs. swig-1.3.20 is broken as it does not compile certain key libraries.
Comment 5 Markus Luisser 2004-05-04 14:12:03 UTC
You got me, Paul - i can confirm that subversion-1.0.2 works with swig-1.3.21. But i needed to recompile subversion to get it to work. Without reemerging subversion i get exactly the same error. revdep-rebuild doesnt seem to catch this dependency - it came up blank after the swig upgrade.

Oh and as you said, swig-1.3.20 is broken...
Comment 6 Sean E Russell 2004-05-20 05:52:55 UTC
Actually, subversion 1.0.2 fails to compile on my box with swig 1.3.21.

The errors start with this:

/bin/sh /var/tmp/portage/subversion-1.0.2/work/subversion-1.0.2/libtool --silent --mode=compile gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE  -O2 -mcpu=i686 -pipe   -pthread  -DNEON_ZLIB -DNEON_SSL   -I./subversion/include -I. -I/usr/include/neon -I/usr/include/apache2   -I/usr/include/apache2  -o subversion/bindings/swig/swigutil_pl.lo -c /var/tmp/portage/subversion-1.0.2/work/subversion-1.0.2/subversion/bindings/swig/swigutil_pl.c
/var/tmp/portage/subversion-1.0.2/work/subversion-1.0.2/subversion/bindings/swig/swigutil_pl.c:19:20: EXTERN.h: No such file or directory
/var/tmp/portage/subversion-1.0.2/work/subversion-1.0.2/subversion/bindings/swig/swigutil_pl.c:20:18: perl.h: No such file or directory

...

/var/tmp/portage/subversion-1.0.2/work/subversion-1.0.2/subversion/bindings/swig/swigutil_pl.c:1362: error: `SVt_PVGV' undeclared (first use in this function)
make: *** [subversion/bindings/swig/swigutil_pl.lo] Error 1

!!! ERROR: dev-util/subversion-1.0.2 failed.
!!! Function src_compile, Line 139, Exitcode 2
!!! Perl library building failed

germane-software root # emerge search swig
Searching...
[ Results for search key : swig ]
[ Applications found : 1 ]

*  dev-lang/swig
      Latest version available: 1.3.21
      Latest version installed: 1.3.21
      Size of downloaded files: 1,975 kB
      Homepage:    http://www.swig.org
      Description: Simplied Wrapper and Interface Generator
      License:     as-is

This is on a server; we emerge world once every couple of months, and never install software except through emerge.

USE="-X -gtk -gnome -alsa -xmms -xinerama -xface -Xaw3d -gtk -gtk2 -gtkhtml -nano -alsa -3dnow -sse -3dfx -voodoo3 -matrox -scanner -dga -quicktime -opengl -fbcon -directfb -gnome -bonobo -evo -gb -mysql -guil perl -python -slang -zeo -innodb -cjk -canna -freewnn -mule -xv ruby -arts -avi -qt -qtmt -wavelan -kamera pda oggvorbis pcmcia spell -gphoto2 -ggi -dvd -css -motif -kde png pam maildir -cups apache2 ldap kerberos krb4 -mozilla ssl gdbm"
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2004-05-21 07:54:46 UTC
It seems that swig is not built properly. Has it been built with perl support? Alternatively you might try to merge subversion without perl support. USE="-perl" emerge subversion
Comment 8 Jesse Scott 2004-07-12 11:25:38 UTC
Just as a 'me too' I can't get subversion-1.0.4-r1 to build with swig-1.3.21 either. Same errors with the perl library building as Sean was getting. And swig on my machine is compiled with perl support. I'm going to try emerging subversion without perl support now.
Comment 9 Gustavo Ribeiro Alves 2004-08-19 11:18:18 UTC
I think I figure out what is happening. The problem is with swig that does not honor python use flag unless the guile use flag is set.
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2005-02-19 12:09:59 UTC
what about recent subversion-1.1.1-r3
Comment 11 Markus Luisser 2005-02-19 12:30:22 UTC
seems to work for me :)
Comment 12 Tres 'RiverRat' Melton 2005-04-17 15:37:27 UTC
Ok Guys.  The solution is here http://forums.gentoo.org/viewtopic-t-306555-highlight-limits+amd64.html
(about the 6th comment)  You need to edit /usr/include/limits.h

This is also a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=80177
Comment 13 Markus Luisser 2005-07-18 01:45:37 UTC
thats not an issue anymore since we are at version 1.1.3 meanwhile.