LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-14-2015, 12:20 AM   #1
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Rep: Reputation: Disabled
C/C++ Projects on Solaris.


Hi,

I am looking for a C/C++ projects on Solaris, I am testing a migration tool which migrates C projects on Solaris to Linux.
 
Old 04-14-2015, 12:48 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,597

Rep: Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937
So is there any question, problem, issue? Do you want to migrate c, c++ code, makefiles, or sunstudio projects? The migration also depends on the compilers you use (both on solaris and linux). Is this your own tool or is this available somewhere on the net? What is the goal of your tests?
 
Old 04-14-2015, 12:59 AM   #3
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
This is our own tool, test is to migrate the C code written in Solaris to Linux.

Any projects or Client-server program on Solaris(sucessfully compiled code) which needs a change if it has to run on Linux will help.

It will be good if we get a large code base.
 
Old 04-14-2015, 07:29 AM   #4
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
Hardly I can get any source-code with Solaris Platform on the net.
 
Old 04-14-2015, 07:29 AM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
The largest code base available for Solaris is likely the OpenSolaris source tree which contains millions of lines, you can download it here or here.
 
1 members found this post helpful.
Old 04-15-2015, 04:41 AM   #6
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
Thankyou

But I can see some system files missing (sys dir), most of the header files are missing, can you telll me where is the sys directory located

or

Probably u can give reference to a smaller Solaris(C code) base which is successfully compiled on Solaris.
 
Old 04-15-2015, 10:19 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
If you are talking about /usr/include/sys, it is a standard Solaris directory. You'll find it in any Solaris machine where SUNWhea or system/header package is installed.
 
Old 04-16-2015, 04:20 AM   #8
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
I dont have Solaris Machine and need a successfully compiled Solaris code which should not compile in Linux.

Will search for corresponding Linux calls and compile it sucessfully in Linux.


We are yet to get the Solaris machine (hope it will take time)


Now Can you tell me where will I find this Solaris system files on net ?
 
Old 04-16-2015, 04:41 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,597

Rep: Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937
http://www.oracle.com/technetwork/se...eSiteId=ocomen
You can download it and install it if you want even on an x86 box.
 
Old 04-16-2015, 06:49 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
Quote:
Originally Posted by jags1984 View Post
But I can see some system files missing (sys dir), most of the header files are missing, can you telll me where is the sys directory located
Can you give a precise example of an include file you are not able to locate in the OpenSolaris/illumos source tree?
 
Old 04-16-2015, 07:46 AM   #11
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
I am trying to compile /usr/src/common/tsol/stol.c

There are few dependents header files like

34 #include <sys/systm.h>
37 #include <sys/mman.h>
38 #include <sys/tsol/label_macro.h>
40 #include <sys/tsol/label.h>
 
Old 04-16-2015, 08:09 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
They are available here or here.
 
1 members found this post helpful.
Old 04-17-2015, 01:33 AM   #13
jags1984
Member
 
Registered: Mar 2013
Posts: 83

Original Poster
Rep: Reputation: Disabled
Thankyou, how do I download this files

I am doing copy paste of code, it will take loads of time.
 
Old 04-17-2015, 01:56 AM   #14
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,597

Rep: Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937Reputation: 3937
hg.java.net: there is a "raw" menu on the left side that will download the actual file.
 
Old 04-17-2015, 07:17 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,761

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
In the right of the https://github.com/illumos/illumos-gate page, there is a "Download zip" button with which you can retrieve a 153MB zip file containing 21900 C source files and 12.7 millions lines of code, roughly half of which is userland.
 
  


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
C/C++ Projects on Solaris jags1984 Linux - Newbie 2 04-13-2015 01:21 PM
Converting scripts from Solaris korn shell to run on both Solaris and RHEL paulfoel Programming 2 07-19-2013 08:49 AM
Linux equivalent to Solaris Projects? jimieee Linux - Server 1 02-27-2012 03:56 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration