Menu

#6 Solaris compiling problems

open
nobody
None
5
2000-11-15
2000-11-15
No

I found the following problems when compiling version Nov-15 with gcc 2.95.2 on Solaris 8:

Makefile (top level):17

Solaris' make does not accept -C option. GNU make is called gmake. I changed it to gmake and it goes on.

src/common/xtux.h:23

#if 1 /* FIXME: What do I check here? Posix/ISO numbers? */
typedef u_int8_t byte;
typedef int16_t netshort;
#else
typedef unsigned char byte;
typedef ushort netshort;
typedef int socklen_t;
#endif

I had to change this #if to 0 and I got an error because the definition of socklen_t is duplicated in the Solaris libraries. So I deleted the line and it compiles.

src/client/image.c:66

PATH_MAX is not defined anywhere

src/client/cl_net.c:71

INADDR_NONE is not defined anywhere

Makefiles in client and common could add a line for Solaris, with -lsocket and -lnsl in the right place...

Discussion


Log in to post a comment.

Monday.com Logo