Successfully Built Open Solaris
|
In my copious spare time, I've been working towards getting the recently released Open Solaris sources to build on my new Ferrari laptop (AMD64) under Solaris. |
I'd already installed Solaris (Nevada - build 16), so I had an appropriate version of Solaris ready to work with. Last week I installed the Solaris 10 compilers by copying a directory hierarchy over from another Solaris x86 machine I have here. I downloaded the open and closed Open Solaris bits and the extra ON Build Tools bits from genunix.org, followed the instructions in the Release Notes and set the "nightly" build going. (Note that I've previously added software to the Solaris Companion CD, so I was very familiar with the way the build system is setup). That was last Friday. I then went home and left the build going. Note the build only takes a couple hours on my machine.
When I came in today, I found that the build had failed in three places (audioconvert, rpcsvc and ypserv) with errors such as:
Undefined first referenced symbol in file _vector_con_ convert.o operator delete(void*) convert.o operator new(unsigned int) convert.o _pure_error_ ../utilities/libaudio.a(Audio.o) [Hint: try checking whether you are linking with the correct libC] _ex_rethrow_q convert.o
I then decided to download the exact Solaris 10 compilers that were recommended by the Open Solaris people, unpacked them, and started another build going. That's just finished successfully, so I obviously had an early build of the Solaris 10 compilers, and that the problem I found is no longer there in the final bits.
I was also able to test that a simple build of a single tool with the build tree worked nicely with:
% cd /export/home/richb/opensolaris/usr/src/tools/env
% bldenv ./richb_opensolaris.sh
[status information from bldenv]
% cd /export/home/richb/opensolaris/usr/src/cmd/vi
% touch */*.c */*.h
% dmake all
In total, it probably took me a man person day to get
everything built successfully. Not bad for such a large body of code.
So I'm now at the point where I can look at the bug database and see if I can generate any simple fixes for some of the bugs that are reported there.
I was disappointed to find that /bin/mp, the file pretty print program that I wrote in C about 18 years ago (based on the original version in Icon by Steve Holden), that's in Solaris 10, wasn't included in Open Solaris. I'm not sure what's going on there. I sure hope they decide to rectify that in the future. Having said that, the version of mp in Solaris 10 is about 12-13 years out of date, so perhaps it would be better to try to integrate the latest version that's available via SourceForge.
[Technorati Tag: Open Solaris]
( Jun 20 2005, 02:13:52 PM PDT ) [Listen] Permalink Comments [1]
Comments are closed for this entry.













Posted by Alan Coopersmith on June 23, 2005 at 09:26 PM PDT #