>>
>> Is it possible to run Solaris applications on Linux ?
>>
>> I think it is possible if the application was first built
>> on Solaris and moved to Linux it may work ?
By "moved to Linux" I assume you mean "ported to Linux", meaning
compiling the source code on a Linux platform. I recently developed a
client/server application using Linux then ported it to:
a) SunOS 4.1.x - took about 10 minutes
b) Solaris 5.5.1 - took about 60 minutes
Note I used gcc/g++ on all machines. Obviously, YMMV depending on
everything that must be ported. In particular, I have done little
porting of X apps, but simple applications like hexcalc & xascii port
directly.
The anomalies I encountered in my client/server application:
1) 1 header file:
#ifdef LINUX
#include "asm/page.h"
#endif /* LINUX */
2) signal() in Linux & Solaris required resetting the child process
termination signal handler after each termination; SunOS did not
require it.
3) setsockopt() differed slightly:
setsockopt( listen_socket,
SOL_SOCKET,
SO_REUSEADDR,
#ifdef LINUX
(void*) &sockoptval,
#endif /* LINUX */
#ifdef SUN4OS5
(const char*) &sockoptval,
#endif /* SUN4OS5 */
sockoptlen ) ;
4) Link flags & libs differences:
LINUX_LFLAGS =
SUN4OS4_LFLAGS = -fno-gnu-linker
SUN4OS5_LFLAGS = -fno-gnu-linker
LINUX_LIBS =
SUN4OS4_LIBS =
SUN4OS5_LIBS = -lnsl -lsocket
Hope this helps...Bob
--
<> Robert Geer & Donna Tomky / * <>
<> Salt Lake City, Utah | -\<, * <\ </L <>
<> U S A | O/ O __ /__, /> <>