<?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>18361</bug_id>
          
          <creation_ts>2003-03-28 06:18 0000</creation_ts>
          <short_desc>man-1.5l fails to emerge with error: ./makemsg: Command not found</short_desc>
          <delta_ts>2005-09-26 15:03:02 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>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>
          
          <blocked>107222</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>r.moesbergen@casema.nl</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          <cc>azarah@gentoo.org</cc>
    
    <cc>bugs@stalag99.net</cc>
    
    <cc>mholzer@gentoo.org</cc>
    
    <cc>morgothq@yahoo.com</cc>
    
    <cc>psteichen@gmail.com</cc>
    
    <cc>todd@kimandtodd.com</cc>
    
    <cc>vl409@yandex.ru</cc>

      

      
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-28 06:18:46 0000</bug_when>
            <thetext>When I try to emerge man-1.5l it fails with several errors.


Reproducible: Always
Steps to Reproduce:
1. Emerge Rsync
2. emerge man
3. -&gt; Error

Actual Results:  
The output I get is:

cd src; make
make[1]: Entering directory `/var/tmp/portage/man-1.5l-r1/work/man-1.5l/src&apos;
march=i686 -O3 -pipe  -s  makemsg.c   -o makemsg
/bin/sh: -O3: command not found
make[1]: [makemsg] Error 127 (ignored)
./makemsg ../msgs/mess.en gripedefs.h msg.c
make[1]: ./makemsg: Command not found
make[1]: *** [gripedefs.h] Error 127
make[1]: Leaving directory `/var/tmp/portage/man-1.5l-r1/work/man-1.5l/src&apos;
make: *** [source] Error 2

!!! ERROR: sys-apps/man-1.5l-r1 failed.
!!! Function src_compile, Line 32, Exitcode 2
!!! (no error message)


Expected Results:  
Merge man-1.5l

I&apos;ve seen this problem on 2 machines, all installed with gentoo 1.2 (gcc 2.95.3)

Portage 2.0.47-r10 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8)
=================================================================
System uname: 2.4.18 i686 GenuineIntel
GENTOO_MIRRORS=&quot;ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ &quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/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;/var/tmp&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;x86 oss 3dnow apm arts avi cups encode gif gpm gtk imlib java jpeg kde 
libg++ libwww mikmod motif mpeg ncurses oggvorbis opengl pdflib png qt 
quicktime sdl spell svga truetype X xml2 xmms xv berkdb gdbm nls perl python 
readline slang tcpd pam ssl mmx crypt&quot;
COMPILER=&quot;&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=i686 -O3 -pipe&quot;
CXXFLAGS=&quot;-O2 -mcpu=i686 -pipe&quot;
ACCEPT_KEYWORDS=&quot;x86&quot;
MAKEOPTS=&quot;-j2&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>mholzer@gentoo.org</who>
            <bug_when>2003-03-28 18:20:52 0000</bug_when>
            <thetext>this is what i get

