<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.stormsail.com/index.php?action=history&amp;feed=atom&amp;title=Compiling_applications_on_Solaris</id>
	<title>Compiling applications on Solaris - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stormsail.com/index.php?action=history&amp;feed=atom&amp;title=Compiling_applications_on_Solaris"/>
	<link rel="alternate" type="text/html" href="https://wiki.stormsail.com/index.php?title=Compiling_applications_on_Solaris&amp;action=history"/>
	<updated>2026-04-14T08:01:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.stormsail.com/index.php?title=Compiling_applications_on_Solaris&amp;diff=69&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;  * compiler detective -&gt; http://blogs.oracle.com/timc/entry/the_compiler_detective_what_compiler     * Installing HandBrakeCLI   https://trac.handbrake.fr/browser/trunk/doc/B...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.stormsail.com/index.php?title=Compiling_applications_on_Solaris&amp;diff=69&amp;oldid=prev"/>
		<updated>2013-01-03T08:33:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  * compiler detective -&amp;gt; http://blogs.oracle.com/timc/entry/the_compiler_detective_what_compiler     * Installing HandBrakeCLI   https://trac.handbrake.fr/browser/trunk/doc/B...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;  * compiler detective -&amp;gt; http://blogs.oracle.com/timc/entry/the_compiler_detective_what_compiler&lt;br /&gt;
&lt;br /&gt;
   * Installing HandBrakeCLI&lt;br /&gt;
&lt;br /&gt;
 https://trac.handbrake.fr/browser/trunk/doc/BUILD-Linux&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/opt/hand --disable-gtk --force --launch --launch-jobs=0&lt;br /&gt;
&lt;br /&gt;
 vi $SRC/contrib/fontconfig/module.defs&lt;br /&gt;
&lt;br /&gt;
 change:&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # Under MinGW:&lt;br /&gt;
 #&lt;br /&gt;
 # - A &amp;#039;i386-ming32-gcc&amp;#039; $(FONTCONFIG.GCC.gcc) command will be available,&lt;br /&gt;
 #   and the &amp;#039;-arch &amp;lt;arch&amp;gt;&amp;#039; argument should be omitted, as it will confuse this compiler.&lt;br /&gt;
 #&lt;br /&gt;
 # - The $(FONTCONFIG.GCC.archs) variable is not set.&lt;br /&gt;
 #   Therefore statically guess the target arch to be i386.&lt;br /&gt;
 #&lt;br /&gt;
 ifeq ($(BUILD.system),mingw)&lt;br /&gt;
     FONTCONFIG.cc_archoption      =&lt;br /&gt;
     FONTCONFIG.config_archoption  = --with-arch=i386&lt;br /&gt;
 else ifeq ($(BUILD.system),linux)&lt;br /&gt;
     FONTCONFIG.cc_archoption      =&lt;br /&gt;
 else&lt;br /&gt;
     FONTCONFIG.cc_archoption      = &lt;br /&gt;
     FONTCONFIG.config_archoption  = --with-arch=i386&lt;br /&gt;
 endif&lt;br /&gt;
&lt;br /&gt;
 cd $SRC/contrib/x264/&lt;br /&gt;
 mv P01-solaris.patch P01-solaris&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ./configure --prefix=/opt/hand --disable-gtk&lt;br /&gt;
&lt;br /&gt;
 make contrib.fetch&lt;br /&gt;
 make contrib.extract&lt;br /&gt;
 make contrib.patch&lt;br /&gt;
&lt;br /&gt;
 libass-0.9.13.tar.gz&lt;br /&gt;
 libiconv-1.13.1.tar.gz&lt;br /&gt;
&lt;br /&gt;
 download build autoconf &amp;amp; automake&lt;br /&gt;
&lt;br /&gt;
 vi /jack/HandBrake-0.9.6/contrib/x264/module.defs&lt;br /&gt;
&lt;br /&gt;
 add --disable-asm:&lt;br /&gt;
&lt;br /&gt;
 X264.CONFIGURE.extra += --disable-gpac --disable-avs --disable-lavf --disable-ffms --disable-swscale --disable-asm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cp libiconv-1.13.1.tar.gz /jack/HandBrake-0.9.6/build/contrib/libiconv&lt;br /&gt;
&lt;br /&gt;
 cp libass-0.9.13.tar.gz /jack/HandBrake-0.9.6/build/contrib/libass&lt;br /&gt;
&lt;br /&gt;
 libavcodec&lt;br /&gt;
&lt;br /&gt;
 vi /jack/HandBrake-0.9.6/contrib/ffmpeg/module.defs&lt;br /&gt;
&lt;br /&gt;
 FFMPEG.CONFIGURE.extra = \&lt;br /&gt;
&lt;br /&gt;
 add&lt;br /&gt;
&lt;br /&gt;
 --disable-ssse3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 For others looking at the same issue:&lt;br /&gt;
