Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271152 - openoffice-3.1.0 fails to build error: 'glActiveTexture' was not declared in this scope
Summary: openoffice-3.1.0 fails to build error: 'glActiveTexture' was not declared in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-25 01:22 UTC by Rafael
Modified: 2009-06-06 17:05 UTC (History)
14 users (show)

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


Attachments
build.log (build.log.gz,756.56 KB, application/octet-stream)
2009-05-31 17:43 UTC, Vasilis Lourdas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael 2009-05-25 01:22:37 UTC
------------------------------
Making: ../../../unxlngx6.pro/slb/transitions.lib
echo unxlngx6.pro/slo/barwipepolypolygon.o unxlngx6.pro/slo/boxwipe.o unxlngx6.pro/slo/clippingfunctor.o unxlngx6.pro/slo/combtransition.o unxlngx6.pro/slo/fourboxwipe.o unxlngx6.pro/slo/barndoorwipe.o unxlngx6.pro/slo/iriswipe.o unxlngx6.pro/slo/veewipe.o unxlngx6.pro/slo/ellipsewipe.o unxlngx6.pro/slo/checkerboardwipe.o unxlngx6.pro/slo/randomwipe.o unxlngx6.pro/slo/waterfallwipe.o unxlngx6.pro/slo/clockwipe.o unxlngx6.pro/slo/fanwipe.o unxlngx6.pro/slo/pinwheelwipe.o unxlngx6.pro/slo/snakewipe.o unxlngx6.pro/slo/spiralwipe.o unxlngx6.pro/slo/sweepwipe.o unxlngx6.pro/slo/figurewipe.o unxlngx6.pro/slo/doublediamondwipe.o unxlngx6.pro/slo/zigzagwipe.o unxlngx6.pro/slo/parametricpolypolygonfactory.o unxlngx6.pro/slo/shapetransitionfactory.o unxlngx6.pro/slo/slidetransitionfactory.o unxlngx6.pro/slo/transitionfactorytab.o unxlngx6.pro/slo/transitiontools.o unxlngx6.pro/slo/slidechangebase.o | xargs -n1 > ../../../unxlngx6.pro/slb/transitions.lib
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans
cat /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/src/version.c | sed s/_version.h/OGLTrans.uno_version.h/ > ../../../unxlngx6.pro/misc/OGLTrans.uno_version.c
------------------------------
Making: ../../../unxlngx6.pro/slo/OGLTrans.uno_version.obj
gcc -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing -Wuninitialized -DENABLE_LAYOUT_EXPERIMENTAL=0   -I.  -I../../../unxlngx6.pro/inc/OGLTrans -I../inc -I../../../inc/pch -I../../../inc -I../../../unx/inc -I../../../unxlngx6.pro/inc -I. -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/incdont_use_stl -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/inc/external -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/inc -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/unxlngx6/inc -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/inc -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/res -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/incdont_use_stl -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solenv/inc/Xp31 -I/opt/sun-jdk-1.6.0.13/include -I/opt/sun-jdk-1.6.0.13/include/linux -I/opt/sun-jdk-1.6.0.13/include/native_threads/include -Idefault_x_includes  -I/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/solver/310/unxlngx6.pro/inc/offuh -I. -I../../../res -I. -pipe -march=athlon64 -pipe -msse3  -Wall -Wextra -Wendif-labels -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -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/x86_64-pc-linux-gnu/4.3.3/include/g++-v4 -DSUPD=310 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DGSTREAMER -DENABLE_LAYOUT=1 -DCUI -DSOLAR_JAVA   -DSHAREDLIB -D_DLL_   -o ../../../unxlngx6.pro/slo/OGLTrans.uno_version.o ../../../unxlngx6.pro/misc/OGLTrans.uno_version.c
if test -e ../../../unxlngx6.pro/slo/OGLTrans.uno_version.o ; then touch ../../../unxlngx6.pro/slo/OGLTrans.uno_version.obj ; fi
Compiling: slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.cxx
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.cxx: In member function 'void OGLTransitionImpl::preparePermShader()':
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.cxx:1212: error: 'glActiveTexture' was not declared in this scope
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.cxx: In member function 'void OGLTransitionImpl::displaySlidesShaders(double, sal_Int32, sal_Int32, double, double)':
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans/OGLTrans_TransitionImpl.cxx:1250: error: 'glActiveTexture' was not declared in this scope
dmake:  Error code 1, while making '../../../unxlngx6.pro/slo/OGLTrans_TransitionImpl.obj'

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/slideshow/source/engine/OGLTrans
rmdir /tmp/5820
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-3.1.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5152:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-3.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-3.1.0/temp/environment'.
 * 