cd src; make
make[1]: Entering directory `/var/tmp/portage/man-1.5l-r1/work/man-1.5l/src&apos;
gcc -march=i686 -O3 -pipe  -s  makemsg.c   -o makemsg
./makemsg ../msgs/mess.en gripedefs.h msg.c


there must be something wrong with your compiler
is there no error/warning message during configure ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>seemant@gentoo.org</who>
            <bug_when>2003-03-28 19:17:59 0000</bug_when>
            <thetext>it doesn&apos;t seem to be attaching those CFLAGS to a compiler...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 09:34:15 0000</bug_when>
            <thetext>This is the full configure output, no errors I believe ... Note that emerging man-1.5l on system installed with 1.4rc3 works fine. The two machines that have the problem are both installed with 1.2.

&gt;&gt;&gt; Source unpacked.
nls
checking for gcc
gcc is /usr/bin/gcc
checking for ANSI C header files
checking for POSIX.1 header files
checking for BSD string and memory functions
checking whether sys/types.h defines uid_t
checking for Xenix
checking how to get alloca
checking for nls
checking for getopt.h
Checking echo to see how to suppress newlines...
...using -n.
Testing whether grep needs -s or -q ... -q

Assuming you want to be able to handle the nroff source for man pages.

Assuming the following ways to invoke the various commands and filters:
troff command:  /usr/bin/groff -Tps -mandoc
nroff command:  /usr/bin/nroff -Tlatin1 -c -mandoc
jnroff command: /usr/bin/groff -Tnippon -mandocj
eqn command:    /usr/bin/geqn -Tps
neqn command:   /usr/bin/geqn -Tlatin1
jneqn command:  /usr/bin/geqn -Tnippon
tbl command:    /usr/bin/gtbl
col command:    /usr/bin/col
vgrind command: missing
refer command:  /usr/bin/refer
grap command:   missing
pic command:    /usr/bin/pic
pager command:  /usr/bin/less -is
cmp command:    /usr/bin/cmp -s
cat command:    /usr/bin/cat
awk command:    /usr/bin/awk

It seems that no col is needed, since you use groff.

Assuming that binaries go to /usr/bin, the configuration file
goes to /etc, makewhatis to /usr/sbin, and the man pages
to /usr/share/man/man*.
./configure: prefix: command not found

Using localedir /usr/share/locale/%L/%N

Setting the default section search order to 1 8 2 3 4 5 6 7 9 tcl n l p o.

Assuming that formatted pages should be compressed.
Using /bin/bzip2 for compression.

Assuming the following ways to invoke the various decompressors:
gunzip command:         /bin/gunzip -c
bzip2 command:          /bin/bzip2 -c -d
pcat command:           missing
zcat command:           /bin/zcat
fcat command:           missing
unyabba command:        missing

Created Makefile and conf_script. Now do &quot;make&quot; and &quot;make install&quot;.

cd src; ../conf_script Makefile
Creating Makefile from Makefile.in
cd src; make
enz...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 10:02:38 0000</bug_when>
            <thetext>emerge -puD --world

are there any systempackages you might update ?

this could be a quick solution
USE=&quot;-nls&quot; emerge man</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 10:19:18 0000</bug_when>
            <thetext>USE=&quot;-nls&quot; emerge man gives me the exact same error. emerge -puD gives about 30 packages to upgrade, but that&apos;s exactly what I was trying to do, until it stopped at man-1.5l.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 10:29:03 0000</bug_when>
            <thetext>try to update other packages, the try man package again

mabye emerge -puD man helps you</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 11:50:57 0000</bug_when>
            <thetext>No luck, still doesn&apos;t work, but when I do this:

CC=&quot;gcc&quot; emerge man

it does work! I tried env-update &amp;&amp; source /etc/profile and then emerge man, but that doesn&apos;t make a difference... I see a lot of sed&apos;ding going on in the ebuild involving ${CC}:

                sed -e &apos;/inst.sh/d&apos; \
                        -e &apos;/^CC =/c\&apos; \
                        -e &quot;CC = gcc&quot; \
                        -e &apos;/^CFLAGS =/c\&apos; \
                        -e &quot;CFLAGS = ${CFLAGS}&quot; \
                        Makefile.in.orig &gt; Makefile.in

The Makefile.in generated from this does not include a valid CC= line where there should be one (it is in Makefile.in.orig):
# use of catalogs - aeb, June 1994

/^CFLAGS =/c   &lt;= this shouldn&apos;t be here
CFLAGS = -march=i686 -O3 -pipe
INSTALL = @INSTALL@

Any clue&apos;s on how to get the sed thing right? (sed version = 4.0.6, btw)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 12:13:58 0000</bug_when>
            <thetext>try to unset CFLAGS in /etc/make.conf

maybe there&apos;s a typo in it</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 12:16:08 0000</bug_when>
            <thetext>Unsetting CFLAGS didn&apos;t help. Is there a difference between the sed used in 1.2 installs and 1.4 installs?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 12:19:16 0000</bug_when>
            <thetext>both are now 4.0.6</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 13:09:33 0000</bug_when>
            <thetext>I think i&apos;ve found the bug. This is the actual sed command in the -r1 ebuild:

                sed -e &apos;/inst.sh/d&apos; \
                        -e &apos;/^CC =/c\&apos; \
                        -e &apos;/^CFLAGS =/c\&apos; \
                        -e &quot;CFLAGS = ${CFLAGS}&quot; \
                        Makefile.in.orig &gt; Makefile.in

As you can see this line:
                        -e &quot;CC = gcc&quot; \
is missing. I mistakenly copied the 1.5l (not -r1) sed command into this bug report. After I add this line to the -r1 ebuild it works. On 1.4 it always works because the CC env-var is always set there, but on 1.2 it&apos;s not (for whatever reason). That also explains why I got &apos;/^CFLAGS =/c\ in my Makefile.in.
However, after correcting this it still doesn&apos;t work, I also have to change this line:
        make CC=&quot;${CC}&quot; || die
into 
        make || die
The real problem seems to be this ebuild expects ${CC} to be set in the environment and on 1.2 that is not so. After changing these two things it works. Any clues?

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 14:04:18 0000</bug_when>
            <thetext>do you have gcc-config installed ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 14:06:21 0000</bug_when>
            <thetext>Nope, it&apos;s further down in the list of &apos;packages to install&apos;.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mholzer@gentoo.org</who>
            <bug_when>2003-03-29 14:13:53 0000</bug_when>
            <thetext>try to install this, then emerge the original man ebuild

i think it just has to be installed first (gcc-config)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-29 14:46:31 0000</bug_when>
            <thetext>After installing both gcc-config and gcc-2.95.3-r8 it works. ${CC} is now set, so the ebuild succeeds. I guess man should depend on gcc-2.95.3-r8 then..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-03-30 02:10:59 0000</bug_when>
            <thetext>Ill rather bet on bootstrap.sh merged gcc-2.95.3-r7 first.  Although it did
not really make a differense in the past.  It is prob though to that new
sed in there.  The most obvious fix is to do something like:

[ -z &quot;${CC}&quot; ] &amp;&amp; CC=gcc

in src_compile().
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-30 04:25:05 0000</bug_when>
            <thetext>Note that the sed command in the -r1 ebuild IMHO is still wrong..</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-30 04:45:03 0000</bug_when>
            <thetext>Adding [ -z &quot;${CC}&quot; ] &amp;&amp; CC=gcc  to src_compile works, even with gcc-2.95-r7 without gcc-config.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-03-30 05:08:02 0000</bug_when>
            <thetext>The sed and CC stuff was a bit screwy.  I cleaned up the mess ... try man-1.5l-r2,
and let me know if its fixed.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>r.moesbergen@casema.nl</who>
            <bug_when>2003-03-30 05:38:49 0000</bug_when>
            <thetext>Perfect! works like a charm .. thank you!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-03-30 05:57:26 0000</bug_when>
            <thetext>Great.  Ill mark -r2 stable in a bit if there are no distcc/whatever issues
from it.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-04-01 14:15:01 0000</bug_when>
            <thetext>*** Bug 18584 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>psteichen@gmail.com</who>
            <bug_when>2005-07-20 06:03:14 0000</bug_when>
            <thetext>*** Bug 99626 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>morgothq@yahoo.com</who>
            <bug_when>2005-08-05 13:03:22 0000</bug_when>
            <thetext>*** Bug 100854 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>asdfzxcv@uboot.com</who>
            <bug_when>2005-08-19 15:50:18 0000</bug_when>
            <thetext>This really borked my install of gentoo during emerge --emptytree system. Now
after installing gcc-config and gcc, I can&apos;t emerge anything at all. 12 hours
wasted, thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-22 13:39:04 0000</bug_when>
            <thetext>*** Bug 106922 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-26 00:24:41 0000</bug_when>
            <thetext>*** Bug 107222 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-26 00:27:56 0000</bug_when>
            <thetext>Reopen, it seems to be broken again.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-26 05:59:49 0000</bug_when>
            <thetext>no, it should be fixed</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bugs@stalag99.net</who>
            <bug_when>2005-09-26 12:56:36 0000</bug_when>
            <thetext>1.5l is fixed, but 1.6-rc1 is broken.  I don&apos;t know why bug 170222 was marked a
duplicate of this bug, the version numbers are different.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-26 14:39:54 0000</bug_when>
            <thetext>*** Bug 107222 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-09-26 14:41:02 0000</bug_when>
            <thetext>*sigh* Sorry, but this is broken... </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2005-09-26 15:03:02 0000</bug_when>
            <thetext>same issue, but this bug is old</thetext>
          </long_desc>
      
    </bug>

</bugzilla>