Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227287 - app-office/openoffice-2.4.1 make fail with error: 'PyEval_InitThreads' was not declared in this scope
Summary: app-office/openoffice-2.4.1 make fail with error: 'PyEval_InitThreads' was no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-15 18:50 UTC by Vasily Shmelev
Modified: 2008-06-20 08:25 UTC (History)
0 users

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


Attachments
Patch to check python against threads USE flag (ooo-2.4.1.patch,474 bytes, patch)
2008-06-15 20:19 UTC, Vasily Shmelev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vasily Shmelev 2008-06-15 18:50:04 UTC
=============
Building module pyuno
=============
/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module
mkout -- version: 1.7
--- NOOPTFILES ---
cat /home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/src/version.c | sed s/_version.h/pyuno_version.h/ > ../../unxlngi6.pro/misc/pyuno_version.c
------------------------------
Making: ../../unxlngi6.pro/slo/pyuno_version.obj
i686-pc-linux-gnu-gcc -fmessage-length=0 -c -O0   -I/usr/include/python2.4 -I.  -I../../unxlngi6.pro/inc/pyuno -I../inc -I../../inc/pch -I../../inc -I../../unx/inc -I../../unxlngi6.pro/inc -I. -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/incdont_use_stl -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/inc/external -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/inc -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/unxlngi6/inc -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/inc -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/res -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/incdont_use_stl -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solenv/inc/Xp31 -I/opt/sun-jdk-1.6.0.06/include -I/opt/sun-jdk-1.6.0.06/include/linux -I/opt/sun-jdk-1.6.0.06/include/native_threads/include -Idefault_x_includes     -I/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/solver/680/unxlngi6.pro/inc/offuh -I. -I../../res -I. -pipe -march=prescott -pipe -g -DGL_GLEXT_PROTOTYPES -Wall -Wextra -Wendif-labels -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL -DCVER=C341 -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DGSTREAMER -DCUI -DSOLAR_JAVA -DOOH680=OOH680   -DSHAREDLIB -D_DLL_   -o ../../unxlngi6.pro/slo/pyuno_version.o ../../unxlngi6.pro/misc/pyuno_version.c
if test -e ../../unxlngi6.pro/slo/pyuno_version.o ; then touch ../../unxlngi6.pro/slo/pyuno_version.obj ; fi
Making: ../../unxlngi6.pro/slo/pyuno_module.obj
/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module/pyuno_module.cxx: In function 'void initpyuno()':
/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module/pyuno_module.cxx:723: error: 'PyEval_InitThreads' was not declared in this scope
dmake:  Error code 1, while making '../../unxlngi6.pro/slo/pyuno_module.obj'
---* tg_merge.mk *---
dmake:  Error code 255, while making 'do_it_noopt'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module
make: *** [stamp/build] Error 1


Reproducible: Always

Steps to Reproduce:
Just try to emerge it on "stable" branch of distro
Actual Results:  
Make fails

Expected Results:  
Compile successfully

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""

$ emerge --info                                                                                   [22:49]
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Sun, 15 Jun 2008 08:06:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs distlocks metadata-transfer sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j 4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa bash-completion bashlogger bluetooth bzip2 cairo cdr crypt cups dbus dlloader dmi dri dvdr enca encode exif fbsplash firefox flac foomaticdb gif gimp glibc-omitfp gnutls gstreamer guile hal iconv javascript jpeg jpg kde lcms libnotify libsexy logrotate mad mikmod mmx mono mp3 ncurses newspr nolvm1 nptl nptlonly ogg opengl pam pcmcia pdf png ppds qt3 qt4 readline samba slang ssl svg syslog tiff truetype udev unicode urandom usb vorbis wifi win32codecs wma wmf x86 xattr xine xml xorg xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="dmix empty multi plug softvol adpcm alaw asym copy dshare dsnoop extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw null rate route share shm" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018 hp1020" INPUT_DEVICES="evdev mouse synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-15 19:22:58 UTC
This is strictly a duplicate of bug 178035 which in turn is a duplicate of bug 177866. But you might have forgotten about those, so here a reminder: You really need to make the openoffice ebuild check for dev-lang/python being built with threads USE. Example code:
inherit eutils

....

if ! built_with_use dev-lang/python threads
then
 eerror "Python needs to be built with threads."
 die
fi
Comment 2 Vasily Shmelev 2008-06-15 20:19:37 UTC
Created attachment 156981 [details, diff]
Patch to check python against threads USE flag

Seems it is work for me now. I've re-emerged dev-lang/python with threads USE enabled and add a USE-flag check to the ebuild. Now it compiling smooth.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2008-06-20 08:25:45 UTC
I've added the python check to the ebuild now, thanks for providing the patch!