It seems I was too naive about the situation, after playing around with opensolaris for a while, I figured it's more like a Linux distro to me...
At first, I tried install sunstudio in opensolaris, which until now, after I delete the VM, I still don't understand why I couldn't install it. Then I used the Netbean in OpenSolaris..... and hit the exact compilation error on my laptop.
After some searching, I figured that the header file in opensolaris 2008 is more like mine then Solaris' header file...
Like:
Under the include C header file, /netinet/in.h
This is on my fedora 10
Quote:
* Copyright (C) 1991-2001, 2003, 2004, 2006, 2007, 2008
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
.......
|
And this is on the SunOS server (Solaris 10) in my school...
Quote:
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved.
*......
|
and the one on opensolaris using is like mine more then the one in Solaris 10
After some struggling, I have some conclusion:
- OpenSolaris is not solaris , but a Linux distro
- As a Linux distro, OpenSolaris is almost as good as fedora9 to me...... you get what I mean....
So I deleted opensolaris and tried to use sunstudio on my fedora10, which a very funny thing happen..
The latest Sun studio only support netbean 5.5.1 ... and fedora10 only has netbean6+ , and netbean 5+ is not even supported by the neatbean.org any more (broken link for download)... I i just stayed with netbean6 and download the whole include folder from my school server, and use netbean and the SunOS include folder for compiling the codes....
Then, I finally could compile the codes, but I couldn't run it because the debugger and "ld" (which I don't know what it is) is still working with my system path's header files...
So eventually, I scp all my sources to the server after i use gedit on my desktop, and compile and run on the sunos in my school's server.... and I spent half of my time typing my password and copying the file...
Just some grumbling, but if anyone has a better idea, I am all ears and grateful...