[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Heimdal on ULTRIX



Hello,

Several days ago, I started compiling Heimdal 0.1l on my MIP Ultrix 4.4
workstation (no - it is not very fast). So far, I have routinely
encountered two problems (ie Ultrix brokenness) with include files -

1. <sys/socket.h> and <netdb.h> cannot be included multiple times
without generating errors. However, these include files are included
multiple times, in roken.h + other file. As all system dependant include
files are included in roken.h, and as roken.h seems to be included almost
everywhere, I think the duplicates can be removed. (other include
files are also duplicated, these two are the only ones that cause
problems).

2. <syslog.h> only includes some definitions. <sys/syslog.h> is required
for other definitions. Actually, the two files overlap and produce
a lot of warnings, but at least these aren't errors.





Other problems:
[554] [dec16:bmay] ~/heimdal/build/appl/rsh >./rsh snoopy.apana.org.au -x -lbam date
socket: Permission denied
socket: Permission denied
rsh: kshell/tcp unknown service, using default port 544
Thu Aug  5 12:21:16 EST 1999

!!!!!! What is going on here ???? The best I have found (quick glance) is
        s = socket (AF_INET, SOCK_STREAM, 0);
        if (s < 0)
            err (1, "socket");
[...]
            errsock = socket (AF_INET, SOCK_STREAM, 0);
            if (errsock < 0)
                err (1, "socket");

In which case, nothing should work???? Also, my shutdown fix doesn't
appear to work on this platform (connections that use STDIN do not shutdown).
Don't ask me why...





Also: linking kadmin fails because strptime is undefined.




What does work: kinit, klist, telnet. I think I had better stop after this
next one and get `real' work done ;-). Probably due to roken.h
being included *after* common.h




[382] [dec16:bmay] ~/heimdal/build/appl/ftp >gmake
cd ../../.. && /tmp_mnt/u/postg1/bmay/heimdal/missing automake --foreign appl/ftp/Makefile
Making all in common
gmake[1]: Entering directory `/tmp_mnt/u/postg1/bmay/heimdal/build/appl/ftp/common'
cd ../../../.. && /tmp_mnt/u/postg1/bmay/heimdal/missing automake --foreign appl/ftp/common/Makefile
gcc  -DHAVE_CONFIG_H -I. -I../../../../appl/ftp/common -I../../../include -I../../../include     -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -g -O2 -c ../../../../appl/ftp/common/socket.c
In file included from ../../../../appl/ftp/common/socket.c:39:
../../../../appl/ftp/common/common.h:63: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/common.h:63: warning: its scope is only this definition or declaration,
../../../../appl/ftp/common/common.h:63: warning: which is probably not what you want.
../../../../appl/ftp/common/common.h:66: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/common.h:70: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/common.h:73: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/common.h:76: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/common.h:79: warning: `struct sockaddr' declared inside parameter list
../../../../appl/ftp/common/socket.c:67: conflicting types for `socket_set_address_and_port'
../../../../appl/ftp/common/common.h:63: previous declaration of `socket_set_address_and_port'
../../../../appl/ftp/common/socket.c:97: conflicting types for `socket_addr_size'
../../../../appl/ftp/common/common.h:66: previous declaration of `socket_addr_size'
../../../../appl/ftp/common/socket.c:113: conflicting types for `socket_sockaddr_size'
../../../../appl/ftp/common/common.h:70: previous declaration of `socket_sockaddr_size'
../../../../appl/ftp/common/socket.c:129: conflicting types for `socket_get_address'
../../../../appl/ftp/common/common.h:73: previous declaration of `socket_get_address'
../../../../appl/ftp/common/socket.c:149: conflicting types for `socket_get_port'
../../../../appl/ftp/common/common.h:76: previous declaration of `socket_get_port'
../../../../appl/ftp/common/socket.c:169: conflicting types for `socket_set_port'
../../../../appl/ftp/common/common.h:79: previous declaration of `socket_set_port'
../../../../appl/ftp/common/socket.c: In function `socket_set_debug':
../../../../appl/ftp/common/socket.c:195: warning: implicit declaration of function `setsockopt'
gmake[1]: *** [socket.o] Error 1
gmake[1]: Leaving directory `/tmp_mnt/u/postg1/bmay/heimdal/build/appl/ftp/common'
gmake: *** [all-recursive] Error 1

-- 
Brian May <bmay@csse.monash.edu.au>

PGP signature