Debian Bug report logs - #260732
nntp: FTBFS with gcc-3.4: conflicting types for 'malloc'

Package: nntp; Maintainer for nntp is (unknown);

Reported by: Andreas Jochens <aj@andaco.de>

Date: Wed, 21 Jul 2004 21:48:02 UTC

Severity: serious

Tags: patch

Done: Blars Blarson <blarson@blars.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Blars Blarson <blarson@blars.org>:
Bug#260732; Package nntp. Full text and rfc822 format available.

Acknowledgement sent to Andreas Jochens <aj@andaco.de>:
New Bug report received and forwarded. Copy sent to Blars Blarson <blarson@blars.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Andreas Jochens <aj@andaco.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: nntp: FTBFS with gcc-3.4: conflicting types for 'malloc'
Date: Wed, 21 Jul 2004 23:32:32 +0200
Package: nntp
Severity: normal
Tags: patch

When building 'nntp' with gcc-3.4 I get the following error:

cc -O2 -s -I../libdbz   -c -o active.o active.c
active.c: In function `read_groups':
active.c:37: error: conflicting types for 'malloc'
make[2]: *** [active.o] Error 1
make[2]: Leaving directory `/nntp-1.5.12.1/server'
make[1]: *** [make_server] Error 2
make[1]: Leaving directory `/nntp-1.5.12.1'
make: *** [build] Error 2

With the attached patch 'nntp' can be compiled using gcc-3.4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/nntp-1.5.12.1/server/active.c ./server/active.c
--- ../tmp-orig/nntp-1.5.12.1/server/active.c	1994-11-01 06:40:09.000000000 +0100
+++ ./server/active.c	2004-07-21 23:25:20.054348449 +0200
@@ -34,7 +34,6 @@
 	register int	i;
 	register int	act_fd;
 	register char	*cp, *end;
-	char		*malloc();
 	struct stat	statbuf;
 
 	/*
diff -urN ../tmp-orig/nntp-1.5.12.1/server/batch.c ./server/batch.c
--- ../tmp-orig/nntp-1.5.12.1/server/batch.c	1994-12-09 03:52:44.000000000 +0100
+++ ./server/batch.c	2004-07-21 23:26:01.580320962 +0200
@@ -31,7 +31,7 @@
 
 /* imports */
 extern time_t time();
-extern char *malloc(), *mktemp(), *index(), *rindex();
+extern char *mktemp(), *index(), *rindex();
 /* forwards */
 static char *strsave();
 #ifdef XFER_TIMEOUT
diff -urN ../tmp-orig/nntp-1.5.12.1/server/group.c ./server/group.c
--- ../tmp-orig/nntp-1.5.12.1/server/group.c	1994-12-03 22:54:51.000000000 +0100
+++ ./server/group.c	2004-07-21 23:25:31.870064335 +0200
@@ -11,8 +11,6 @@
 extern void close_xfiles();
 #endif
 
-extern char *malloc();
-
 /*
  * GROUP newsgroup
  *
diff -urN ../tmp-orig/nntp-1.5.12.1/server/scandir.c ./server/scandir.c
--- ../tmp-orig/nntp-1.5.12.1/server/scandir.c	1994-11-05 07:04:53.000000000 +0100
+++ ./server/scandir.c	2004-07-21 23:25:45.929346503 +0200
@@ -21,7 +21,6 @@
  */
 
 extern	int	intcmp();
-extern char *malloc(), *realloc();
 
 int
 scan_dir(low_msg, high_msg)
diff -urN ../tmp-orig/nntp-1.5.12.1/server/xover.c ./server/xover.c
--- ../tmp-orig/nntp-1.5.12.1/server/xover.c	1994-11-01 07:09:24.000000000 +0100
+++ ./server/xover.c	2004-07-21 23:26:27.834245698 +0200
@@ -213,7 +213,6 @@
 		} while (c != EOF && c != '\n' && c != '\t');
 		printf("\r\n");
 	} else {
-		char		*malloc(), *realloc();
 		register int	size = 1024;
 		buf = malloc(size);
 		if (buf) {
@@ -248,7 +247,6 @@
 	register char	*cp, *cp2;
 	register int	hdr;
 	char		*array[OVER_FIELD_COUNT];
-	char		*malloc(), *realloc();
 
 	(void) sprintf(line, "%d", artnum);
 	fp = fopen(line, "r");
@@ -359,7 +357,6 @@
 	register FILE	*fp;
 	register char	*cp, *cp2;
 	char		*references = NULL;
-	char		*malloc(), *realloc();
 
 #ifdef XOVER
 	if (over_is_cheap(artnum, artnum)) {



Severity set to `serious'. Request was from Aurelien Jarno <aurelien@aurel32.net> to control@bugs.debian.org. Full text and rfc822 format available.

Message #8 received at 260732-done@bugs.debian.org (full text, mbox):

From: Blars Blarson <blarson@blars.org>
To: 260732-done@bugs.debian.org
Subject: fixed in nntp 1.5.12.1-18
Date: Fri, 30 Sep 2005 01:30:33 -0700
Somehow the close message was lost from the bug log.

-- 
Blars Blarson			blarson@blars.org
				http://www.blars.org/blars.html
With Microsoft, failure is not an option.  It is a standard feature.



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 17 Jun 2007 23:26:48 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Apr 25 08:05:49 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.