<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Adding mcrypt Support to Sun&#8217;s CoolStack</title>
	<atom:link href="http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/</link>
	<description></description>
	<pubDate>Thu, 09 Sep 2010 01:12:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Martin Ramos</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-239</link>
		<dc:creator>Martin Ramos</dc:creator>
		<pubDate>Thu, 22 Apr 2010 17:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-239</guid>
		<description>It worked for me, I used a T2000 server SPARC, solaris 10 SPARC, in a Solaris 10 zone.

I just change:
libmcrypt-2.5.7 instead of libmcrypt-2.5.8
gcc instead of cc, because I had not cc installed.</description>
		<content:encoded><![CDATA[<p>It worked for me, I used a T2000 server SPARC, solaris 10 SPARC, in a Solaris 10 zone.</p>
<p>I just change:<br />
libmcrypt-2.5.7 instead of libmcrypt-2.5.8<br />
gcc instead of cc, because I had not cc installed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-164</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 13 Oct 2009 19:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-164</guid>
		<description>Hi, just wanted to say thanks! Your directions saved me a lot of time.</description>
		<content:encoded><![CDATA[<p>Hi, just wanted to say thanks! Your directions saved me a lot of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-94</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Mon, 30 Mar 2009 21:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-94</guid>
		<description>I've successfully compiled the mcrypt modules for php - however when I view the php info via browser it does not display the support ciphers and modes for mcrypt.
Please advise</description>
		<content:encoded><![CDATA[<p>I&#8217;ve successfully compiled the mcrypt modules for php - however when I view the php info via browser it does not display the support ciphers and modes for mcrypt.<br />
Please advise</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-81</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Thu, 19 Feb 2009 17:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-81</guid>
		<description>old post, but just to note, if your shell is zsh, you'll encounter problems during the configure phase when it switches to configuring libltdl and you have set the compilers via CC and CXX env variables.

changing to bash for the configure and compile worked for me.</description>
		<content:encoded><![CDATA[<p>old post, but just to note, if your shell is zsh, you&#8217;ll encounter problems during the configure phase when it switches to configuring libltdl and you have set the compilers via CC and CXX env variables.</p>
<p>changing to bash for the configure and compile worked for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alasdair</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-80</link>
		<dc:creator>Alasdair</dc:creator>
		<pubDate>Sun, 08 Feb 2009 13:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-80</guid>
		<description>Hi Andy,

I'm afraid not - looks Sparc specific. The Sun Forums have a Webstack section and may be able to help. Unfortunately we don't have any Sparc boxes I can test things on.

Paul - You'll need GNU Autoconf and Automake. They're included on the Solaris 10 Companion DVD/CD, and have the names SFWaconf and SFWamake. If they're already installed you just need to add them to your path, by doing:

export PATH=$PATH:/opt/sfw/bin

(Note the SFW Companion CD/DVD packages install to /opt/sfw NOT /usr/sfw (at least in Zones anyway)).</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>I&#8217;m afraid not - looks Sparc specific. The Sun Forums have a Webstack section and may be able to help. Unfortunately we don&#8217;t have any Sparc boxes I can test things on.</p>
<p>Paul - You&#8217;ll need GNU Autoconf and Automake. They&#8217;re included on the Solaris 10 Companion DVD/CD, and have the names SFWaconf and SFWamake. If they&#8217;re already installed you just need to add them to your path, by doing:</p>
<p>export PATH=$PATH:/opt/sfw/bin</p>
<p>(Note the SFW Companion CD/DVD packages install to /opt/sfw NOT /usr/sfw (at least in Zones anyway)).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-79</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 07 Feb 2009 21:18:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-79</guid>
		<description>Hi,
When running the phpize command i got this error
# /opt/coolstack/php5/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
When running the phpize command i got this error<br />
# /opt/coolstack/php5/bin/phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF<br />
environment variable is set correctly and then rerun this script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-78</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Fri, 06 Feb 2009 21:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-78</guid>
		<description>Alasdair,

Thanks for your help so far.  I downloaded and installed SunStudio 12.  Now I can compile and install libmcrypt! Yay!

However, I am getting an error when doing the second part.

[root@shem : mcrypt]$ /opt/coolstack/php5/bin/phpize 
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
NONE:0: /usr/sfw/bin/gm4: `__program__' from frozen file not found in builtin table!
autom4te: /usr/sfw/bin/gm4 failed with exit status: 1

Any ideas?

I looked at your pre-compiled packages, but unfortunately they are for Solaris x86 not Sparc.

Thanks,
Andy</description>
		<content:encoded><![CDATA[<p>Alasdair,</p>
<p>Thanks for your help so far.  I downloaded and installed SunStudio 12.  Now I can compile and install libmcrypt! Yay!</p>
<p>However, I am getting an error when doing the second part.</p>
<p>[root@shem : mcrypt]$ /opt/coolstack/php5/bin/phpize<br />
Configuring for:<br />
PHP Api Version:         20041225<br />
Zend Module Api No:      20060613<br />
Zend Extension Api No:   220060519<br />
NONE:0: /usr/sfw/bin/gm4: `__program__&#8217; from frozen file not found in builtin table!<br />
autom4te: /usr/sfw/bin/gm4 failed with exit status: 1</p>
<p>Any ideas?</p>
<p>I looked at your pre-compiled packages, but unfortunately they are for Solaris x86 not Sparc.</p>
<p>Thanks,<br />
Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alasdair</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-71</link>
		<dc:creator>Alasdair</dc:creator>
		<pubDate>Sat, 31 Jan 2009 18:34:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-71</guid>
		<description>Hi Andy,

Do you have Sun Studio 12 installed? Typing "which cc" should show something along the lines of:

# which cc
/opt/SUNWspro/bin/cc

The error message is a bit obscure and not terribly helpful, not having a "cc" is the first thing that springs to mind.

Generally an up to date and patched Sun Studio 12 produces "better" binaries than gcc (or so advocates tell me). However the main reason I do it is that we package up most of the things we compile for deployment to other servers, and I prefer to not have packages depend on libgcc. Quite often if you compile something with gcc it ends up linking against /usr/sfw/lib/libgcc_s.so.1

Generally I'll try with Sun Studio first, then revert to gcc if it fails.


Murray - sorry for missing your comment. I'm not sure about your issue, if you're still having problems, drop me an email: al at everycity dot co.uk.

Cheers!</description>
		<content:encoded><![CDATA[<p>Hi Andy,</p>
<p>Do you have Sun Studio 12 installed? Typing &#8220;which cc&#8221; should show something along the lines of:</p>
<p># which cc<br />
/opt/SUNWspro/bin/cc</p>
<p>The error message is a bit obscure and not terribly helpful, not having a &#8220;cc&#8221; is the first thing that springs to mind.</p>
<p>Generally an up to date and patched Sun Studio 12 produces &#8220;better&#8221; binaries than gcc (or so advocates tell me). However the main reason I do it is that we package up most of the things we compile for deployment to other servers, and I prefer to not have packages depend on libgcc. Quite often if you compile something with gcc it ends up linking against /usr/sfw/lib/libgcc_s.so.1</p>
<p>Generally I&#8217;ll try with Sun Studio first, then revert to gcc if it fails.</p>
<p>Murray - sorry for missing your comment. I&#8217;m not sure about your issue, if you&#8217;re still having problems, drop me an email: al at everycity dot co.uk.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Fore</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-70</link>
		<dc:creator>Andy Fore</dc:creator>
		<pubDate>Sat, 31 Jan 2009 18:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-70</guid>
		<description>When I compile libmcrypt using cc I get the following error:

*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive &#124; sed s/-recursive//`; \
list='libltdl modules lib src doc'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir &#38;&#38; make  $local_target) \
   &#124;&#124; case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" &#124;&#124; exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /opt/src/libmcrypt-2.5.7
*** Error code 1
make: Fatal error: Command failed for target `all'


If I compile using gcc it makes successfully.  What is the reasoning behind using cc instead of gcc?

Thanks,
Andy</description>
		<content:encoded><![CDATA[<p>When I compile libmcrypt using cc I get the following error:</p>
<p>*** Error code 1<br />
The following command caused the error:<br />
set fnord $MAKEFLAGS; amf=$2; \<br />
dot_seen=no; \<br />
target=`echo all-recursive | sed s/-recursive//`; \<br />
list=&#8217;libltdl modules lib src doc&#8217;; for subdir in $list; do \<br />
  echo &#8220;Making $target in $subdir&#8221;; \<br />
  if test &#8220;$subdir&#8221; = &#8220;.&#8221;; then \<br />
    dot_seen=yes; \<br />
    local_target=&#8221;$target-am&#8221;; \<br />
  else \<br />
    local_target=&#8221;$target&#8221;; \<br />
  fi; \<br />
  (cd $subdir &amp;&amp; make  $local_target) \<br />
   || case &#8220;$amf&#8221; in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \<br />
done; \<br />
if test &#8220;$dot_seen&#8221; = &#8220;no&#8221;; then \<br />
  make  &#8220;$target-am&#8221; || exit 1; \<br />
fi; test -z &#8220;$fail&#8221;<br />
make: Fatal error: Command failed for target `all-recursive&#8217;<br />
Current working directory /opt/src/libmcrypt-2.5.7<br />
*** Error code 1<br />
make: Fatal error: Command failed for target `all&#8217;</p>
<p>If I compile using gcc it makes successfully.  What is the reasoning behind using cc instead of gcc?</p>
<p>Thanks,<br />
Andy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murray</title>
		<link>http://blogs.everycity.co.uk/alasdair/2008/10/adding-mcrypt-support-to-suns-coolstack/#comment-68</link>
		<dc:creator>Murray</dc:creator>
		<pubDate>Mon, 05 Jan 2009 06:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.everycity.co.uk/alasdair/?p=3#comment-68</guid>
		<description>I am trying to compile libmcrypt and when I run the make command I get the following error.

gmake[3]: Entering directory `/usr/lib/libmcrypt/modules/algorithms'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I. -I../..  -I../../lib    -g -O2 -MT 3-way.lo -MD -MP -MF ".deps/3-way.Tpo" -c -o 3-way.lo 3-way.c; \
	then mv -f ".deps/3-way.Tpo" ".deps/3-way.Plo"; else rm -f ".deps/3-way.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../.. -I../../lib -g -O2 -MT 3-way.lo -MD -MP -MF .deps/3-way.Tpo -c 3-way.c  -fPIC -DPIC -o .libs/3-way.o
In file included from 3-way.c:14:
../../lib/libdefs.h:18:19: ltdl.h: No such file or directory
3-way.c:73: warning: conflicting types for built-in function 'gamma'
gmake[3]: *** [3-way.lo] Error 1
gmake[3]: Leaving directory `/usr/lib/libmcrypt/modules/algorithms'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/lib/libmcrypt/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/lib/libmcrypt'
gmake: *** [all] Error 2

Can you make any suggestions. Thanks</description>
		<content:encoded><![CDATA[<p>I am trying to compile libmcrypt and when I run the make command I get the following error.</p>
<p>gmake[3]: Entering directory `/usr/lib/libmcrypt/modules/algorithms&#8217;<br />
if /bin/sh ../../libtool &#8211;tag=CC &#8211;mode=compile gcc -DHAVE_CONFIG_H  -I. -I. -I../.. -I. -I../..  -I../../lib    -g -O2 -MT 3-way.lo -MD -MP -MF &#8220;.deps/3-way.Tpo&#8221; -c -o 3-way.lo 3-way.c; \<br />
	then mv -f &#8220;.deps/3-way.Tpo&#8221; &#8220;.deps/3-way.Plo&#8221;; else rm -f &#8220;.deps/3-way.Tpo&#8221;; exit 1; fi<br />
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I../.. -I../../lib -g -O2 -MT 3-way.lo -MD -MP -MF .deps/3-way.Tpo -c 3-way.c  -fPIC -DPIC -o .libs/3-way.o<br />
In file included from 3-way.c:14:<br />
../../lib/libdefs.h:18:19: ltdl.h: No such file or directory<br />
3-way.c:73: warning: conflicting types for built-in function &#8216;gamma&#8217;<br />
gmake[3]: *** [3-way.lo] Error 1<br />
gmake[3]: Leaving directory `/usr/lib/libmcrypt/modules/algorithms&#8217;<br />
gmake[2]: *** [all-recursive] Error 1<br />
gmake[2]: Leaving directory `/usr/lib/libmcrypt/modules&#8217;<br />
gmake[1]: *** [all-recursive] Error 1<br />
gmake[1]: Leaving directory `/usr/lib/libmcrypt&#8217;<br />
gmake: *** [all] Error 2</p>
<p>Can you make any suggestions. Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
