I have a file lying around with instructions for getting around some OpenSolaris issues I’ve ran into lately, they may prove useful to others.
ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section .rela.annotate has invalid type [ SHT_RELA ]
ld is trying to do 64-bit linking on a non-64 bit system, do export LD_NOEXEC_64=1 and retry the compile.
readline warning turning off output flushing
This is a bug triggered by an upgrade from the 2009.06 stable to certain dev versions. Add clone:ptmx 0666 root sys to /etc/minor_perm
Broken keyboard layout, SHIFT+2 produces ” and SHIFT+’ produces @ (among other oddities)
This is most probably Acer Extensa 5620Z specific but pressing Fn+I fixes it. (Left size of Extensa keyboard: [CTRL][Fn][WIN][ALT])
More a tip than a workaround:
Update system
2009.06 has some very outdated packages and some important packages are not available in its /release repo. Complete upgrade:
pfexec pkg set-publisher -O http://pkg.opensolaris.org/dev opensolaris.org
pfexec pkg image-update
Will update if I run into any other issues or think of anything I’ve missed.
Update: 26/12/09:
The snapshot manager service has been placed offline due to a dependency problem
This message is displayed when trying open the Time Slider GUI interface. Look at the processes it lists, they will look something like:
maintenance svc:/system/filesystem/zfs/auto-snapshot:frequent
maintenance svc:/system/filesystem/zfs/auto-snapshot:daily
For each one run pfexec svcadm clear svc:/system/filesystem/zfs/auto-snapshot:TIMEPERIOD
So in my example, run:
pfexec svcadm clear svc:/system/filesystem/zfs/auto-snapshot:frequent
pfexec svcadm clear svc:/system/filesystem/zfs/auto-snapshot:daily
Start, restart, stop apache
Slipped my mind to mention this earlier, this is a bit unintuitive for Debian-people used to /etc/init.d/apache2
pfexec svcadm COMMAND http:apache22
Examples:
pfexec svcadm start http:apache22
pfexec svcadm restart http:apache22
pfexec svcadm stop http:apache22
Useless boot environment images
Another one that slipped my mind. pkg image-update creates new boot environments, assuming you don’t need the old images and want the diskspace back:
pfexec beadm destroy BENAME
Example:
pfexec beadm destroy opensolaris-1
View ZFS snapshots and their disk-usage
I tend to get paranoid as to how much space my ZFS auto-snapshots are using:
zfs list -t snapshot
Update: 11/01/10
Package ‘xrender’, required by ‘cairo’, not found
You get this if you when requesting details of GTK libs via pkg-config, eg. pkg-config --libs gtkmm-2.4. You need xorg-headers; pfexec pkg install SUNWxorg-headers. You will get this error trying to install Gtk2 for Perl.
Update: 07/02/10
Do you have a solution to an OpenSolaris problem you had? Feel free to leave a comment and I’ll edit it into this post.