Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48990 - gawk -f x -f y has problems
Summary: gawk -f x -f y has problems
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC64 All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2004-04-25 19:22 UTC by Tom Gall (RETIRED)
Modified: 2004-07-13 20:21 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Gall (RETIRED) gentoo-dev 2004-04-25 19:22:24 UTC
given where x is a file of the form:

BEGIN { print "hello world" }

and y is a file of the form:

BEGIN { print "hello world" }

it should print hello world twice ... it does not!
Comment 1 Tom Gall (RETIRED) gentoo-dev 2004-04-25 19:23:25 UTC
The bug is because numfiles is declared as a long in main.c but extern int in awkgram.y / awkgram.c.  This bug appears that it would affect all 64 bit architectures
Comment 2 Tom Gall (RETIRED) gentoo-dev 2004-04-25 19:41:12 UTC
simple fix, change code to be the same for the type declaration and things work just fine.
Comment 3 Tom Gall (RETIRED) gentoo-dev 2004-04-25 19:44:18 UTC
validated on x86_64 and ppc64 (x86_64 seems to do the right thing regardless so that arch never sees the bug)
Comment 4 Tom Gall (RETIRED) gentoo-dev 2004-04-25 19:44:41 UTC
done, dead...
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2004-04-28 05:15:33 UTC
*** Bug 49101 has been marked as a duplicate of this bug. ***