Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2002 06:31:51 -0500 (EST)
From:      Trevor Johnson <trevor@jpj.net>
To:        Alexandr Listopad <laa+p@zgia.zp.ua>
Cc:        ports@FreeBSD.ORG
Subject:   Re: For MAINTAINER of net/rsync
Message-ID:  <20020403063014.B799-100000@blues.jpj.net>
In-Reply-To: <20020402115622.GQ98309@zgia.zp.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
> I cvsup last ports tree and try to make rsync port
> (ports/net/rsync/Makefile,v 1.64 2002/03/15).
> make seems good, but I have too much warnings like this:
>
> /usr/include/malloc.h:2: warning: #warning "this file includes
> <malloc.h> which is deprecated, use <stdlib.h> instead"
> cc -I. -I. -O -pipe  -DHAVE_CONFIG_H -Wall -W -I./popt -c zlib/trees.c
> -o zlib/trees.o
> In file included from zlib/../rsync.h:118,
>                  from zlib/zutil.h:16,
>                  from zlib/deflate.h:16,
>                  from zlib/trees.c:36:
> /usr/include/malloc.h:2: warning: #warning "this file includes
> <malloc.h> which is deprecated, use <stdlib.h> instead"
> In file included from zlib/../rsync.h:188,
>                  from zlib/zutil.h:16,
>                  from zlib/deflate.h:16,
>                  from zlib/trees.c:36:
>
> I install rsync, but it always core dumps with sig 11. :-(
> Please help me.

This won't stop the core dumps, only the warnings.
-- 
Trevor Johnson

Date: Mon, 25 Feb 2002 04:57:24 -0500 (EST)
From: Trevor Johnson <trevor@jpj.net>
To: obrien@freebsd.org
Subject: patch for rsync port

This should look familiar:

/* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $
*/
#if __STDC__
#error "<malloc.h> has been replaced by <stdlib.h>"
#else
#include <stdlib.h>
#endif

The rsync sources still use the old header.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/net/rsync/Makefile,v
retrieving revision 1.63
diff -u -r1.63 Makefile
--- Makefile	21 Feb 2002 18:40:21 -0000	1.63
+++ Makefile	25 Feb 2002 09:42:13 -0000
@@ -40,6 +40,8 @@
 MAN5=		rsyncd.conf.5

 pre-configure:
+	${FIND} ${WRKSRC} -type f -exec ${PERL} -pi -e \
+		"s:<malloc.h>:<stdlib.h>:g" {} \;
 	@${PERL} -pi.orig -e 's:/etc/:${PREFIX}/etc/:g'  \
 		${WRKSRC}/rsync.h ${WRKSRC}/rsync.1 ${WRKSRC}/rsyncd.conf.5
 .if defined(WITH_SSH)
-- 
Trevor Johnson


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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