pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/50440: sysutils/bsdinstall doesn't build on Darwin
>Number: 50440
>Category: pkg
>Synopsis: sysutils/bsdinstall doesn't build on Darwin
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Nov 17 10:00:00 +0000 2015
>Originator: Aleksej Lebedev
>Release: HEAD
>Organization:
Tomtom
>Environment:
Darwin zhtw-mac.ttg.global 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64
>Description:
# pwd
/usr/pkgsrc/sysutils/bsdinstall
# bmake package install clean
...
===> Building for bsdinstall-20130905
clang -O2 -Werror -D_PATH_DEVNULL=\"/dev/null\" -DTARGET_STRIP=\"/usr/bin/strip\" -DHAVE_NBCOMPAT_H=1 -I/var/tmp/pkgsrc-obj/sysutils/bsdinstall/work/libnbcompat -c bsdinstall.c
bsdinstall.c:351:7: error: implicit declaration of function 'gid_from_group' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if (gid_from_group(group, &gid) == -1) {
^
bsdinstall.c:360:7: error: implicit declaration of function 'uid_from_user' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if (uid_from_user(owner, &uid) == -1) {
^
2 errors generated.
*** Error code 1
>How-To-Repeat:
Try to build bsdinstall on Darwin.
>Fix:
cvs diff: Diffing .
cvs diff: Diffing files
Index: files/bsdinstall.c
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/bsdinstall/files/bsdinstall.c,v
retrieving revision 1.2
diff -u -r1.2 bsdinstall.c
--- files/bsdinstall.c 3 Sep 2013 15:27:38 -0000 1.2
+++ files/bsdinstall.c 17 Nov 2015 09:53:25 -0000
@@ -71,14 +71,22 @@
#endif
#include <errno.h>
#include <fcntl.h>
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/grp.h>
+#else
#include <grp.h>
+#endif
#include <libgen.h>
#if defined(HAVE_NBCOMPAT_H)
#include <nbcompat/paths.h>
#else
#include <paths.h>
#endif
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat/pwd.h>
+#else
#include <pwd.h>
+#endif
#include <stdio.h>
#if defined(HAVE_NBCOMPAT_H)
#include <nbcompat/stdlib.h>
Home |
Main Index |
Thread Index |
Old Index