First uname and compiler versions: %uname -aR IRIX64 banshee 6.5 6.5.11m 01101246 IP25 %cc -version MIPSpro Compilers: Version 7.3.1.2m I have just recieved 7.3.1.3m from SGI, but cannot update compilers until I've had a chance to announce to all developers that the change is coming, and when. %cat /etc/compiler.defaults -DEFAULT:abi=n32:isa=mips3:proc=r4k The above to build the binaries 32bit, as I have Indigo R4000 and Indy R4xxx machines I have to support as well. %gcc -v Reading specs from /usr/local/gcc-2.95.1/lib/gcc-lib/mips-sgi-irix6.5/2.95.1/specs gcc version 2.95.1 19990816 (release) And now for the make output: First with MIPSpro: %gmake (cd openbsd-compat && gmake) gmake[1]: Entering directory `/home/jamie/compile/6.5/openssh-3.1p1/openbsd-compat' cc -L/usr/local/lib -I/usr/local/include -I. -I.. -I. -I./.. -I/usr/local/openssl/include -L/usr/local/lib -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -c getcwd.c cc-1101 cc: WARNING File = /usr/include/sys/dir.h, Line = 100 "DIR" has already been declared in the current scope. } DIR; ^ cc-1515 cc: WARNING File = getcwd.c, Line = 162 A value of type "struct direct *" cannot be assigned to an entity of type "struct dirent *". if (!(dp = readdir(dir))) ^ cc-1565 cc: ERROR File = getcwd.c, Line = 164 The struct "dirent" has no field "d_fileno". if (dp->d_fileno == ino) ^ cc-1515 cc: WARNING File = getcwd.c, Line = 169 A value of type "struct direct *" cannot be assigned to an entity of type "struct dirent *". if (!(dp = readdir(dir))) ^ cc-1565 cc: ERROR File = getcwd.c, Line = 173 The struct "dirent" has no field "d_namlen". memmove(bup, dp->d_name, dp->d_namlen + 1); ^ cc-1565 cc: ERROR File = getcwd.c, Line = 190 The struct "dirent" has no field "d_namlen". if (bpt - pt < dp->d_namlen + (first ? 1 : 2)) { ^ cc-1565 cc: ERROR File = getcwd.c, Line = 210 The struct "dirent" has no field "d_namlen". bpt -= dp->d_namlen; ^ cc-1565 cc: ERROR File = getcwd.c, Line = 211 The struct "dirent" has no field "d_namlen". memmove(bpt, dp->d_name, dp->d_namlen); ^ 5 errors detected in the compilation of "getcwd.c". gmake[1]: *** [getcwd.o] Error 2 gmake[1]: Leaving directory `/home/jamie/compile/6.5/openssh-3.1p1/openbsd-compat' gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2 I did a 'gmake distclean' and reran configure allowing autoconfig to find gcc between these two build attempts. 3.0.2p1 and 3.1p1 fail in the same place with the same error with both compilers. And now for GCC: %gmake (cd openbsd-compat && gmake) gmake[1]: Entering directory `/home/jamie/compile/6.5/openssh-3.1p1/openbsd-compat' gcc -L/usr/local/lib -I/usr/local/include -Wall -Wpointer-arith -Wno-uninitialized -I. -I.. -I. -I./.. -I/usr/local/openssl/include -L/usr/local/lib -I/usr/local/include -I/usr/local/include -DHAVE_CONFIG_H -c getcwd.c In file included from getcwd.c:39: /usr/include/sys/dir.h:100: conflicting types for `DIR' /usr/include/dirent.h:56: previous declaration of `DIR' getcwd.c: In function `getcwd': getcwd.c:162: warning: assignment from incompatible pointer type getcwd.c:164: structure has no member named `d_fileno' getcwd.c:169: warning: assignment from incompatible pointer type getcwd.c:173: structure has no member named `d_namlen' getcwd.c:190: structure has no member named `d_namlen' getcwd.c:210: structure has no member named `d_namlen' getcwd.c:211: structure has no member named `d_namlen' gmake[1]: *** [getcwd.o] Error 1 gmake[1]: Leaving directory `/home/jamie/compile/6.5/openssh-3.1p1/openbsd-compat' gmake: *** [openbsd-compat/libopenbsd-compat.a] Error 2 Any help or pointers are appreciated.
Does IRIX not have it's own getcwd()?
Stated Resolved in 3.3
3.3p1 builds fine for me on IRIX 6.5.16m and the 7.3.1.3m C compiler.
Mass change of RESOLVED bugs to CLOSED