Apache OpenOffice (AOO) Bugzilla – Issue 15615
Building python project on SuSE Linux 8.2 with gcc-3.3
Last modified: 2003-06-26 13:37:04 UTC
Hi, SuSE Linux 8.2, gcc version 3.3 20030226 (prerelease) (SuSE Linux): case $MAKEFLAGS in \ *-s*) CC='/data/oo//BuildDir/ccache /usr/bin/gcc' LDSHARED='/data/oo//BuildDir/ccache /usr/bin/gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstri *) CC='/data/oo//BuildDir/ccache /usr/bin/gcc' LDSHARED='/data/oo//BuildDir/ccache /usr/bin/gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict- esac running build running build_ext Traceback (most recent call last): File "./setup.py", line 795, in ? main() File "./setup.py", line 790, in main scripts = ['Tools/scripts/pydoc'] File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/core.py", line 138, in setup dist.run_commands() File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/dist.py", line 893, in run_commands self.run_command(cmd) File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/dist.py", line 913, in run_command cmd_obj.run() File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/command/build.py", line 107, in run self.run_command(cmd_name) File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/cmd.py", line 330, in run_command self.distribution.run_command(command) File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/dist.py", line 913, in run_command cmd_obj.run() File "/data/oo/BuildDir/ooo_11beta2_src/python/unxlngi4.pro/misc/build/Python-2.2.2/Lib/distutils/command/build_ext.py", line 256, in run self.build_extensions() File "./setup.py", line 73, in build_extensions self.detect_modules() File "./setup.py", line 672, in detect_modules self.detect_tkinter(inc_dirs, lib_dirs) File "./setup.py", line 710, in detect_tkinter for dir in tcl_includes + tk_includes: TypeError: unsupported operand types for +: 'NoneType' and 'list' make: *** [sharedmods] Error 1 dmake: Error code 2, while making './unxlngi4.pro/misc/build/so_built_so_python' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /data/oo/BuildDir/ooo_11beta2_src/python Complete log (output of script, gzipped) of build -from python in python will be attached.
Created attachment 6868 [details] Log from the build of python directory
After installing tcl-devel, build went further. Do we really need tcl include files for OOo? This another thing which raises the build requirements...
Hi, I actually wasn't aware of this requirement, it might e.g. be a solution to do a python configure without tcl. I'll check this tomorrow (I'm not at home right now), I'll let you know. Bye, Joerg
Hi Pavel, the problem here is, that your system had the header tk.h in /usr/include, but no tcl.h. This inconsistency is not detected correctly by the setup.py script. So clearly speaking, we don't need tcl/tk include files (my system does not have these). So if we want to support this system, we should patch the setup.py file, so that tcl support is deactivated in this case. If you want me to add this, reassign the issue to me, I'll create a patch and send it to Martin. Bye, Joerg
No, this is clearly the bug in SuSE 8.2's dependencies - tk package contains tk.h, but does not require tcl-devel. We should ask SuSE. Petr Mladek will be our proxy. Reopening for reassign.
Petr? Is this a problem in SuSE 8.2? tk.h include tcl.h (in tcl-devel), which in turn is not installed...
Yes, it is a bug in SuLi 8.2. I am going to fill it in our bugzilla but I doubt that it will be fixed via YaST online update and on ftp for SuLi 8.2.
The depencies will be fixed in the next SuSE release. It is not a critical issue therefore the workaround is not needed.
Thanks, Petr. Closing.
*** Issue 16108 has been marked as a duplicate of this issue. ***