Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42970 - glimpse does not merge anymore because of newer gcc which doesn't support varargs.h
Summary: glimpse does not merge anymore because of newer gcc which doesn't support var...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-26 04:20 UTC by Guy Martin (RETIRED)
Modified: 2004-04-21 19:13 UTC (History)
1 user (show)

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


Attachments
Workaround for absence of varargs.h and clash with built-in function log() under gcc 3 (4.17.4-gcc3.patch,2.08 KB, patch)
2004-03-01 15:39 UTC, Joe Khoobyar
Details | Diff
Ebuild to apply the gcc3 patch, and disable parallel makes (glimpse-4.17.4-r1.ebuild,836 bytes, text/plain)
2004-03-01 15:59 UTC, Joe Khoobyar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guy Martin (RETIRED) gentoo-dev 2004-02-26 04:20:55 UTC
<snip>
In file included from log.c:61:
/usr/lib/gcc-lib/hppa-unknown-linux-gnu/3.3.2/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc-lib/hppa-unknown-linux-gnu/3.3.2/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
In file included from log.c:63:
../include/util.h:102: warning: conflicting types for built-in function `log'
log.c:133: error: parse error before "va_dcl"
log.c:134: error: syntax error before '{' token
log.c:138: error: parse error before "if"
log.c:141: warning: parameter names (without types) in function declaration
log.c:141: warning: data definition has no type or storage class
log.c:142: error: conflicting types for `fmt'
<snip>
gcc  -L../lib -o ../bin/wgconvert convert.o io.o simpletest.o filetype.o region.o memlook.o getword.o -lagrep -ldl -ldl
make[1]: Leaving directory `/var/tmp/portage/glimpse-4.17.4/work/glimpse-4.17.4/index'
make[1]: Entering directory `/var/tmp/portage/glimpse-4.17.4/work/glimpse-4.17.4/dynfilters'
flex -F -8 htuml2txt.lex
gcc -O3 -fomit-frame-pointer  -c lex.yy.c
gcc  -o htuml2txt lex.yy.o -lfl
make[1]: Leaving directory `/var/tmp/portage/glimpse-4.17.4/work/glimpse-4.17.4/dynfilters'

!!! ERROR: app-misc/glimpse-4.17.4 failed.
!!! Function src_compile, Line 21, Exitcode 2
!!! (no error message)


ok this is on hppa but it's the same for x86. lanius told me to assign this to you.

perhaps more apps breaks.
Comment 1 Joe Khoobyar 2004-03-01 15:33:01 UTC
Same problem here, on x86.

Here's a proposed patch to fix the problem.

Joe Khoobyar
http://ankhcraft.com
<joe@ankhcraft.com>

By the way, here's a shameless plug:  

Check out http://freshmeat.net/projects/vim4j
This is new fork of Vim4J with a Java AWT GUI that integrates with Vim's gui subsystem via JNI and the mail goal is integration with Eclipse (and other Java-based IDE's) as an editor plugin.
Comment 2 Joe Khoobyar 2004-03-01 15:39:29 UTC
Created attachment 26690 [details, diff]
Workaround for absence of varargs.h and clash with built-in function log() under gcc 3

Workaround for absence of varargs.h and clash with built-in function log()
under gcc 3.

A very brief patch, and should work on any arch.
Comment 3 Joe Khoobyar 2004-03-01 15:45:34 UTC
Comment on attachment 26690 [details, diff]
Workaround for absence of varargs.h and clash with built-in function log() under gcc 3

Have to rename this to work with epatch, whoops...
Comment 4 Joe Khoobyar 2004-03-01 15:59:02 UTC
Created attachment 26691 [details]
Ebuild to apply the gcc3 patch, and disable parallel makes

Ebuild to apply the gcc3 patch, and disable parallel makes.

Parallel make seems to break builds for glimpse-4.17.4, and the make will
simply fail silently, while emerge will fail with an error message.
Comment 5 SpanKY gentoo-dev 2004-04-21 19:13:43 UTC
fixed in 4.17.4

thanks for the patch