&lt;br /&gt;
 We hashed this issue out off-list, using&lt;br /&gt;
 configure CC=&amp;#039;gcc -m64&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 works, just&lt;br /&gt;
 configure CFLAGS=-m64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ln -s /usr/bin/libtool .&lt;br /&gt;
&lt;br /&gt;
 For some packages, you seem to also run into trouble where libtool can&amp;#039;t figure out what you&amp;#039;re doing:&lt;br /&gt;
&lt;br /&gt;
    $ libtool --mode=compile target-gcc -g -O2 -c foo.c&lt;br /&gt;
    libtool: compile: unable to infer tagged configuration&lt;br /&gt;
    libtool: compile: specify a tag with `--tag&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 OK, so it couldn&amp;#039;t figure out that we&amp;#039;re compiling C code. No problem, just add the tag --tag=CC. Works when we compile:&lt;br /&gt;
&lt;br /&gt;
   * [[http://stupidpupil.co.uk/opensolaris/handbrake/compile/][Compiling HandBrake on OpenSolaris]]&lt;br /&gt;
   * [[http://www.nexenta.org/boards/1/topics/1340][Compiling Handbrake CLI on Nexenta]]&lt;br /&gt;
   * [[https://riebart.ca/w/index.php?title=User:Mike&amp;amp;oldid=411#Compiling_and_installing_ffmpeg_on_Solaris_.28git_.29][Compiling and installing ffmpeg on Solaris]]&lt;br /&gt;
&lt;br /&gt;
make install fails with strange &amp;quot;cycle detected&amp;quot; errors from find and a &amp;quot;libavdevice.a was not found anywhere!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
    * This is because it is trying to use /usr/sbin/install which appears to be broken, or at least incompatible with GNU install.&lt;br /&gt;
    * Solve this by symlinking /usr/bin/ginstall to /use/bin/install (if /usr/bin is before /usr/sbin in the PATH). Essentially, get it to use ginstall instead and it works dandy. &lt;br /&gt;
&lt;br /&gt;
http://www.neuhalfen.name/2011/10/15/MPlayer_On_Solaris11/&lt;br /&gt;
&lt;br /&gt;
mplayer rebuild for Solaris 11:&lt;br /&gt;
&lt;br /&gt;
http://www.neuhalfen.name/2011/10/15/MPlayer_On_Solaris11/&lt;br /&gt;
&lt;br /&gt;
 build 32bits otherwise mplayer vd_codec will complain.&lt;br /&gt;
&lt;br /&gt;
 libmad&lt;br /&gt;
 a52dec&lt;br /&gt;
 libdca&lt;br /&gt;
 xvidcore&lt;br /&gt;
 faac&lt;br /&gt;
 x264 ./configure --enable-pic --disable-asm --enable-shared --prefix=/opt/x264&lt;br /&gt;
 lame&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 depend fmri=pkg:/developer/gcc/gcc-runtime-432@4.3.2 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLlibmad@0.15.1 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLa52dec@0.7.4 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLlibdca@0.0.5 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLxvidcore@1.2.2 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLfaac@1.28 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLx264@20100125 type=require&lt;br /&gt;
 depend fmri=pkg:/MBLlame@3.98.2 type=require&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 a52dec-0.7.4&lt;br /&gt;
 faac-1.28&lt;br /&gt;
 faad2-2.7&lt;br /&gt;
 lame-3.99&lt;br /&gt;
 libdca-0.0.5&lt;br /&gt;
 libmad-0.15.1b&lt;br /&gt;
 x264&lt;br /&gt;
 xvidcore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 libmad:&lt;br /&gt;
&lt;br /&gt;
 remove -fforce-mem from CFLAGS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MPlayer-1.0rc2&lt;br /&gt;
&lt;br /&gt;
 xvid fix -&amp;gt; http://seriouswebapps.com/installing-xvid-122-on-opensolaris&lt;br /&gt;
&lt;br /&gt;
 cd /src&lt;br /&gt;
 tar xzf xvidcore-1.2.2.tar.gz &amp;amp;&amp;amp; cd xvidcore/build/generic&lt;br /&gt;
 CFLAGS=$( find -L /my -type d -name include -exec echo &amp;quot;-I{} &amp;quot; \; | grep -v &amp;quot;[.][0-9]&amp;quot; | grep -v &amp;quot;pth&amp;quot; | tr -d &amp;#039;\n&amp;#039; ) \&lt;br /&gt;
  CPPFLAGS=$( find -L /my -type d -name include -exec echo &amp;quot;-I{} &amp;quot; \; | grep -v &amp;quot;[.][0-9]&amp;quot; | grep -v &amp;quot;pth&amp;quot; | tr -d &amp;#039;\n&amp;#039; ) \&lt;br /&gt;
  LDFLAGS=$( find -L /my -type d -name lib -exec echo &amp;quot;-L{} -R{} &amp;quot; \; | grep -v &amp;quot;[.][0-9]&amp;quot; | tr -d &amp;#039;\n&amp;#039; ) \&lt;br /&gt;
  CC=gcc \&lt;br /&gt;
  ./configure --prefix=/my/xvidcore-1.2.2 &amp;gt;&amp;gt;mylog.txt&lt;br /&gt;
 # modify line 133 in Makefile, replace &amp;quot;$(CC)&amp;quot; with &amp;quot;/bin/ld&amp;quot;&lt;br /&gt;
 vi Makefile&lt;br /&gt;
 # modify line 48 in platform.inc, to read&lt;br /&gt;
 SPECIFIC_LDFLAGS=-h libxvidcore.$(SHARED_EXTENSION).$(API_MAJOR) -B dynamic -shared -M libxvidcore.ld -lc -lm -lpthread&lt;br /&gt;
 vi platform.inc&lt;br /&gt;
 gmake all &amp;gt;&amp;gt;mylog.txt &amp;amp;&amp;amp; su&lt;br /&gt;
 gmake install &amp;gt;&amp;gt;mylog.txt&lt;br /&gt;
 ln -s /my/xvidcore-1.2.2 /my/xvidcore&lt;br /&gt;
 ln -s libxvidcore.so.4.2 /my/xvidcore-1.2.2/lib/libxvidcore.so&lt;br /&gt;
 ln -s /my/xvidcore/lib/* /usr/lib/&lt;br /&gt;
 ln -s /my/xvidcore/include/* /usr/include/&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Package Building&lt;br /&gt;
&lt;br /&gt;
 pkgsend generate root &amp;gt; MANIFEST.files&lt;br /&gt;
&lt;br /&gt;
 root@monkey:/opt/package/a52dec# more MANIFEST.files&lt;br /&gt;
 # STRMa52dec@0.7.4, client release 5.11&lt;br /&gt;
 set name=pkg.description value=&amp;quot;ATSC A/52 stream decoder&amp;quot;&lt;br /&gt;
 set name=pkg.fmri value=&amp;quot;pkg:/STRMa52dec@0.7.4,0.5.11-0.0.0&amp;quot;&lt;br /&gt;
 set name=pkg.name value=&amp;quot;ATSC A/52 stream decoder&amp;quot;&lt;br /&gt;
 set name=description value=&amp;quot;ATSC A/52 stream decoder&amp;quot;&lt;br /&gt;
 set name=info.maintainer value=&amp;quot;Andy Harrison (andy@stormsail.com)&amp;quot;&lt;br /&gt;
 dir group=bin mode=0755 owner=root path=usr&lt;br /&gt;
 &amp;lt;snip&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 pkgsend publish -s /export/repo/misc/stormsail -d root test&lt;br /&gt;
&lt;br /&gt;
 root@monkey:/opt/package/libdca# more trans &lt;br /&gt;
 &amp;lt;transform file dir -&amp;gt; default owner root&amp;gt;&lt;br /&gt;
 &amp;lt;transform file dir -&amp;gt; default group bin&amp;gt;&lt;br /&gt;
 &amp;lt;transform file -&amp;gt; default mode 0644&amp;gt;&lt;br /&gt;
 &amp;lt;transform dir -&amp;gt; default mode 0755&amp;gt; &lt;br /&gt;
&lt;br /&gt;
 root@monkey:/opt/package/libdca# pkgmogrify -I . -O test MANIFEST.files trans&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 root@monkey:/export/build/MPlayer-1.0rc4#./configure --prefix=/opt/test --extra-ldflags=&amp;quot;-lm&amp;quot;&lt;br /&gt;
 root@monkey:/export/build/MPlayer-1.0rc4#&lt;br /&gt;
&lt;br /&gt;
There is a bug in the latest SVN source as you end up with an error like this:&lt;br /&gt;
&lt;br /&gt;
 gcc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign   -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg   -I/usr/X11/include  -I/usr/include/freetype2   -c -o libao2/ao_sun.o libao2/ao_sun.c&lt;br /&gt;
 libao2/ao_sun.c: In function &amp;#039;realtime_samplecounter_available&amp;#039;:&lt;br /&gt;
 libao2/ao_sun.c:161:35: error: &amp;#039;MSGTR_AO_SUN_RtscWriteFailed&amp;#039; undeclared (first use in this function)&lt;br /&gt;
 libao2/ao_sun.c:161:35: note: each undeclared identifier is reported only once for each function it appears in&lt;br /&gt;
 gmake: *** [libao2/ao_sun.o] Error 1&lt;br /&gt;
&lt;br /&gt;
Essentially MSGTR_AO_SUN_RtscWriteFailed hasn&amp;#039;t been defined...... so let&amp;#039;s find in out of an older release and add the following to help_mp.h:&lt;br /&gt;
&lt;br /&gt;
 #define MSGTR_AO_SUN_RtscWriteFailed &amp;quot;[AO SUN] rtsc: write failed.\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   * http://mailman.videolan.org/pipermail/x264-devel/2012-January/008959.html -&amp;gt; Patch for x264 using Solaris Compilers&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>