Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274092 - media-libs/tiff has OpenGL support forced off with no USE flag to turn it on
Summary: media-libs/tiff has OpenGL support forced off with no USE flag to turn it on
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-14 05:50 UTC by Toksyuryel
Modified: 2011-03-23 23:22 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toksyuryel 2009-06-14 05:50:31 UTC
For some reason media-libs/tiff refuses to compile with OpenGL support even when libGL.so is correctly installed, and there's no USE flag that controls OpenGL support for this ebuild.

Reproducible: Always

Steps to Reproduce:
1. Emerge tiff; note the lack of a USE flag that controls OpenGL; note the fact that you have libGL.so properly installed.
2. ^Z after configure
3. Read configure summary

Actual Results:  
You will note that the configure summary indicates that OpenGL support is disabled.

Expected Results:  
libGL.so should have been detected and OpenGL support enabled.

A user from #gentoo believes the problem to be that the ebuild is forcing the configure option '--without-x'. I am going to test this after I post this bug.
Comment 1 Toksyuryel 2009-06-14 06:18:22 UTC
Removing the '--without-x' configure option from the ebuild corrects the problem and libtiff compiles successfully with OpenGL support enabled. However it is likely someone put that there for a reason and that reason was evidently not related to compilation success. I am unable to determine why the option was placed there.
Comment 2 Steve Arnold archtester gentoo-dev 2009-06-23 03:15:37 UTC
This needed some (minor) patching but it's in the tree as a new revision.  Test away...
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 06:17:19 UTC
Steve,

There are several issues with your patch :

1) I couldn't find any reference to Objective-C within the tiff tarball, why was gcc[objc] added to DEPEND ?
2) OpenGL headers on unix/X systems are indeed <GL/gl.h> and <GL/glu.h>
3) The opengl patch in ${FILESDIR} should be using "pkg-config glu" to find proper opengl libs and headers.

Until then, I strongly suggest masking -r6 because forcing users to rebuild gcc with objective C support for opengl support within libtiff just doesn't make sense.

Thanks
Comment 4 giovanni.bobbio 2009-06-23 09:10:56 UTC
Plus, r6 doesn't build even after I rebuilt gcc with the objc flag.

if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../libtiff -I../libtiff -I../libtiff   -O2 -march=native -pipe -Wall -W   -O2 -march=native -pipe -Wall -W -MT tiffgt-tiffgt.o -MD -MP -MF ".deps/tiffgt-tiffgt.Tpo" -c -o tiffgt-tiffgt.o `test -f 'tiffgt.c' || echo './'`tiffgt.c; \
        then mv -f ".deps/tiffgt-tiffgt.Tpo" ".deps/tiffgt-tiffgt.Po"; else rm -f ".deps/tiffgt-tiffgt.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -O2 -march=native -pipe -Wall -W  -Wl,-O1 -o bmp2tiff  bmp2tiff.o ../libtiff/libtiff.la ../port/libport.la -ljpeg -lz -lm -lc