!!! 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.13"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info


Reproducible: Always




$ emerge --info
Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4000+-with-glibc2.2.5
Timestamp of tree: Sun, 24 May 2009 06:00:04 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pt_BR.UTF-8"
LC_ALL="pt_BR.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="pt_BR en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bzip2 cairo cdr chardet cli cracklib crypt dbus dri dvd dvdr dvdread dvi emboss encode evo fam fbcon ffmpeg flac fontconfig fortran gdbm gif gpm gs gstreamer gtk hal iconv ipv6 isdnlog java jpeg kdeenablefinal kdehiddenvisibility kdeprefix latex libnotify logrotate mad matroska midi mikmod mmap mmx mmxext mng mp3 mp4 mpeg mtp multilib musepack nautilus ncurses nls nptl nptlonly objc ogg opengl openmp pam pcre pdf png pnm ppds pppd python qt3support quicktime readline reflection samba sdl session smp spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd theora threads tiff truetype unicode usb utempter vim-syntax vorbis wma wmf x264 xcb xcomposite xml xorg xpm xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt_BR en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Juergen Rose 2009-05-25 11:42:16 UTC
The same issue here.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-05-25 12:15:01 UTC
The missing 'glActiveTexture' indicates that it might be related to the nvidia proprietary driver.
Comment 3 Ferdinand Kuhl 2009-05-25 13:25:22 UTC
Yeah, thanks for this idea. I had the same problem here. Before I build I did

eselect opengl set xorg-x11

Now OpenOffice build correctly. After the build i switchted back to nvidia-opengl.

