<?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>19039</bug_id>
          
          <creation_ts>2003-04-09 11:09 0000</creation_ts>
          <short_desc>sys-apps/man-1.5l-r2 fails to build with man.c:1107: `q&apos; undeclared (first use in this function)</short_desc>
          <delta_ts>2003-04-28 05:26:58 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>Core system</component>
          <version>unspecified</version>
          <rep_platform>x86</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>bevdv@yahoo.com</reporter>
          <assigned_to>azarah@gentoo.org</assigned_to>
          <cc>seemant@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-09 11:09:11 0000</bug_when>
            <thetext>Emerge man-1.5l-r2 appears to apply patches and configure normally, but
compilation fails on man.c:

colorgcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -march=athlon-mp -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4 -I.
-DSTDC_HEADERS -DPOSIX -DDO_COMPRESS -DGREPSILENT=&quot;&apos;q&apos;&quot; man.c
man.c: In function `do_global_apropos&apos;:
man.c:1107: `q&apos; undeclared (first use in this function)


Reproducible: Always
Steps to Reproduce:
No out of the ordinary setup to my knowledge.




full output from emerge in attachment</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-09 11:11:58 0000</bug_when>
            <thetext>Created an attachment (id=10437)
output from emerge
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-04-10 04:05:17 0000</bug_when>
            <thetext>does this happen without colorgcc as well?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-10 10:03:37 0000</bug_when>
            <thetext>Yes it happens even if colorgcc is unmerged.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-04-10 15:27:12 0000</bug_when>
            <thetext>I dont know what to do about that &apos;q&apos; thing anymore.  I have tried to fix it
a dozen ways, and each fails somewhere else.

What version of sed installed (emerge epm; epm -q sed), and attach output of
&apos;emerge info&apos;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-11 10:23:47 0000</bug_when>
            <thetext>please:/tmp# epm -q sed
sed-4.0.6
please:/tmp# emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20 i686 AMD Athlon(tm) MP 2000+
GENTOO_MIRRORS=&quot;http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/usr/portage&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/home/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
USE=&quot;x86 oss apm cups mikmod nls xml2 gdbm slang ruby libwww motif X 3dnow mmx directfb sse dga opengl xv fbcon kde qt qtmt arts tcltk aalib imlib ncurses readline sdl svga lcms gif jpeg png tiff gd avi mpeg quicktime esd gtk -gnome alsa ggi dvd xmms oggvorbis encode pam ssl crypt tcpd mozilla spell truetype xml pdflib plotutils tetex guile perl python libg++ atlas pic berkdb mysql postgres odbc samba gpm zlib java&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=athlon-mp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4&quot;
CXXFLAGS=&quot;-march=athlon-mp -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -falign-functions=4&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j4&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-11 10:38:30 0000</bug_when>
            <thetext>Juts FYI, I tried with a pared down CFLAGS and USE commented out completely, and it still fails in the same way.  

Also, If I replace GREPSILENT in man.c with the char constant &apos;q&apos; by hand and it compiles fine.   </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-14 14:11:01 0000</bug_when>
            <thetext>OK, so I don&apos;t know why the substitution is not working, but I gave up trying to be subtle.  I change the patch: 

/usr/portage/sys-apps/man/files/man-1.5l-wrong-quotes.patch

which has the offending assignment to just use the hard coded hex ascii vallue for &apos;q&apos;


--- man-1.5k/src/Makefile.in.orig       2002-12-26 06:43:39.000000000 +0200
+++ man-1.5k/src/Makefile.in    2002-12-26 06:48:18.000000000 +0200
@@ -16,7 +16,7 @@

 pager = @pager@

-GS = -DGREPSILENT=\&apos;@grepsilent@\&apos;
+GS = -DGREPSILENT=0x71
 DEFS = @DEFS@ $(GS)
 CWARN = -Wall -Wstrict-prototypes -Wmissing-prototypes
 CWARNNP = -Wall


and it builds fine now. I don&apos;t know what a better solution is.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-04-14 15:04:10 0000</bug_when>
            <thetext>Can you merge supersed, and then cp /bin/sed to /bin/sed.old for example,
and then link ssed to sed, and see if it works unpatched then ?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bevdv@yahoo.com</who>
            <bug_when>2003-04-14 15:20:41 0000</bug_when>
            <thetext>Well, man has always had the &quot;wrong quotes&quot; patch, so I am going to assume you mean the *original* patch, before I modified it, i.e. the one with 

+GS = -DGREPSILENT=&quot;&apos;@grepsilent@&apos;&quot;

Anyhow, I tried what you suggested and it still fails, with the same error.  The actual gcc command issued looks fine, so I think maybe the problem is after automake/sed do their business.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-04-27 19:19:58 0000</bug_when>
            <thetext>Right.  I do not want to hardcode &apos;q&apos;, and thus is why I have not simply changed
it in the past.  I went with your hexdecimal idea, and changed the patch
to:

-----------------------------------------------------------------
--- man-1.5k/src/Makefile.in.orig   2002-12-26 06:43:39.000000000 +0200
+++ man-1.5k/src/Makefile.in    2002-12-26 06:48:18.000000000 +0200
@@ -16,7 +16,7 @@

 pager = @pager@

-GS = -DGREPSILENT=\&apos;@grepsilent@\&apos;
+GS = -DGREPSILENT=$(shell echo &quot;@grepsilent@&quot; | hexdump -d -n 1 | gawk &apos;{ printf(&quot;0x%x&quot;, $$2); exit 0 }&apos;)
 DEFS = @DEFS@ $(GS)
 CWARN = -Wall -Wstrict-prototypes -Wmissing-prototypes
 CWARNNP = -Wall
----------------------------------------------------------------

Which fixes it, and still will handle &apos;grepsilent&apos; changing.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jyrki@kruu.org</who>
            <bug_when>2003-04-28 05:26:58 0000</bug_when>
            <thetext>breaks building stage2, see bug #20095
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10437</attachid>
            <date>2003-04-09 11:11 0000</date>
            <desc>output from emerge</desc>
            <filename>out.txt</filename>
            <type>text/plain</type>
            <data encoding="base64">cGxlYXNlOn4jIGVtZXJnZSBtYW4KQ2FsY3VsYXRpbmcgZGVwZW5kZW5jaWVzIC4uLmRvbmUhCj4+
PiBlbWVyZ2UgKDEgb2YgMSkgc3lzLWFwcHMvbWFuLTEuNWwtcjIgdG8gLwo+Pj4gbWQ1IDstKSBt
YW4tMS41bC50YXIuZ3oKPj4+IFVucGFja2luZyBzb3VyY2UuLi4KPj4+IFVucGFja2luZyBtYW4t
MS41bC50YXIuZ3ogdG8gL2hvbWUvcG9ydGFnZS9wb3J0YWdlL21hbi0xLjVsLXIyL3dvcmsKICog
QXBwbHlpbmcgbWFuLTEuNWwtc2VhcmNoLW9yZGVyLnBhdGNoLi4uICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsgb2sgXQogICog
QXBwbHlpbmcgbWFuLTEuNWwtZ3JvZmYtMS4xOC5wYXRjaC4uLiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsgb2sgXQogICAq
IEFwcGx5aW5nIG1hbi0xLjVsLXdyb25nLXF1b3Rlcy5wYXRjaC4uLiAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbIG9rIF0KICAg
ICogQXBwbHlpbmcgbWFuLTEuNWwtdXRpbF9jLXNlZ2ZhdWx0LnBhdGNoLi4uICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFsgb2sgXQog
ICAgICogQXBwbHlpbmcgbWFuLTEuNWwtcmVkaGF0LXBhdGNoZXMucGF0Y2guLi4gICAgICAgICAg
ICAgICAgICAgICA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