Tag Archives: Solaris

Building A 64-bit Resin On Solaris 10 Using SunStudio 12u1

This has been bothering me for quite some time. Resin is one of the best application servers I’ve come across. But to get the best performance out of it, you need to recompile it for your platform. While this is no problem on Linux it never quite worked out on Solaris for me when using SunStudio 12. But now I finally made it happen. Here’s how.
Continue reading

Porting For The Sun: The Zlib Problem (ld.so.1: exe: fatal: relocation error: R_AMD64_32:)

With the recent update of the Sun Studio 12 compiler set I started seeing errors like this when compiling for example MySQL from source:

ld.so.1: exe: fatal: relocation error: R_AMD64_32:

Turns out that it was Zlib 1.2.5 causing the problem.
Continue reading

Bash: Dynamic Variables

Every once in a while I need to use dynamic variables in shell scripts for doing things like

echo ${{$foo}_bar}

but unfortunately it won’t work like shown in the example above.
What will work however is this:
Continue reading

Resolved: “ld: fatal: file values-Xa.o: open failed: No such file or directory” when compiling on (Open)Solaris

Ah well. Compiling software on Solaris could be really easy if it weren’t for the small problems all the time. Today I was faced with

ld: fatal: file values-Xa.o: open failed: No such file or directory

when trying to compile Subversion 1.6.5 on OpenSolaris.

Solution:

pkg install SUNWarc

{openx:6}

No IonCube Loader for PHP 5.3.0 – for now ;)

This is what I received today after offering a Solaris build environment to the guys from IonCube so they could build a version of their loader for my preferred web server OS:

Continue reading

Enable SNMP on OpenSolaris

If you like to monitor your machines using SNMP and find yourself on a machine running OpenSolaris, chances are that there is

/usr/sfw/bin/snmpd

already installed. But there’s no service or init script to actually run it automatically. In that case, just install the necessary package from the OpenSolaris repostiory:

pkg install SUNWsmmgr

Continue reading

Mac and Solaris: Fix the “xterm-color” issue

Every time I connected to a Solaris machine from my Mac using ssh I ran into the dreaded “WARNING: terminal is not fully functional” problem. The reason is that the Mac sets its terminal type to “xterm-color” which isn’t known to Solaris. After fiddling with the termcap file with no success, I found the solution buried in the various tips on Phil’s site.
Just copy the xterm-color file provided by Phil (local copy) to the /usr/share/lib/terminfo/x/ directory. Done. Maybe you have to logout and login again to make it work, but that’s it.

Tuning the Sun: Fiddling with the TCP/IP stack

Well, it’s over one and a half years that I first posted some hints about tuning the performance of a Sun web server. Now it seems that I found what looks like the optimum settings for the machines I’m currently watching over:

tcp_conn_req_max_q               1024
tcp_conn_req_max_q0              10240
tcp_rexmit_interval_min          2000
tcp_ip_abort_interval            600000
tcp_ip_abort_cinterval           60000
tcp_keepalive_interval           3600000
tcp_time_wait_interval           30000
tcp_fin_wait_2_flush_interval    67500
tcp_smallest_anon_port           8192 

That’s mostly consistent with what Jens S. Vöckler writes on his site, just a bit more condensed.