Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 48990

Summary: gawk -f x -f y has problems
Product: Gentoo Linux Reporter: Tom Gall (RETIRED) <tgall>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: 2004.0   
Hardware: PPC64   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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. ***