<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">2013/1/10 Jan Holzhueter <span dir="ltr"><<a href="mailto:jh@opencsw.org" target="_blank">jh@opencsw.org</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hi,<br>
<br><div class="im">> Well I am not sure it is fine.<br>
> It usually means that, to be run, your binary requires a system with<br>
> hardware capability AMD_3DNOW.<br>
> See: <a href="http://docs.oracle.com/cd/E19082-01/819-0690/chapter2-20/index.html" target="_blank">http://docs.oracle.com/cd/E19082-01/819-0690/chapter2-20/index.html</a><br>
><br>
</div>I needed to raise the build level for ffmpeg anyway to build.<br>
<a href="http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/ffmpeg/trunk/Makefile#L176" target="_blank">http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/ffmpeg/trunk/Makefile#L176</a><br>
<br>
I'm not sure here if sse is the "same" as AMD_3DNOW but I think they are<br></blockquote><div><br></div><div style>So you will have the same problem I suppose.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<br>
On the other hand ffmpeg does have cpu autodetect. So iirc it only uses<br>
codepath it can use. But builds all code paths. For see I could be wrong<br>
as I added it as flags</blockquote><div><br></div><div><br></div><div style>Well ffmpeg may have cpu autodetect but solaris will refuse to load the binary anyway.</div><div style>See what happens when I am trying to run in under Solaris 10 x86 which can run adm64 binaries:</div>

<div style><br></div><div style><div>yann@unstable10x:~/opencsw/openssl1/trunk$ /home/jh/opencsw/ffmpeg/trunk/work/solaris10-i386/pkgroot/opt/csw/bin/amd64/ffmpeg     </div><div>ld.so.1: ffmpeg: fatal: /home/jh/opencsw/ffmpeg/trunk/work/solaris10-i386/pkgroot/opt/csw/bin/amd64/ffmpeg: hardware capability (CA_SUNW_HW_1) unsupported: 0x100  [ AMD_3DNow ]</div>

<div>Killed</div><div><br></div><div><br></div><div style>If you are sure than ffmpeg can use the good code path at runtime, you need to prevent the hardware capability to be stored into the binary during the compilation or you need to remove it after the compilation.</div>

<div style>I know you can do the latter using elfedit. See <a href="http://docs.oracle.com/cd/E23824_01/html/821-1461/elfedit-1.html">http://docs.oracle.com/cd/E23824_01/html/821-1461/elfedit-1.html</a> section "Example 2 Removing a Hardware Capability Bit".</div>

<div><br></div><div><br></div><div style>I think now that this problem is eligible to a new checkpkg test.</div><div><br></div><div><br></div><div style>Yann</div></div></div><br></div></div>