Install or not install newest GCC version on Solaris 10.
Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Distribution: Redhat Server Administrators and Solaris 10 Newbie
Posts: 51
Rep:
Install or not install the newest GCC version on Solaris 10.
Dear Solaris experts,
As Solaris 10 came with GCC 3.x, is it recommended to get the newest version of GCC ( now is version 4.1.0 ) and install it ?
Is there any specific reason to install the newest GCC compiler ?
Previously, I always have a linking problem when I use the GCC version 4.1.0. The linker I use is GNU linker ( installed in /usr/local/bin/ld ) instead of the original ld ( in /usr/ccs/bin/ld ).
Distribution: Redhat Server Administrators and Solaris 10 Newbie
Posts: 51
Original Poster
Rep:
dear mackdav,
The reason behind the upgrade is : I am learning to install secure mail server ( Postfix, VM-Pop3d, Courier IMAP, MailScanner & Amavis ) plus other Open Source applications ( MySQL, PostgreSQL, Samba, Apache HTTP, PHP & Tomcat ). Since I am new for Solaris, I install the application by compiling directly from the source.
On my way to install, some of the applications wont compile. I cant remember which application have what problem. Solaris 10 ( January 2006 Update ) came with GCC 3.x, non GNU ld linker and non GNU as assembler. I tried to build the latest GCC compiler ( 4.1.0 ) and Binutils using the default tools. But then some of the application also having compile & linking problem, even using the new GCC 4.1.0. That's why I came to this forum to ask : should I use the new compiler or stick with the default GCC & tools ?
As I compile the same GPL applications on RedHat Fedora 3 & 5. All of them compiled and installed successfully.
should I use the new compiler or stick with the default GCC & tools ?
Unless the documentation of the application you are trying to build says it needs GNU tools to build it, it is Okay to use any compiler/linker/assembler/.. as long as they do their job properly.
Since you are trying to build on Sun's Solaris, it is better to use Sun's compilers (which are freely downloadable anyway - you are not losing anything by installing Sun Studio 11 and giving it a shot).
Quote:
As I compile the same GPL applications on RedHat Fedora 3 & 5. All of them compiled and installed successfully.
Linux is the primary target platform for majority of GPL'd applications -- that's why they compile smoothly on Linux.
If you refuse to use pre-built binaries (from sources like blastwave.org, sunfreeware.com) on Solaris, you'd better be ready to play with make files and the source code to make it work on Solaris. Please do not expect everything to work as they are.
It will be helpful to post the issues and the corresponding fixes, somewhere on web so others do not have to go through the redundant exercise of fixing known issues.
Distribution: Redhat Server Administrators and Solaris 10 Newbie
Posts: 51
Original Poster
Rep:
The Demanding Application is Courier Authlib.
Dear TechnoPark02,
The applications that makes me install GCC are Courier AuthLib & Couier IMAP. Courier Authlib require GCC, GNU ld & LibTool. By using the Solaris bundled GCC (3.4.3) and bundled ld ( non GNU ), Courier Authlib compile always returns error.
Thats why I have an idea to build GNU BinUtils ( GNU Linker inside ) and the newest GCC for compiling Courier Authlib.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.