ports/182040: misc/sls port has build errors

Stefan `Sec` Zehl sec at 42.org
Thu Sep 12 14:20:02 UTC 2013


>Number:         182040
>Category:       ports
>Synopsis:       misc/sls port has build errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 12 14:20:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 8.4-STABLE amd64
>Organization:
>Environment:
System: FreeBSD ice 8.4-STABLE FreeBSD 8.4-STABLE #23 r252204: Tue Jun 25 14:30:35 CEST 2013 root at ice:/usr/obj/usr/src/sys/ICE amd64


	
>Description:

pkg-fallout mailed an amd64 port build error for misc/sls

I fixed the obvious problems with a patch.

	
>How-To-Repeat:
	
>Fix:

Add the following file as "files/patch-ab" to the port

--- sls.c.orig	1989-08-20 02:54:57.000000000 +0200
+++ sls.c	2013-09-12 16:11:59.000000000 +0200
@@ -24,7 +24,10 @@
 #include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/dir.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <dirent.h>
+#include <errno.h>
 
 #define ISEXEC(m)	(m & (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)))
 #define MAXUIDS		200	/* max #of user names from passwd file */
@@ -86,10 +89,6 @@
 static int    sortsfile(), sortfile();
 static time_t getsixmosago();		/* for emulating 'ls' date silliness */
 
-extern char  *getenv(), *malloc(), *realloc();
-extern int    errno;
-extern time_t time();
-
 /******************************************************************************/
 
 main (ac, av)
@@ -271,7 +270,7 @@
     char           *dirname;
 {  /* read a directory and everything under it that's on the same device */
     register DIR   *dirp;		/* ptr to directory list */
-    register struct direct  *dentp;	/* ptr to directory entry */
+    register struct dirent  *dentp;	/* ptr to directory entry */
     register char  *pfname;
     register int    len;
     char            fname[512];		/* maximum pathname length */
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list