Bug 5887 - man-1.5k fails to build
Bug#: 5887 Product:  Gentoo Linux Version: 1.2 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: azarah@gentoo.org Reported By: yurkjes@iit.edu
Component: Applications
URL: 
Summary: man-1.5k fails to build
Keywords:  
Status Whiteboard: 
Opened: 2002-08-02 00:22 0000
Description:   Opened: 2002-08-02 00:22 0000
I've been unable to update to 1.5k because gcc fails with this error: 
 
./makemsg ../msgs/mess.en gripedefs.h msg.c 
gcc -c -Wall -Wstrict-prototypes -Wmissing-prototypes -march=i686 -O3 
-fomit-frame-pointer -pipe -I. -DSTDC_HEADERS -DPOSIX -DDO_COMPRESS 
-DGREPSILENT=\'q\' man.c 
man.c: In function `do_global_apropos': 
man.c:1087: `q' undeclared (first use in this function) 
man.c:1087: (Each undeclared identifier is reported only once 
man.c:1087: for each function it appears in.) 
make[1]: *** [man.o] Error 1 
make[1]: Leaving directory `/var/tmp/portage/man-1.5k/work/man-1.5k/src' 
make: *** [source] Error 2

------- Comment #1 From Martin Schlemmer (RETIRED) 2002-08-02 19:02:23 0000 -------
What gcc are you using ?  and what is your USE flags ?

------- Comment #2 From Jesse 2002-08-02 19:17:41 0000 -------
Im using gcc 2.95.3 
Tried with "USE="-arts -3dnow -gnome" AND 
with _no_ USE flags at all.  Same error. 

------- Comment #3 From Jesse 2002-08-05 00:23:26 0000 -------
I manually got it to build by taking the -DGREPSILENT=\'q\' out from the   
command line and manually editing man.c in 2 places (i think), replacing the   
GREPSILENT with 'q' in the source code.   
   
It then compiled properly and i appear to be able to run man, makewhatis,  
and whatis itself without any problems... but a friend was able to compile 1.5k 
without any problems with the same version of all software (we essentially had 
the exact same packages to upgrade if we both did a -pu world so everything 
else should be the same) 

------- Comment #4 From Martin Schlemmer (RETIRED) 2002-08-07 16:37:04 0000 -------
Could you try to first remerge grep, then gcc and see if that makes an
difference?

------- Comment #5 From Martin Schlemmer (RETIRED) 2002-12-25 22:56:11 0000 -------
New info ...

------- Comment #6 From Martin Schlemmer (RETIRED) 2002-12-25 22:56:43 0000 -------
Just had the same issue.  It should be fixed for man-1.5k-r1.