tech-pkg archive

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

Re: archivers/gtar-base issue on NetBSD 5



On Sun, 02 Mar 2014 03:35:35 +0900, John Klos <john%ziaspace.com@localhost> 
wrote:

NetBSD 5, current pkgsrc, two different architectures:

   CC       rawmemchr.o
   CC       readlinkat.o
In file included from readlinkat.c:44:
at-func.c:77:27: error: macro "readlink" requires 3 arguments, but only 1 given
In file included from readlinkat.c:44:
at-func.c: In function 'readlinkat':
at-func.c:77: warning: return makes integer from pointer without a cast
at-func.c:95:55: error: macro "readlink" requires 3 arguments, but only 1 given
at-func.c:95: warning: initialization makes integer from pointer without a cast
at-func.c:132:24: error: macro "readlink" requires 3 arguments, but only 1 given
at-func.c:132: warning: assignment makes integer from pointer without a cast
*** Error code 1

My local patch:

--- gnu/at-func.c.orig  2013-06-29 05:54:23.000000000 +0000
+++ gnu/at-func.c
@@ -43,7 +43,7 @@
       return FUNC_FAIL;                         \
     }
 #else
-# define CALL_FUNC(F) (AT_FUNC_F1 (F AT_FUNC_POST_FILE_ARGS))
+# define CALL_FUNC(F) (AT_FUNC_F1)(F AT_FUNC_POST_FILE_ARGS)
 # define VALIDATE_FLAG(F) /* empty */
 #endif


--
OBATA Akio / obata%lins.jp@localhost


Home | Main Index | Thread Index | Old Index