<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>227287</bug_id>
          
          <creation_ts>2008-06-15 18:50 0000</creation_ts>
          <short_desc>app-office/openoffice-2.4.1 make fail with error: &apos;PyEval_InitThreads&apos; was not declared in this scope</short_desc>
          <delta_ts>2008-06-20 08:25:45 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sleephunter@gmail.com</reporter>
          <assigned_to>openoffice@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>sleephunter@gmail.com</who>
            <bug_when>2008-06-15 18:50:04 0000</bug_when>
            <thetext>=============
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/ &gt; ../../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 &apos;void initpyuno()&apos;:
/home/gentoo-vartmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/module/pyuno_module.cxx:723: error: &apos;PyEval_InitThreads&apos; was not declared in this scope
dmake:  Error code 1, while making &apos;../../unxlngi6.pro/slo/pyuno_module.obj&apos;
---* tg_merge.mk *---
dmake:  Error code 255, while making &apos;do_it_noopt&apos;
---* 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 &quot;stable&quot; 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=&quot;&quot; JAVA_HOME=&quot;/opt/sun-jdk-1.6.0.06&quot;
JAVACFLAGS=&quot;-source 1.4 -target 1.4&quot; COMPILER=&quot;&quot;

$ 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=&quot;x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=prescott -pipe -g&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-O2 -march=prescott -pipe -g&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs distlocks metadata-transfer sfperms splitdebug strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org/&quot;
LANG=&quot;ru_RU.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1 -Wl,--sort-common -Wl,--as-needed&quot;
LINGUAS=&quot;ru&quot;
MAKEOPTS=&quot;-j 4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;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&quot; APACHE2_MODULES=&quot;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&quot; CAMERAS=&quot;canon&quot; ELIBC=&quot;glibc&quot; FOO2ZJS_DEVICES=&quot;hp1018 hp1020&quot; INPUT_DEVICES=&quot;evdev mouse synaptics keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;ru&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;vesa&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>loki_val@gentoo.org</who>
            <bug_when>2008-06-15 19:22:58 0000</bug_when>
            <thetext>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 &quot;Python needs to be built with threads.&quot;
 die
fi
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sleephunter@gmail.com</who>
            <bug_when>2008-06-15 20:19:37 0000</bug_when>
            <thetext>Created an attachment (id=156981)
Patch to check python against threads USE flag

Seems it is work for me now. I&apos;ve re-emerged dev-lang/python with threads USE enabled and add a USE-flag check to the ebuild. Now it compiling smooth.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>suka@gentoo.org</who>
            <bug_when>2008-06-20 08:25:45 0000</bug_when>
            <thetext>I&apos;ve added the python check to the ebuild now, thanks for providing the patch!</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>156981</attachid>
            <date>2008-06-15 20:19 0000</date>
            <desc>Patch to check python against threads USE flag</desc>
            <filename>ooo-2.4.1.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIC91c3IvcG9ydGFnZS9hcHAtb2ZmaWNlL29wZW5vZmZpY2Uvb3Blbm9mZmljZS0yLjQuMS5l
YnVpbGQJMjAwOC0wNi0xMiAwNDozNzoxNS4wMDAwMDAwMDAgKzA0MDAKKysrIG9wZW5vZmZpY2Ut
Mi40LjEuZWJ1aWxkCTIwMDgtMDYtMTYgMDA6MTA6MzUuMDAwMDAwMDAwICswNDAwCkBAIC0xNTks
NiArMTU5LDEzIEBACiAJdXNlIGRlYnVnICYmIENIRUNLUkVRU19ESVNLX0JVSUxEPSI4MTkyIiB8
fCBDSEVDS1JFUVNfRElTS19CVUlMRD0iNTEyMCIKIAljaGVja19yZXFzCiAKKwkjIENoZWNrIHB5
dGhvbgorCWlmICEgYnVpbHRfd2l0aF91c2UgZGV2LWxhbmcvcHl0aG9uIHRocmVhZHMKKwl0aGVu
CisJICAgIGVlcnJvciAiUHl0aG9uIG5lZWRzIHRvIGJlIGJ1aWx0IHdpdGggdGhyZWFkcy4iCisJ
ICAgIGRpZQorCWZpCisKIAlzdHJpcC1saW5ndWFzICR7TEFOR1N9CiAKIAlpZiBbWyAteiAiJHtM
SU5HVUFTfSIgXV07IHRoZW4K
</data>        

          </attachment>
    </bug>

</bugzilla>