Subject: pkg/25910: net/rsync build failure on Interix
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: pkgsrc-bugs
Date: 06/13/2004 02:38:52
>Number: 25910
>Category: pkg
>Synopsis: net/rsync build failure on Interix
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 12 17:39:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Hiramatsu Yoshifumi
>Release: SFU 3.5
>Organization:
>Environment:
System: Interix nile 3.5 SP-8.0.1969.1 x86 AMD Athlon/Duron
Architecture: i386
Machine: i386
>Description:
net/rsync doesn't build on Interix due to lack of makedev.
gcc -O -DHAVE_CONFIG_H -Wall -W -I./popt -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o rsync rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o batch.o clientname.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/permstring.o lib/pool_alloc.o lib/inet_ntop.o lib/inet_pton.o lib/getaddrinfo.o lib/getnameinfo.o zlib/deflate.o zlib/infblock.o zlib/infcodes.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o zlib/zutil.o zlib/adler32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o
flist.o(.text+0x503):flist.c: undefined reference to `_makedev'
flist.o(.text+0x5e8):flist.c: undefined reference to `_makedev'
flist.o(.text+0xba2):flist.c: undefined reference to `_makedev'
flist.o(.text+0xefb):flist.c: undefined reference to `_makedev'
collect2: ld returned 1 exit status
*** Error code 1
>How-To-Repeat:
cd /usr/pkgsrc/net/rsync
bmake
>Fix:
Interix has mkdev instead of makedev.
diff -buNr rsync.orig/distinfo rsync/distinfo
--- rsync.orig/distinfo Sun Jun 13 01:04:15 2004
+++ rsync/distinfo Sun Jun 13 01:44:55 2004
@@ -4,3 +4,4 @@
Size (rsync-2.6.2.tar.gz) = 515402 bytes
SHA1 (patch-aa) = ebf163297b20362cf1f9f6629490398a8a9a265b
SHA1 (patch-ab) = bfd70127ce8946879c73b673dc983755abab83ad
+SHA1 (patch-ac) = 9dfc7e7c42cc8a767664ba29747e8031cb2d05d8
diff -buNr rsync.orig/patches/patch-ac rsync/patches/patch-ac
--- rsync.orig/patches/patch-ac Thu Jan 1 09:00:00 1970
+++ rsync/patches/patch-ac Sun Jun 13 01:44:55 2004
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- flist.c.orig Sun Jun 13 01:13:38 2004
++++ flist.c Sun Jun 13 01:16:50 2004
+@@ -29,6 +29,10 @@
+
+ extern struct stats stats;
+
++#ifdef __INTERIX
++#define makedev mkdev
++#endif
++
+ extern int verbose;
+ extern int do_progress;
+ extern int am_root;
>Release-Note:
>Audit-Trail:
>Unformatted: