Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36602 - Subversion 0.35.1 ebuild fails to compile
Summary: Subversion 0.35.1 ebuild fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-27 13:00 UTC by Daniel Milne
Modified: 2004-08-19 13:02 UTC (History)
1 user (show)

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


Attachments
The emerge errors (sub.err,36.24 KB, text/plain)
2003-12-28 09:53 UTC, Daniel Milne
Details
The stdout for the emerge failure. (sub.log,117.34 KB, text/plain)
2003-12-28 11:04 UTC, Daniel Milne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Milne 2003-12-27 13:00:16 UTC
Upgrading to subversion 0.35.1 fails with a message about subversino python bindings failed.


Reproducible: Always
Steps to Reproduce:
1.SVN_DUMPED=1 emerge -u subversion


Actual Results:  
Emerge failed.


Expected Results:  
Successfully upgrade for subversion.

SVN_DUMPED=1 emerge -u subversion
...
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1143:
error: `PyObject' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1143:
error: `function' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1144:
error: `result' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1147:
error: `Py_None' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:
In function `svn_swig_py_thunk_log_receiver':
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1177:
error: `PyObject' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1177:
error: `receiver' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1178:
error: `result' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1180:
error: `chpaths' undeclared (first use in this function)
/var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1183:
error: `Py_None' undeclared (first use in this function)
make: *** [subversion/bindings/swig/swigutil_py.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-util/subversion-0.35.1 failed.
!!! Function src_compile, Line 117, Exitcode 2
!!! subversion python bindings failed
Comment 1 Pedro Morales 2003-12-27 22:44:31 UTC
I get the same result here. I'm with ACCEPT_KEYWORDS="~x86", and not using apache2. Emerged python 2.3 and using last portage (2.0.49-r18)

Hope this can help in anyway. If there anything I can try, please let me know.
Comment 2 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-28 04:45:52 UTC
Make sure that all python libs are upgraded by following the python upgrade path. This update should also include swig. Remerge swig and try again.
Comment 3 Pedro Morales 2003-12-28 08:24:38 UTC
all python libs upgraded, remerged swig, and still not working.
Comment 4 Daniel Milne 2003-12-28 08:46:23 UTC
Remerged python and swig with same result.

root # SVN_DUMPED=1 emerge python swig subversion
....
make: *** [subversion/bindings/swig/swigutil_py.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-util/subversion-0.35.1 failed.
!!! Function src_compile, Line 117, Exitcode 2
!!! subversion python bindings failed
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-28 09:01:49 UTC
Could you attach a full log of the subversion build
Comment 6 Daniel Milne 2003-12-28 09:53:26 UTC
Created attachment 22751 [details]
The emerge errors

As requested. The stderr of the emerge.
Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-28 10:17:51 UTC
Could you next time also send the stdout, preferably by:
SVN_DUMPED=1 emerge subversion &>log&

For now, could you post the results of locate Python.h
and the output of python-config
Comment 8 Daniel Milne 2003-12-28 11:04:17 UTC
Created attachment 22757 [details]
The stdout for the emerge failure.

Here's the corresponding stdout
Comment 9 Daniel Milne 2003-12-28 11:07:37 UTC
Added the corresponding stdout for you. It was generated at the same time as the error log with:

# SVN_DUMPED=1 emerge subversion  > ./sub.log 2> ./sub.err

# locate Python.h
/usr/include/python2.2/Python.h
/usr/include/python2.3/Python.h

# python-config
-lpython2.3 -lm -L/usr/lib/python2.3/config
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-28 11:24:08 UTC
Could you try to build swig-1.3.19 (not .20) and try again. If it doesn't work, please attach a combined log (a lot easier to read) of the swig build. It seems that swig doesn't correctly specify the include dir of Python.h
Comment 11 Daniel Milne 2003-12-28 12:49:34 UTC
Well, the upgrade worked with the earlier version of swig, but the instructions for dumping the svn repository mention an upgrade from version 0.28, and as this is version 0.32 - 0.35 I figured I didn't need to dump it. :-( Back to 0.32.1 I go.
Comment 12 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-29 07:35:36 UTC
Good luck, I added a fixed dependency on swig-1.3.19, and changed the comment to 0.34.

Note that will not ask you to use the environment variable if you don't need to dump the repos.
Comment 13 Alec Berryman 2003-12-30 10:33:05 UTC
Using swig-1.3.19 instead of swig-1.3.20 allows me to finish compiling, and subversion appears to be working correctly.  I had the same errors as above.
Comment 14 Paul de Vrieze (RETIRED) gentoo-dev 2004-08-19 13:02:46 UTC
I guess this is fixed now