Hope that helps.
Comment 4 Rafael 2009-05-25 16:42:49 UTC
(In reply to comment #3)
> Yeah, thanks for this idea. I had the same problem here. Before I build I did
> 
> eselect opengl set xorg-x11
> 
> Now OpenOffice build correctly. After the build i switchted back to
> nvidia-opengl.
> 
> Hope that helps.
> 
Yes! I was just going to reply that I made the same and it worked.
However I don't know if using this workaround doesn't cause errors during execution.
Comment 5 Anton S. Ustyuzhanin 2009-05-26 03:19:10 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Yeah, thanks for this idea. I had the same problem here. Before I build I did
> > 
> > eselect opengl set xorg-x11
> > 
> > Now OpenOffice build correctly. After the build i switchted back to
> > nvidia-opengl.
> > 
> > Hope that helps.
> > 
> Yes! I was just going to reply that I made the same and it worked.
> However I don't know if using this workaround doesn't cause errors during
> execution.
> 

I confirm that it is working after switching back to nvidia-opengl.
Comment 6 Constantin Baranov 2009-05-26 08:58:31 UTC
"-DGL_GLEXT_PROTOTYPES" is missing in the CFLAGS of the failed command.
Scrolling build.log back you will find this define in previous commands.
Comment 7 Constantin Baranov 2009-05-26 10:29:46 UTC
(In reply to comment #6)
> "-DGL_GLEXT_PROTOTYPES" is missing in the CFLAGS of the failed command.
With -DGL_GLEXT_PROTOTYPES added to CFLAGS (in make.conf) build succeeded.
OpenGL was eselected to nvidia.
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2009-05-26 10:37:28 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > "-DGL_GLEXT_PROTOTYPES" is missing in the CFLAGS of the failed command.
> With -DGL_GLEXT_PROTOTYPES added to CFLAGS (in make.conf) build succeeded.
> OpenGL was eselected to nvidia.
> 
Interesting cause that's actually already done by the ebuild since ages:

use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
Comment 9 Zorzo Luca 2009-05-26 13:29:50 UTC
Same problem here with 3.0.0.
Comment 10 drhopfen 2009-05-28 09:03:22 UTC
For me openoffice-3.1 builds again on ~amd64 with the new nvidia-drivers (180.60), opengl is set to nvidia.
Comment 11 Constantin Baranov 2009-05-28 10:15:01 UTC
(In reply to comment #8)
> Interesting cause that's actually already done by the ebuild since ages:
> use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
Looks like the build system loses the flag for some 'random' reason.
Comment 12 Victor Mataré 2009-05-28 17:17:48 UTC
here the problem seems to be tied to vigra. I got this error after upgrading to vigra-1.6.0, with nvidia-drivers-180.51. Downgrading to vigra-1.5.0-r1 fixed it.

I'll see if the combination vigra-1.6.0 + nvidia-drivers-180.60 works out.
Comment 13 Zorzo Luca 2009-05-28 20:12:51 UTC
Here with gentoo x86_64 and nvidia 180.60 everything is ok (3.0.0).
Comment 14 Neil Cathey 2009-05-29 01:37:40 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > "-DGL_GLEXT_PROTOTYPES" is missing in the CFLAGS of the failed command.
> > With -DGL_GLEXT_PROTOTYPES added to CFLAGS (in make.conf) build succeeded.
> > OpenGL was eselected to nvidia.
> > 
> Interesting cause that's actually already done by the ebuild since ages:
> 
> use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
> 

OK, there seems to have been a bug in flag-o-matic.eclass (bug #271141) that caused append-flags to NOT add the flag to CXXFLAGS.  Could this be the cause of the failure?  It would explain why the -DGL... is missing from the compiler's command line for a c++ file.  It also explains why my current /var/db/pkg/app-office/openoffice-3.1.0/CFLAGS contains the -DGL... but /var/db/pkg/app-office/openoffice-3.10/CXXFLAGS does not contain the -DGL... (I previously emerged openoffice with eselect opengl set xorg-x11 to work around this problem.)

Everybody's reporting that upgrading to nvidia-drivers-180.60 fixed the problem, but they would have synced the fixed flag-o-matic.eclass as well.  This is my hypothesis because I'm on nvidia-drivers-180.60 (via overlay), but still have the old eclass in my tree.  Let's see if I can test it. (OT: I'm wondering if I can patch an eclass in the portage tree without syncing the whole tree or if I should put the patched eclass in my overlay...)
Comment 15 Neil Cathey 2009-05-29 03:10:02 UTC
Well, that _seems_ to have fixed it for me.  I went from a compilation failure to a successful compilation by patching flag-o-matic.eclass with:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.137&r2=1.138

That was the only change.

Also, looking at /var/db/pkg/app-office/openoffice-3.1.0/{CFLAGS,CXXFLAGS} I see -DGL... in both now.
Comment 16 Rafael 2009-05-30 19:43:28 UTC
(In reply to comment #15)
> Well, that _seems_ to have fixed it for me.  I went from a compilation failure
> to a successful compilation by patching flag-o-matic.eclass with:
> 
> http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.137&r2=1.138
> 
> That was the only change.
> 
> Also, looking at /var/db/pkg/app-office/openoffice-3.1.0/{CFLAGS,CXXFLAGS} I
> see -DGL... in both now.
> 
I've just downgraded nvidia-drivers to 180.51 and re-emerged openoffice-3.1.0 with succes. So it seems the problem was really unrelated to nvidia-drivers.

Thanks to everyone for the feedback!
Comment 17 Vasilis Lourdas 2009-05-31 17:43:00 UTC
Created attachment 193080 [details]
build.log

Still fails here. Maybe different error now.

It's getting frustrating, maybe I should go the -bin way. :-(
Comment 18 Rafael 2009-06-01 00:14:28 UTC
(In reply to comment #17)
> Created an attachment (id=193080) [edit]
> build.log
> 
> Still fails here. Maybe different error now.
> 
> It's getting frustrating, maybe I should go the -bin way. :-(
> 

Interesting. You are hitting another bug. This bug happened to me with gst-python-0.10.15-r1 and gnome-panel-2.26.2 but not with openoffice. Maybe the ebuild has changed.

See bug 270964