<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR>&nbsp;<BR>
&gt; Date: Wed, 2 Jun 2010 16:54:26 +0200<BR>&gt; From: andrei@iptel.org<BR>&gt; To: kevin.jzh@hotmail.com<BR>&gt; CC: sr-users@lists.sip-router.org<BR>&gt; Subject: Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10<BR>&gt; <BR>&gt; On Jun 02, 2010 at 08:32, JinKevin &lt;kevin.jzh@hotmail.com&gt; wrote:<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; Hi Andrei,<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; gcc -dM -E -x c /dev/null<BR>&gt; &gt; #define __sparc__ 1<BR>&gt; &gt; <BR>&gt; [...]<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; isainfo -n<BR>&gt; &gt; sparcv9<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; isainfo -b<BR>&gt; &gt; 64<BR>&gt; &gt; <BR>&gt; &gt; uname -m<BR>&gt; &gt; sun4u<BR>&gt; <BR>&gt; Now I remembered :-)<BR>&gt; The problem on sparcv9 is that you can build either sparc32 or sparc64<BR>&gt; code. The make system tries to use the configured compiler and use its<BR>&gt; default architecture, in this case sparc32.<BR>&gt; This changed from older ser or kamailio version, where IIRC<BR>&gt; 64 bits was always used on sparcv9 (the isainfo arch was used).<BR>&gt; The change was needed for better cross-compiler support, snow leopard<BR>&gt; (boots 32 bits kernel, but gcc is configured to produce 64 bit<BR>&gt; binaries).<BR>&gt; <BR>&gt; So if you have all the needed 64 bits libs installed, you should compile<BR>&gt; for sparc64.<BR>&gt; Either make config CC_EXTRA_OPTS=-m64 or<BR>&gt; make config ARCH=sparc64<BR>&gt; should do it (don't forget to re-run it after any make proper).<BR>&gt; <BR>&gt; <BR>&gt; [...]<BR>&gt; &gt; <BR>&gt; &gt; And bison is also installed, <BR>&gt; &gt; <BR>&gt; &gt; yacc -V <BR>&gt; <BR>&gt; <BR>&gt; I couldn't reproduce the yacc/bison problem.<BR>&gt; For me it compiles flawlessly on an old sparcv9 (solaris 9, bison<BR>&gt; 1.875d).<BR>&gt; <BR>&gt; Could you try running:<BR>&gt; yacc -d -b cfg cfg.y<BR>&gt; by hand and see what happens? (any error? cfg.tab.h and cfg.tab.c<BR>&gt; created?)<BR>&gt;<BR>
&nbsp;<BR>
It just reports "Broken Pipe"<BR>
$ yacc -d -b cfg cfg.y<BR>Broken Pipe<BR>
&nbsp;<BR>
If I removed the bison , then got some other error as below:<BR>
$ yacc -d -b cfg cfg.y<BR>"cfg.y", line 103: fatal: invalid escape, or illegal reserved word: expect<BR><BR>
Thanks,<BR>
Kevin<BR><BR>                                               <br /><hr />聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! <a href='http://3g.msn.cn/' target='_new'>立刻下载!</a></body>
</html>