Bug 47667 - app-text/a2ps-4.13c fails to compile with gcc 3.4 (solved)
Bug#: 47667 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gcc-porting@gentoo.org Reported By: tamran.lengyel@gmail.com
Component: Applications
URL: 
Summary: app-text/a2ps-4.13c fails to compile with gcc 3.4 (solved)
Keywords:  
Status Whiteboard: 
Opened: 2004-04-12 23:14 0000
Description:   Opened: 2004-04-12 23:14 0000
a2ps fails to compile with gcc 3.4, giving the following error:


gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -DSYSCONFFILE=\"/etc/a2ps/a2ps.cfg\" -I. -I. -I.. -I.. -I../intl -I. -O3 -pipe -msse -msse2 -ftracer -march=k8 -c path-concat.c -MT path-concat.lo -MD -MP -MF .deps/path-concat.TPlo -o path-concat.o

path-concat.c:34: error: conflicting types for 'malloc'
path-concat.c:34: error: conflicting types for 'malloc'

I will attach the patch that fixes it in the next reply


Reproducible: Always
Steps to Reproduce:
1. Emerge a2ps
2. 
3.

Actual Results:  
See above


Portage 2.0.50-r5 (default-amd64-2004.0, gcc-3.4, glibc-2.3.3_pre20040207-r0, 2.6.5)
=================================================================
System uname: 2.6.5 x86_64 5
Gentoo Base System version 1.4.6
distcc 2.13 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -msse -msse2 -ftracer -march=k8"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -msse -msse2 -ftracer -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/
http://cudlug.cudenver.edu/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa amd64 apache2 apm avi berkdb bonobo cdr crypt cups
dedicated doc encode foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imlib ipv6
jpeg libg++ libwww mikmod motif mozilla mpeg mpi msn mysql ncurses nls nogcj
nptl odbc oggvorbis opengl oss pam pdflib perl plotutils png python quicktime
readline sdl slang spell ssl tcltk tcpd tetex tiff truetype usb xml2 xmms xv
yahoo zlib"

------- Comment #1 From Tamran Lengyel 2004-04-12 23:16:46 0000 -------
Created an attachment (id=29182) [details]
Fixes the program so it can compile

------- Comment #2 From Danny van Dyk (RETIRED) 2004-04-21 12:38:21 0000 -------
Reassigned to gcc-porting@g.o

------- Comment #3 From SpanKY 2004-04-27 00:15:49 0000 -------
added to portage, thanks