File: COMPILE-PROBLEMS

package info (click to toggle)
ircii-pana 75-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 4,448 kB
  • ctags: 7,556
  • sloc: ansic: 82,667; makefile: 989; tcl: 153; sh: 124
file content (46 lines) | stat: -rw-r--r-- 1,270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
In order to compile under IRIX and a couple of changes need to be made to
server.c in order for it to compile.

#define _HAVE_SIN_LEN 1
#define _HAVE_SA_LEN 1
#define MAXDNAME 100

Add these three #defines before any of the #include's in server.c

In connect_to_server_by_refnum()
Add the following lines

        #ifdef sa_len
                #undef sa_len
        #endif
        int sa_len = sizeof( strqct sockaddr_in );

so that the beginning of the function looks like this...

        char *sname;
        int sport;
        int conn;
        struct sockaddr_in sa;
        #ifdef sa_len
                #undef sa_len
        #endif
        int sa_len = sizeof( struct sockaddr_in );

        if (refnum == -1)


Also a small modification to env.c might be required if you get an error
on/aboup line 87 of this file, edit env.c and remove the word "const" from
line 86 so that we have the following.

int putenv(char *str)

instead of   int putenv(const char *str)

This fix also applies to AIX version 2 and possibly others.

Under UNIX SV we need the above patched as well as a change in include/irc.h
which needs to have #include <arpa/inet.h> removed from the file. This
causes a couple of new warnings in dcc.c to appear, but everything works as
advertised.