LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 04-27-2006, 08:03 AM   #1
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Ubuntu LTS Servers, Redhat Server Administrators and Solaris 10 Newbie
Posts: 56

Rep: Reputation: 15
Unhappy 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 ).

note : I use Solaris 10 January 2006 version.

Thank you in advance.

...

Last edited by Zepiroth; 04-27-2006 at 08:11 AM.
 
Old 04-27-2006, 10:36 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,522

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
I have no particular recommendation about which compiler to use. I had no issue with the bundled gcc.

If you want more choice, you may also want to try the now free Sun Studio 11 compiler.
 
Old 04-27-2006, 10:54 PM   #3
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Ubuntu LTS Servers, Redhat Server Administrators and Solaris 10 Newbie
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you.

Thank you for the info.
I will try the recommended Sun Studio 11.
 
Old 05-03-2006, 11:47 AM   #4
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
My policy has always been to keep compiler versions constant unless there is some kind of need for the upgrade.
 
Old 05-12-2006, 05:39 AM   #5
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Ubuntu LTS Servers, Redhat Server Administrators and Solaris 10 Newbie
Posts: 56

Original Poster
Rep: Reputation: 15
Unhappy

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.

Last edited by Zepiroth; 05-12-2006 at 05:52 AM.
 
Old 05-12-2006, 09:13 PM   #6
technopark02
Member
 
Registered: Feb 2005
Distribution: Solaris 8 - 11, JDS Linux 3.0
Posts: 99

Rep: Reputation: 15
Quote:
Originally Posted by Zepiroth
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.
 
Old 05-26-2006, 03:42 AM   #7
Zepiroth
Member
 
Registered: May 2003
Location: Surabaya, Jawa Timur, Indonesia
Distribution: Ubuntu LTS Servers, Redhat Server Administrators and Solaris 10 Newbie
Posts: 56

Original Poster
Rep: Reputation: 15
Smile 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I install an old version of gcc thorney Linux - Newbie 1 11-25-2005 01:10 AM
unable to install latest gcc version sapadman Linux - Newbie 1 07-20-2004 06:22 PM
How to install old Gcc version ? vasilakis Linux - Newbie 5 06-10-2004 12:58 PM
Newer version of glibc means i cant install gcc coop Red Hat 0 09-21-2003 02:40 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 04:08 PM


All times are GMT -5. The time now is 09:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration