Issue 15615 - Building python project on SuSE Linux 8.2 with gcc-3.3
Summary: Building python project on SuSE Linux 8.2 with gcc-3.3
Status: CLOSED FIXED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 Beta2
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: pmladek
QA Contact: issues@udk
URL:
Keywords:
: 16108 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-06-14 12:03 UTC by pavel
Modified: 2003-06-26 13:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Log from the build of python directory (33.99 KB, application/octet-stream)
2003-06-14 12:05 UTC, pavel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pavel 2003-06-14 12:03:26 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.
Comment 1 pavel 2003-06-14 12:05:09 UTC
Created attachment 6868 [details]
Log from the build of python directory
Comment 2 pavel 2003-06-14 12:51:23 UTC
After installing tcl-devel, build went further.

Do we really need tcl include files for OOo? This another thing which
raises the build requirements...
Comment 3 joergbudi 2003-06-14 13:17:24 UTC
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
Comment 4 joergbudi 2003-06-16 20:56:41 UTC
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


Comment 5 pavel 2003-06-16 21:36:33 UTC
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.
Comment 6 pavel 2003-06-16 21:39:52 UTC
Petr? Is this a problem in SuSE 8.2?

tk.h include tcl.h (in tcl-devel), which in turn is not installed...
Comment 7 pmladek 2003-06-17 08:25:44 UTC
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.
Comment 8 pmladek 2003-06-20 14:17:19 UTC
The depencies will be fixed in the next SuSE release.

It is not a critical issue therefore the workaround
is not needed.
Comment 9 pavel 2003-06-20 15:21:56 UTC
Thanks,  Petr.

Closing.
Comment 10 pavel 2003-06-26 13:37:04 UTC
*** Issue 16108 has been marked as a duplicate of this issue. ***