Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205223 - sci-visualization/qmatplot-0.4.2-r1 fails to compile
Summary: sci-visualization/qmatplot-0.4.2-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 16:23 UTC by Evil Compile Person
Modified: 2008-04-19 14:01 UTC (History)
1 user (show)

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


Attachments
Patch qmatplot so that it compiles even with gcc-4.3 (qmatplot-gcc-4.3.patch,5.92 KB, patch)
2008-04-18 23:06 UTC, Martin Väth
Details | Diff
Patch for the ebuild. (qmatplot-0.4.2-r1.ebuild.patch,320 bytes, patch)
2008-04-18 23:08 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-01-10 16:23:33 UTC
source='mpformula.cpp' object='mpformula.o' libtool=no \
        depfile='.deps/mpformula.Po' tmpdepfile='.deps/mpformula.TPo' \
        depmode=gcc3 /bin/sh ../../admin/depcomp \
        x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/qt/3/include -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o mpformula.o `test -f 'mpformula.cpp' || echo './'`mpformula.cpp
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for Ada/C/ObjC but not for C++
mpformula.cpp: In member function 'MPSymbol* MPFormula::parse(const QString&, MPError&, MPFactoryList*)':
mpformula.cpp:130: error: 'yyparse' was not declared in this scope
make[3]: *** [mpformula.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/sci-visualization/qmatplot-0.4.2-r1/work/qmatplot-0.4.2/src/formula'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/sci-visualization/qmatplot-0.4.2-r1/work/qmatplot-0.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sci-visualization/qmatplot-0.4.2-r1/work/qmatplot-0.4.2'
make: *** [all] Error 2
 *
 * ERROR: sci-visualization/qmatplot-0.4.2-r1 failed.

Portage 2.1.4_rc14 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Mon, 07 Jan 2008 19:00:08 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  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="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
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://localhost/gentoo-portage"
USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Dittrich (RETIRED) gentoo-dev 2008-01-11 14:30:39 UTC
Hi.

Thanks for your note! I think there will be much more errors than
just this one (which is easy to fix). It looks like this particular package
has been unmaintained upstream since 2003 and should
probably be removed from portage.

Best,
Markus
Comment 2 Evil Compile Person 2008-01-11 16:42:51 UTC
(In reply to comment #1)
> Hi.
> 
> Thanks for your note! I think there will be much more errors than
> just this one (which is easy to fix). It looks like this particular package
> has been unmaintained upstream since 2003 and should
> probably be removed from portage.
> 

I have no particular use for it, I just compile them all. Feel free to assign to treecleaners :)

Thanks,

Patrick 
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-01-12 12:25:12 UTC
Hi Patrick,

We're currently in the process of removing old cruft from sci-*
and my comment was mostly a note to ourselves that qmatplot should
be part of this effort ;)

In any case, I much appreciate your help with testing packages;
this is very helpful.

Best,
Markus
Comment 4 Martin Väth 2008-04-18 23:06:07 UTC
Created attachment 150242 [details, diff]
Patch qmatplot so that it compiles even with gcc-4.3

It would be a pity to abandon a package just because it needs a few compile tweaks.

The attached patch makes it work with the most current gcc-4.3, but I guess earlier gcc-4* shouldn't be an issue either (the only real problem is the is_sorted-function which was treated differently in earlier gcc versions).
Comment 5 Martin Väth 2008-04-18 23:08:33 UTC
Created attachment 150244 [details, diff]
Patch for the ebuild.

The original ebuild also has to be patched for current autotools:
${D} would be doubled for installation (which gives a fatal QA message).
Comment 6 Martin Väth 2008-04-18 23:12:59 UTC
Maybe one should add a blocker to bug 198121 so that people looking for gcc-4.3 patches find this one?
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2008-04-19 14:01:43 UTC
Thanks much for your patches! qmatplot seems to
be happy again after applying them :)

If there is user interest in a package we will
certainly keep it around unless it becomes a
nightmare to maintain or a security issue. So
for now we'll cross qmatplot off our list of 
to-be-removed packages :)

Best,
Markus