September 26th, 2003, 10:42 AM
September 26th, 2003, 12:45 PM
Have you ever heard the word updating? SunOS 4.1 is very OLD.
September 26th, 2003, 01:03 PM
well you touched a part of the problem compu.nerd22..
I think it's the GCC..
I've seen simmilar trouble with too old (and too new) versions of GCC while trying to compile some software..
what version of GCC are you using ( try: gcc --version )
try to update (atleast) gcc..
ASCII stupid question, get a stupid ANSI.
When in Russia, pet a PETSCII.
Get your ass over to SLAYRadio
the best station for C64 Remixes !
September 26th, 2003, 01:34 PM
September 26th, 2003, 02:24 PM
It looks to me like you are trying to compile a program using sockets in SuNOS. Don't forget to include the libraries necessary:
gcc -lnsl -lsocket -lresolv <blah options> program
This should fix most of the problems you could experience compiling programs that use sockets in SunOS; however, not necessarily all of them. Especially if the program was written for another TCP/IP stack like for Linux or FreeBSD. In that case you are going to have to do some code modification to change up the includes/paths (precompiler options). If that is the case, try looking at code for a network program that compiles in both Solaris and whatever platform your code is written in. Usually by putting the precompiler options/flags/includes for the dual platform one in your code is sufficient (if you are too lazy like I am to actually go out and look )
There is only one constant, one universal, it is the only real truth: causality. Action. Reaction. Cause and effect...There is no escape from it, we are forever slaves to it. Our only hope, our only peace is to understand it, to understand the 'why'. 'Why' is what separates us from them, you from me. 'Why' is the only real social power, without it you are powerless.
(Merovingian - Matrix Reloaded)