[Java-gnome-developer] fix for "unexpected end of file" bug
Brought to you by:
afcowie
From: Andrew C. <an...@op...> - 2004-11-07 05:58:14
|
Remember that problem everyone has been having along the lines of ./configure: line 2420: syntax error: unexpected end of file When we went to run autogen? I ran into this again today as I've been in the process of writing Gentoo ebuilds for java-gnome 2.8 So I started digging. And digging more And then madly debugging even more than that. I found the bastard. You're not going to believe this. THERE IS A TRAILING TAB CHARACTER IN THE ONE PLACE THAT THERE CANNOT BE: THE "END OF HERE DOCUMENT" MARKER Specifically, libgtk-java/macros/am_path_gcj.m4, line 106 says EOF<TAB> but of course the here document <<EOF is looking for EOF not EOF<TAB>, so it doesn't match. Delete the trailing \t and you're all set. [Not to mention, watch all kinds of other configure output start appearing that you never saw before because it was getting trapped in what was effectively a several hundred line overflowing string] Patch attached. Needs to be applied to 2.8 and to 2.9. Assuming this is correct, then it really needs to be pushed out as 2.8.2.1 ASAP - so if others could test this I'd appreciate it. We've been fighting this for months now. AfC Sydney /me hates autoconf. -- Andrew Frederick Cowie OPERATIONAL DYNAMICS Operations Consultants and Infrastructure Engineers Australia: +61 2 9977 6866 North America: +1 646 472 5054 http://www.operationaldynamics.com/ |