<?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>184200</bug_id>
          
          <creation_ts>2007-07-04 16:00 0000</creation_ts>
          <short_desc>sys-devel/m4-1.4.9 signed division bug</short_desc>
          <delta_ts>2007-07-07 06:33:50 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>Ebuilds</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>a@gaydenko.com</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>a@gaydenko.com</who>
            <bug_when>2007-07-04 16:00:29 0000</bug_when>
            <thetext>Trying to install non-in-portage app (it is sci-electronics/pcb, but from CVS tree), have got the error:

______________
...
checking for m4... /usr/bin/m4
checking if /usr/bin/m4 has the division involving negative numbers bug... yes
configure: error: It appears that /usr/bin/m4 has a bug involving division
with negative numbers.  In particular it just returned the result that
-2/2 = 2147483647 instead of -1.  This is a known bug in GNU m4-1.4.9.  Please
install a non-broken m4.
...
_______________

OTOH, this m4 version is &apos;stable&apos; in portage. Is it worth to mark 1.4.9 as &apos;unstable&apos;, or have I missed something?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-07-04 18:15:54 0000</bug_when>
            <thetext>you forgot `emerge --info`

also, post information on how to reproduce this issue over here</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a@gaydenko.com</who>
            <bug_when>2007-07-04 18:26:21 0000</bug_when>
            <thetext>&apos;emerge --info&apos; output is:


Portage 2.1.3_rc6 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 03 Jul 2007 20:30:07 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=nocona -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=nocona -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;distlocks metadata-transfer sandbox sfperms strict unmerge-orphans&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j4&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/wrk/tmp/portage&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/pro-audio /usr/portage/local/layman/xeffects /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;7zip X acl akode alsa amd64 audiofile berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt css cups dbus dri dssi dvd dvdr dvdread eds emboss encode exif ffmpeg fftw firefox flac fluidsynth fortran gdbm gif gphoto2 gpm hal hdsp iconv ieee1394 isdnlog jack jpeg kde kdexdelta kdexdeltas kqemu ladspa lame lash ldap libg++ libsamplerate licq lirc lm_sensors lv2 mad midi mikmod mmx mp3 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly ogg opengl openmp osc oss pam pcre pdf perl pertty png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sndfile soundtouch spell spl sqlite sse sse2 ssl tcpd tif tiff truetype truetype-fonts type1-fonts unicode vorbis wmf x264 xine xml xorg xosd xv xvid zip zlib&quot; ALSA_CARDS=&quot;hdsp virmidi&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; CAMERAS=&quot;canon ptp2 directory&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LIRC_DEVICES=&quot;serial&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;i810&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a@gaydenko.com</who>
            <bug_when>2007-07-04 18:28:58 0000</bug_when>
            <thetext>Created an attachment (id=123892)
self-made ebuild file

This ebuild file is under using to emerge &apos;pcb&apos; app from CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-07-04 19:43:55 0000</bug_when>
            <thetext>http://www.mail-archive.com/bug-m4@gnu.org/msg02084.html
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2007-07-07 06:33:50 0000</bug_when>
            <thetext>added fix from upstream to 1.4.9-r1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>123892</attachid>
            <date>2007-07-04 18:28 0000</date>
            <desc>self-made ebuild file</desc>
            <filename>pcb-cvs-0.7.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L3NjaS1lbGVjdHJvbmljcy9wY2IvcGNiLTIwMDQw
OTAzLmVidWlsZCx2IDEuMSAyMDA0LzEyLzI3IDIwOjE1OjQxIHJpYm9zb21lIEV4cCAkCgppbmhl
cml0IGV1dGlscyBjdnMKCk1ZX1A9IiR7UC9fL30iCkVDVlNfU0VSVkVSPSJwY2IuY3ZzLnNvdXJj
ZWZvcmdlLm5ldDovY3Zzcm9vdC9wY2IiCkVDVlNfTU9EVUxFPSJwY2IiCkVD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