problem building under x86 Solaris 7

Love lha at stacken.kth.se
Tue Dec 21 11:55:45 CET 1999


Jon Bernard <jonbernard at iname.com> writes:

> I get the following error with make and GNU make while building
> arla-0.29.2:

This just keep comming up all the time, guess its time to fix it.

> I modified configure and xfs/solaris/Makefile.in, then did
> 
> mkdir xfs/solaris/include
> mv xfs/solaris/xfs xfs/solaris/include/

The problem when this is that we want to use #include <xfs/xfs_foo.h>
everywhere.

For now build outside the source tree, I'll makeup some solution for 0.30.

Love

PS you want to use the follow patch if you are creating large++
directories. Something like it anyway since I think 0.29.2 is diffrent.

Index: solaris-subr.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/solaris-subr.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -w -u -w -r1.19 -r1.20
--- arlad/solaris-subr.c	1999/10/22 10:38:52	1.19
+++ arlad/solaris-subr.c	1999/12/08 09:58:34	1.20
@@ -197,8 +197,13 @@
 	dp = (struct dirent64 *)p;
 
 	if (strcmp (filename, dp->d_name) == 0) {
-	    if (last_dp != NULL)
-		last_dp->d_reclen += dp->d_reclen;
+	    if (last_dp != NULL) {
+		struct dirent64 new_last;
+
+		new_last.d_reclen = last_dp->d_reclen + dp->d_reclen;
+		if (new_last.d_reclen >= last_dp->d_reclen)
+		    last_dp->d_reclen = new_last.d_reclen;
+	    }
 	    dp->d_ino = 0;
 	    fbuf_end (&fb);
 	    close (fd);





More information about the Arla-drinkers mailing list