tiffgt.c:36:22: error: GL/glut.h: No such file or directory
tiffgt.c: In function ‘main’:
tiffgt.c:126: warning: implicit declaration of function ‘glutInit’
tiffgt.c:127: warning: implicit declaration of function ‘glutInitDisplayMode’
tiffgt.c:127: error: ‘GLUT_SINGLE’ undeclared (first use in this function)
tiffgt.c:127: error: (Each undeclared identifier is reported only once
tiffgt.c:127: error: for each function it appears in.)
tiffgt.c:127: error: ‘GLUT_RGB’ undeclared (first use in this function)
tiffgt.c:132: warning: implicit declaration of function ‘glutGet’
tiffgt.c:132: error: ‘GLUT_SCREEN_WIDTH’ undeclared (first use in this function)
tiffgt.c:133: error: ‘GLUT_SCREEN_HEIGHT’ undeclared (first use in this function)
tiffgt.c:170: warning: implicit declaration of function ‘glutInitWindowSize’
tiffgt.c:173: warning: implicit declaration of function ‘glutCreateWindow’
tiffgt.c:174: warning: implicit declaration of function ‘glutDisplayFunc’
tiffgt.c:175: warning: implicit declaration of function ‘glutReshapeFunc’
tiffgt.c:176: warning: implicit declaration of function ‘glutKeyboardFunc’
tiffgt.c:177: warning: implicit declaration of function ‘glutSpecialFunc’
tiffgt.c:178: warning: implicit declaration of function ‘glutMainLoop’
tiffgt.c: In function ‘setWindowSize’:
tiffgt.c:279: warning: implicit declaration of function ‘glutReshapeWindow’
tiffgt.c: In function ‘raster_reshape’:
tiffgt.c:299: warning: implicit declaration of function ‘glutSetWindowTitle’
tiffgt.c: In function ‘raster_keys’:
tiffgt.c:344: warning: implicit declaration of function ‘glutPostRedisplay’
tiffgt.c:303: warning: unused parameter ‘x’
tiffgt.c:303: warning: unused parameter ‘y’
tiffgt.c: In function ‘raster_special’:
tiffgt.c:351: error: ‘GLUT_KEY_PAGE_UP’ undeclared (first use in this function)
tiffgt.c:365: error: ‘GLUT_KEY_PAGE_DOWN’ undeclared (first use in this function)
tiffgt.c:378: error: ‘GLUT_KEY_HOME’ undeclared (first use in this function)
tiffgt.c:385: error: ‘GLUT_KEY_END’ undeclared (first use in this function)
tiffgt.c:348: warning: unused parameter ‘x’
tiffgt.c:348: warning: unused parameter ‘y’
libtool: link: i686-pc-linux-gnu-gcc -O2 -march=native -pipe -Wall -W -Wl,-O1 -o .libs/bmp2tiff bmp2tiff.o  ../libtiff/.libs/libtiff.so ../port/.libs/libport.a /usr/lib/libjpeg.so -lz -lm -lc
make[1]: *** [tiffgt-tiffgt.o] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: link: creating bmp2tiff
make[1]: Leaving directory `/var/tmp/portage/media-libs/tiff-3.8.2-r6/work/tiff-3.8.2/tools'
make: *** [all-recursive] Error 1
 *
 * ERROR: media-libs/tiff-3.8.2-r6 failed.

Emerge --info:
# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 23 Jun 2009 07:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --reinstall changed-use --keep-going --jobs=2"
FEATURES="ccache distlocks fixpackages 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="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en it"
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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amarok bash-completion berkdb bluetooth branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt cups dbus dri dvd dvdr dvdread embedded emboss encode fam firefox gd gdbm gif git glib gnokii google-gadgets gpm hal hddtemp history iconv id3tag idn imap imlib ipod irc isdnlog java javascript jpeg kde kdepim laptop libnotify live lm_sensors mad matroska midi mikmod mmx mmxext mp3 mpeg mudflap musicbrainz mysql ncurses networkmanager nls nowlistening nptl nptlonly nsplugin nvidia obex objc offensive ogg opengl openmp pam pcre pda pdf perl plasma png ppds pppd psyco python qt3 qt3support qt4 quicktime rdesktop readline redland reflection sdl sensord session sms spell spl srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg symlink sysfs texteffect thumbnail tiff truetype type1 unicode usb userlocales vcd vnc vorbis webkit webpresence wifi win32codecs x86 xcomposite xine xml xorg xosd xrandr xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="*" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 09:38:22 UTC
Right, I've masked the latest revbump to avoid the hordes of angry users :)

@Steve, don't hesitate to ping me on irc if you need help to fix this.

Thanks
Comment 6 Steve Arnold archtester gentoo-dev 2011-03-23 23:22:52 UTC
According to Frank, upstream hasn't touched this in a long time, and won't really support it as-is.  Since they only have a couple of people maintaining most of the osgeo packages (including tiff) I don't think it will get much attention unless someone who really cares pushes it upstream.  If someone *does* care, then let me know and we can head over to #gdal and talk to the upstream devs about it.