Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48798 - net-www/dillo-0.8.0-r1 fails with gcc-3.4: invalid operands to binary -
Summary: net-www/dillo-0.8.0-r1 fails with gcc-3.4: invalid operands to binary -
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on: 48797
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-23 10:30 UTC by Ed Catmur
Modified: 2004-04-27 16:36 UTC (History)
0 users

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


Attachments
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild (dillo.patch,318 bytes, patch)
2004-04-23 10:32 UTC, Ed Catmur
Details | Diff
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild (dillo.patch,303 bytes, patch)
2004-04-23 10:37 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Catmur 2004-04-23 10:30:40 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I..  -DDILLORC_SYS='"/etc/dillorc"'  -DLOCALEDIR='"/usr/share/locale"' -I/usr/local/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/libpng12 -O2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/X11R6/include -DENABLE_IPV6 -DENABLE_META_REFRESH -D_REENTRANT -D_THREAD_SAFE -Wall -W -Wno-unused-parameter -Waggregate-return -c `test -f 'i18n.c' || echo './'`i18n.c
i18n.c: In function `a_I18n_get_encoding':
i18n.c:250: error: invalid operands to binary -
i18n.c:252: error: invalid operands to binary -
make[3]: *** [i18n.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/dillo-0.8.0-r1/work/dillo-0.8.0/src'

Blocker is bug 48797.

Workaround is to compile without -O CFLAGS (except -Os), or to define __NO_STRING_INLINES to use the function definition of strpbrk instead of the macro.

Suggest the latter. Will post ebuild patch.
Comment 1 Ed Catmur 2004-04-23 10:32:33 UTC
Created attachment 29902 [details, diff]
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild
Comment 2 Ed Catmur 2004-04-23 10:37:26 UTC
Created attachment 29903 [details, diff]
Patch to net-www/dillo/dillo-0.8.0-r1.ebuild

Sorry, wrong patch.
Comment 3 SpanKY gentoo-dev 2004-04-27 00:34:54 UTC
added a slightly diff approach to portage, thanks :)
Comment 4 Ed Catmur 2004-04-27 09:29:49 UTC
Reopening: your patch does not apply correctly. 

This is because src/i18n.c does not exist until ${DILLO_I18N_P}.diff is applied. ${DILLO_I18N_P}.diff.bz2 appears to be a patch from an external source, so we can't just modify it directly, which is a pity.

Need to swap the lines

    epatch ${FILESDIR}/${PV}-gcc34.patch
    epatch ../${DILLO_I18N_P}.diff

giving

    epatch ../${DILLO_I18N_P}.diff
    epatch ${FILESDIR}/${PV}-gcc34.patch
Comment 5 SpanKY gentoo-dev 2004-04-27 16:36:44 UTC
resolved at a different bug