On Dec 4, 2007 11:51 AM, aakash berde <[EMAIL PROTECTED]> wrote: > Hi All, > > I am new to this forum as well as to Solaris... :-) > Can I get some answers for my questions? > > can we use the GNU C library for solaris OS and if yes where I can get the > GNU C library package?
You must use Solaris' libc as far as I am aware. > as I installed the gcc3.4.6 and libgcc 3.4.6 on solaris but it doesn't > solved my problem. > > I am trying to port one code from linux to solaris. In linux gnu c library > is going to use but is solrais OS AT&T C library is going to use which > created many errors while compiling the source code. > > Basically I need the equivalent header files for mqueue.h signal.h, ioctl.h, > fcntl.h which can exactly replace the solaris header files from AT&T C > library. > Please tell me is it possible? > > In linux the above files are the GNU C library part whereas in solaris they > are under AT&T systems. > > Is there any golden way through which I can achieve the successful > compilation without doing major changes in source code?? Unfortunately, this is a case where you may have to create your own abstraction for platform differences. You will likely have major changes to your source code. However, I am somewhat surprised you are having these issues as, in my experience, as long as developers stick to the basic APIs that gnu libc provides, it is rare to have a portability issue. -- Shawn Walker, Software and Systems Analyst http://binarycrusader.blogspot.com/ "To err is human -- and to blame it on a computer is even more so." - Robert Orben _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
