Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 16:17:40 +0200 (CEST)
From:      Stefan `Sec` Zehl <sec@42.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/182040: misc/sls port has build errors
Message-ID:  <20130912141740.4B0EE2841E@ice.42.org>
Resent-Message-ID: <201309121420.r8CEK23g088264@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130912141740.4B0EE2841E>