<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>47667</bug_id>
          
          <creation_ts>2004-04-12 23:14 0000</creation_ts>
          <short_desc>app-text/a2ps-4.13c fails to compile with gcc 3.4 (solved)</short_desc>
          <delta_ts>2004-04-27 00:15:49 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>48528</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>tamran.lengyel@gmail.com</reporter>
          <assigned_to>gcc-porting@gentoo.org</assigned_to>
          <cc>amd64@gentoo.org</cc>
    
    <cc>lv@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tamran.lengyel@gmail.com</who>
            <bug_when>2004-04-12 23:14:55 0000</bug_when>
            <thetext>a2ps fails to compile with gcc 3.4, giving the following error:


gcc -DHAVE_CONFIG_H -DLOCALEDIR=\&quot;/usr/share/locale\&quot; -DSYSCONFFILE=\&quot;/etc/a2ps/a2ps.cfg\&quot; -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 &apos;malloc&apos;
path-concat.c:34: error: conflicting types for &apos;malloc&apos;

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=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O3 -pipe -msse -msse2 -ftracer -march=k8&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O3 -pipe -msse -msse2 -ftracer -march=k8&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://open-systems.ufl.edu/mirrors/gentoo
http://mirrors.tds.net/gentoo http://mirror.tucdemonic.org/gentoo/
http://cudlug.cudenver.edu/gentoo/&quot;
MAKEOPTS=&quot;-j5&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tamran.lengyel@gmail.com</who>
            <bug_when>2004-04-12 23:16:46 0000</bug_when>
            <thetext>Created an attachment (id=29182)
Fixes the program so it can compile
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2004-04-21 12:38:21 0000</bug_when>
            <thetext>Reassigned to gcc-porting@g.o</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-04-27 00:15:49 0000</bug_when>
            <thetext>added to portage, thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>29182</attachid>
            <date>2004-04-12 23:16 0000</date>
            <desc>Fixes the program so it can compile</desc>
            <filename>a2ps_gcc_3.4_fix.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGEycHMtNC4xMy9saWIvcGF0aC1jb25jYXQuYwkyMDAyLTAzLTA0IDEzOjQ2OjI1LjAwMDAw
MDAwMCAtMDUwMAorKysgYTJwcy00LjEzL2xpYi9wYXRoLWNvbmNhdF8uYwkyMDA0LTA0LTEzIDAx
OjQ3OjAzLjU5Njg5NTk4NCAtMDQwMApAQCAtMzEsNyArMzEsOCBAQAogI2VuZGlmCiAjaW5jbHVk
ZSA8c3lzL3R5cGVzLmg+CiAKLWNoYXIgKm1hbGxvYyAoKTsKKy8qIENvbW1lbnRlZCBvdXQgYnkg
VGFtcmFuIHRvIHdvcmsgd2l0aCBnY2MgMy40ICovCisvKiBjaGFyICptYWxsb2MgKCk7ICovCiAK
ICNpZm5kZWYgRElSRUNUT1JZX1NFUEFSQVRPUgogIyBkZWZpbmUgRElSRUNUT1JZX1NFUEFSQVRP
UiAnLycK
</data>        

          </attachment>
    </bug>

</bugzilla>