<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hello there,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">May I know if anyone hit the similar issue and guide me how to work around it?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I am trying to build and pixman library for Solaris10, but get the following error</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:32 gobuilds.Compile : 18:15:32.994 make INFO CC pixman-x86.lo</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:33 gobuilds.Compile : 18:15:33.023 make INFO pixman-x86.c: In function 'detect_cpu_features':</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:33 gobuilds.Compile : 18:15:33.023 make INFO pixman-x86.c:68: error: 'AV_386_SSSE3' undeclared (first use in this function)</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:33 gobuilds.Compile : 18:15:33.023 make INFO pixman-x86.c:68: error: (Each undeclared identifier is reported only once</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:33 gobuilds.Compile : 18:15:33.023 make INFO pixman-x86.c:68: error: for each function it appears in.)</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:black">2016-03-30 18:15:33 gobuilds.Compile : 18:15:33.025 make INFO make[2]: *** [pixman-x86.lo] Error 1</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Double check and found that AV_386_SSSE3 is not defined in the solaris10-u2 header file,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_FPU 0x00001 /* x87-style floating point */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_TSC 0x00002 /* rdtsc insn */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_CX8 0x00004 /* cmpxchg8b insn */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_SEP 0x00008 /* sysenter and sysexit */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_AMD_SYSC 0x00010 /* AMD's syscall and sysret */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_CMOV 0x00020 /* conditional move insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_MMX 0x00040 /* MMX insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_AMD_MMX 0x00080 /* AMD's MMX insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_AMD_3DNow 0x00100 /* AMD's 3Dnow! insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_AMD_3DNowx 0x00200 /* AMD's 3Dnow! extended insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_FXSR 0x00400 /* fxsave and fxrstor */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_SSE 0x00800 /* SSE insns and regs */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_SSE2 0x01000 /* SSE2 insns and regs */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_PAUSE 0x02000 /* use pause insn (in spin loops) */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_SSE3 0x04000 /* SSE3 insns and regs */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_MON 0x08000 /* monitor/mwait insns */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">#define AV_386_CX16 0x10000 /* cmpxchg16b insn */…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">However, I could find related definition in the header file for Solaris11, see
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">cat ./solaris11_1111/usr/include/sys/auxv_386.h |grep AV_386_SS*E3<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">#define AV_386_SSE3 0x04000 /* SSE3 insns and regs */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;background:yellow;mso-highlight:yellow">#define AV_386_SSSE3 0x400000 /* Intel SSSE3 insns */</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">May I know do I have to manipulate the 10u2 header file by including related definition, or I need to update the pixman source code like</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333"><br>
<span style="background:white">diff --git a/pixman/pixman-x86.c b/pixman/pixman-x86.c</span><br>
<span style="background:white">index 05297c4..32b4018 100644</span><br>
<span style="background:white">--- a/pixman/pixman-x86.c</span><br>
<span style="background:white">+++ b/pixman/pixman-x86.c</span><br>
<span style="background:white">@@ -65,8 +65,10 @@ detect_cpu_features (void)</span><br>
<span style="background:white"> features |= X86_SSE;</span><br>
<span style="background:white"> if (result & AV_386_SSE2)</span><br>
<span style="background:white"> features |= X86_SSE2;</span><br>
<span style="background:yellow;mso-highlight:yellow">+#ifdef USE_SSSE3</span><br>
<span style="background:white"> if (result & AV_386_SSSE3)</span><br>
<span style="background:white"> features |= X86_SSSE3;</span><br>
<span style="background:yellow;mso-highlight:yellow">+#endif</span><br>
<span style="background:white"> }</span><br>
<br>
</span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Thanks<br>
Yike<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333;background:white"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New";color:#333333;background:white"> </span><span style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
</div>
</body>
</html>