On Sat, Dec 06, 2008 at 02:04:12PM -0700, Gary K Olson wrote:
> I tried to build hc, but it fails with multiple errors during make.  I  
> get the same errors whether I use /sw/bin/yacc or bison's yacc.  Here  
> is the build log (short):
> 
> make YACC=/usr/bin/yacc
> /usr/bin/yacc  hc.y
> mv -f y.tab.c hc.c
> cc  -I/sw/include  -c -o hc.o hc.c
> hc.y: In function 'yyparse':
> hc.y:35: warning: incompatible implicit declaration of built-in  
> function 'printf'
> hc.y:35: error: 'mode' undeclared (first use in this function)
> hc.y:35: error: (Each undeclared identifier is reported only once
> hc.y:35: error: for each function it appears in.)
> hc.y:35: error: 'kHex' undeclared (first use in this function)

Those are the same errors we used to get when hc found yacc from
fink's bison package, which was apparently newer and different enough
from the one from OS X that it broke hc (which is a very old piece of
source code). The 'make' command used by hc was adjusted (as you can
see) to hardcode to use the OS X yacc. So you have an unexpected bison
on your machine.

Do you have fink's 'bison' package installed? If so, does uninstalling
it fix the hc build process?

What version of xcode do you have installed? Have you manually
installed a new bison that overwrote the one from OS X? What is
'/usr/bin/bison --version'?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to