Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208301 - dev-php5/php-qt-0.9 fails to compile
Summary: dev-php5/php-qt-0.9 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-31 14:03 UTC by Ann Ohnym
Modified: 2008-02-11 21:32 UTC (History)
1 user (show)

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


Attachments
Should deactivate qwt detection (php-qt_qwt.patch,1.05 KB, patch)
2008-02-07 10:44 UTC, Bernd Steinhauser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ann Ohnym 2008-01-31 14:03:45 UTC
I did emerge -DuNtav world php-qt and got this error

[ 80%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_20.o
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5251: error: expected ',' or '...' before 'x3'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5459: error: expected ',' or '...' before 'x3'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'void x_QwtPlot::x_83(Smoke::StackItem*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5105: error: expected primary-expression before 'const'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5105: error: expected `)' before 'const'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'void x_QwtPlot::x_90(Smoke::StackItem*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5140: error: expected primary-expression before 'const'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5140: error: expected `)' before 'const'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'virtual void x_QwtPlot::drawItems(QPainter*, const QRect&, const QwtScaleMap*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5255: error: 'x3' was not declared in this scope
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5256: error: 'x4' was not declared in this scope
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'virtual void x_QwtPlot::printCanvas(QPainter*, const QRect&, const QwtScaleMap*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5463: error: 'x3' was not declared in this scope
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:5464: error: 'x4' was not declared in this scope
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'void x_QwtPlotLayout::x_31(Smoke::StackItem*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:7545: error: expected primary-expression before 'int'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:7545: error: expected `)' before 'int'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp: In member function 'void x_QwtPlotLayout::x_32(Smoke::StackItem*) const':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:7550: error: expected primary-expression before 'scaleRect'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_19.cpp:7550: error: expected `)' before 'scaleRect'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3083: error: expected ',' or '...' before 'x2'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3090: error: expected ',' or '...' before 'x3'
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp: In static member function 'static void x_QwtScaleDiv::x_6(Smoke::StackItem*)':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3080: error: expected primary-expression before '[' token
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3080: error: expected primary-expression before ')' token
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp: In constructor 'x_QwtScaleDiv::x_QwtScaleDiv(const QwtDoubleInterval&, QwtValueList*)':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3083: error: 'x2' was not declared in this scope
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp: In static member function 'static void x_QwtScaleDiv::x_7(Smoke::StackItem*)':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3087: error: expected primary-expression before '[' token
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3087: error: expected primary-expression before ')' token
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp: In constructor 'x_QwtScaleDiv::x_QwtScaleDiv(double, double, QwtValueList*)':
/var/tmp/portage/dev-php5/php-qt-0.9/work/php-qt_build/smoke/qt/x_20.cpp:3090: error: 'x3' was not declared in this scope
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_19.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [smoke/qt/CMakeFiles/smokeqt.dir/x_20.o] Error 1
make[1]: *** [smoke/qt/CMakeFiles/smokeqt.dir/all] Error 2
make: *** [all] Error 2




Reproducible: Always




emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3b i686)
=================================================================
System uname: 2.6.23-gentoo-r3b i686 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Thu, 31 Jan 2008 13:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2  -pipe -funroll-loops"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2  -pipe -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://distfiles.gentoo.org"
LINGUAS="sv en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 bcmath berkdb bitmap-fonts bzip2 cdr cli cracklib crypt ctype cups curl doc dri dvdr examples fortran ftp gd gdbm gif gmp gpm iconv icq imagemagick ipv6 isdnlog jpeg latex maildir midi mudflap mysql ncurses nls nptl nptlonly nvidia opengl openmp pam pcre perl php png posix postgres pppd python qt4 readline reflection revode sasl session simplexml soap sockets spl sqlite ssl subversion svg tcpd threads truetype truetype-fonts type1-fonts unicode x86 xinerama xml xmlreader xmlrpc xmlwriter xorg xsl zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-31 14:10:12 UTC
Well, it compiles just perfectly fine here.

@qt: are you interested in co-maintaining this package? This is totally outside of PHP herds scope. If not, it's going to end up as m-needed thing mostly likely.
Comment 2 Marc Rodarte 2008-02-03 00:22:06 UTC
This error seems to occur when x11-libs/qwt-5.0* is installed, as far as I can tell there is no easy way to disable this optional dependancy (well with cmake args anyway).
Comment 3 Bernd Steinhauser 2008-02-07 10:44:37 UTC
Created attachment 142863 [details, diff]
Should deactivate qwt detection

Could you please try with this patch?
Comment 4 Ann Ohnym 2008-02-07 16:19:27 UTC
Yes, but only with some instructions on how to apply patch. 
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-11 21:32:47 UTC
In CVS, hard-disabling qwt with the patch from Comment #3; since this fails w/ smoke-4, nothing else we could do here ATM unless someone provides better solution.