<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<BR> <BR>
> Date: Wed, 2 Jun 2010 16:54:26 +0200<BR>> From: andrei@iptel.org<BR>> To: kevin.jzh@hotmail.com<BR>> CC: sr-users@lists.sip-router.org<BR>> Subject: Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10<BR>> <BR>> On Jun 02, 2010 at 08:32, JinKevin <kevin.jzh@hotmail.com> wrote:<BR>> > <BR>> > <BR>> > <BR>> > Hi Andrei,<BR>> > <BR>> > <BR>> > <BR>> > gcc -dM -E -x c /dev/null<BR>> > #define __sparc__ 1<BR>> > <BR>> [...]<BR>> > <BR>> > <BR>> > isainfo -n<BR>> > sparcv9<BR>> > <BR>> > <BR>> > <BR>> > isainfo -b<BR>> > 64<BR>> > <BR>> > uname -m<BR>> > sun4u<BR>> <BR>> Now I remembered :-)<BR>> The problem on sparcv9 is that you can build either sparc32 or sparc64<BR>> code. The make system tries to use the configured compiler and use its<BR>> default architecture, in this case sparc32.<BR>> This changed from older ser or kamailio version, where IIRC<BR>> 64 bits was always used on sparcv9 (the isainfo arch was used).<BR>> The change was needed for better cross-compiler support, snow leopard<BR>> (boots 32 bits kernel, but gcc is configured to produce 64 bit<BR>> binaries).<BR>> <BR>> So if you have all the needed 64 bits libs installed, you should compile<BR>> for sparc64.<BR>> Either make config CC_EXTRA_OPTS=-m64 or<BR>> make config ARCH=sparc64<BR>> should do it (don't forget to re-run it after any make proper).<BR>> <BR>> <BR>> [...]<BR>> > <BR>> > And bison is also installed, <BR>> > <BR>> > yacc -V <BR>> <BR>> <BR>> I couldn't reproduce the yacc/bison problem.<BR>> For me it compiles flawlessly on an old sparcv9 (solaris 9, bison<BR>> 1.875d).<BR>> <BR>> Could you try running:<BR>> yacc -d -b cfg cfg.y<BR>> by hand and see what happens? (any error? cfg.tab.h and cfg.tab.c<BR>> created?)<BR>><BR>
<BR>
It just reports "Broken Pipe"<BR>
$ yacc -d -b cfg cfg.y<BR>Broken Pipe<BR>
<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>