From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4671,b1738035b01d4980 X-Google-Attributes: gidf4671,public X-Google-Thread: 1164f8,b1738035b01d4980 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1070f0,b1738035b01d4980 X-Google-Attributes: gid1070f0,public X-Google-Thread: 11035d,b1738035b01d4980 X-Google-Attributes: gid11035d,public From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer) Subject: Re: DEC doesn't want Solaris (was Re: Why not Solaris on Alpha?) Date: 1997/06/29 Message-ID: #1/1 X-Deja-AN: 253432425 Distribution: inet References: <5oqmr4$118$1@news.cs.tu-berlin.de> <5p4qtn$kqu@neptune.myri.com> Supersedes: Organization: Sun Microsystems, Netherlands Newsgroups: comp.unix.solaris,comp.sys.sun.admin,comp.sys.sun.hardware,comp.sys.dec wen-king@myri.com (Wen-King Su) writes: >I have actually seen this happen several times. I would take a CDROM >from a very reputable tool vendor, extract SunOS and HP binaries from >them and install them, and operations that would cause a segmentation >fault on one system would work perfectly normally on another. It's the hardest part in porting software. When porting code from SunOS 4.x to Solaris 2.1, once upon a long ago, the SunOS 4.x->Solaris 2.x code changes were easy, once you got into it. By far the most time I spend on debugging executables that after porting plain didn't work (dumped core; funny graphics output). The majority of those problems turned out to be off-by-one malloc() errors or uninitialized variables. While lint would turn up a lot of suspicious code, malloc errors require runtime tools. (Another big one was passing NULL pointers to *printf(); SunOS 4.x would print "(null)" and Solaris prints "Segmentation fault - core dumped". Or the fact that Solaris wanted all the fields in sockaddr_in to be correct, SunOS 4.x couldn't care less about sin_zero or sin_family). The valuable lesson I learned was that allowing people to get away with stuff will only hurt you in the end. DWIM is nice for user interfaces, but bad for APIs. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.