pkgsrc-Bugs archive

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

pkg/25726: Compilation error on redeclaration of malloc() in textproc/detex using gcc 3.4.0



>Number:         25726
>Category:       pkg
>Synopsis:       Compilation error on redeclaration of malloc() in 
>textproc/detex using gcc 3.4.0
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 27 14:42:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     John R. Shannon
>Release:        NetBSD 2.0_BETA
>Organization:
        netbsd.org
>Environment:
        
        
System: NetBSD colleen.internal.johnrshannon.com 2.0_BETA NetBSD 2.0_BETA 
(KERNEL) #0: Mon May 24 05:31:10 MDT 2004 
root%colleen.internal.johnrshannon.com@localhost:/usr/obj/usr/src/sys/arch/i386/compile/KERNEL
 i386
Architecture: i386
Machine: i386
>Description:
        
>How-To-Repeat:
        
>Fix:
        It's sufficient to set the CFLAG -DNO_MALLOC_DECL.

# cvs -q -z 4 diff
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/detex/distinfo,v
retrieving revision 1.3
diff -r1.3 distinfo
5c5
< SHA1 (patch-aa) = cb83efacc8af3c33130db37c6418887d2fd314d4
---
> SHA1 (patch-aa) = e989dcf793a370e2a6da88276b5d0ff1f2792532
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/detex/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 patch-aa
1c1
< $NetBSD: patch-aa,v 1.1.1.1 2000/10/18 09:55:53 itojun Exp $
---
> $NetBSD$
3,5c3,26
< --- Makefile- Wed Oct 18 18:51:39 2000
< +++ Makefile  Wed Oct 18 18:51:54 2000
< @@ -39,3 +39,3 @@
---
> --- Makefile.orig     1999-05-12 11:45:55.000000000 -0600
> +++ Makefile
> @@ -22,22 +22,22 @@ DEFS      =
>  # Add -traditional for GNU cc on ISC 386/ix system and possibly others
>  # (reported by pinard%iro.umontreal.ca@localhost)
>  #
> -#DEFS        += ${DEFS} -traditional
> +#DEFS        += -traditional
>  #
>  # Add -DHAVE_STRING_H for the SysV string manipulation routines
>  #
> -#DEFS        += ${DEFS} -DHAVE_STRING_H
> +#DEFS        += -DHAVE_STRING_H
>  #
>  # Add -DMAXPATHLEN=<length> if it is not defined in /usr/include/sys/param.h
>  #
> -#DEFS        += ${DEFS} -DMAXPATHLEN=1024
> +#DEFS        += -DMAXPATHLEN=1024
>  #
>  # Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
>  # in detex.l (reported by pinard%iro.umontreal.ca@localhost)
>  #
> -#DEFS        += ${DEFS} -DNO_MALLOC_DECL
> +DEFS += -DNO_MALLOC_DECL
8c29
< +#CFLAGS      = -O ${DEFS}
---
> +CFLAGS       += ${DEFS}
9a31,32
>  # Use your favorite lexical scanner
>  #
# history

>Release-Note:
>Audit-Trail:
>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index