Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106922

Summary: sys-apps/man-1.6-r1 failes to build
Product: Gentoo Linux Reporter: Vladimir <vl409>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vladimir 2005-09-22 13:34:36 UTC
Here is emerge log:
{bastion}[root@src]# emerge man
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/man-1.6-r1 to /
>>> md5 files   ;-) man-1.6a.ebuild
>>> md5 files   ;-) man-1.5p.ebuild
>>> md5 files   ;-) man-1.6-r1.ebuild
>>> md5 files   ;-) files/man-1.6a-parallel-make.patch
>>> md5 files   ;-) files/man-1.5m-groff-1.18.patch
>>> md5 files   ;-) files/man-1.5p-search-order.patch
>>> md5 files   ;-) files/man-1.5p-parallel-make.patch
>>> md5 files   ;-) files/man-1.5p-defmanpath-symlinks.patch
>>> md5 files   ;-) files/makewhatis.cron
>>> md5 files   ;-) files/man-1.6-message-order.patch
>>> md5 files   ;-) files/digest-man-1.6a
>>> md5 files   ;-) files/digest-man-1.5p
>>> md5 files   ;-) files/digest-man-1.6-r1
>>> md5 files   ;-) files/man-1.6-parallel-make.patch
>>> md5 files   ;-) files/man-1.6-cross-compile.patch
>>> md5 src_uri ;-) man-1.6.tar.gz
>>> Unpacking source...
>>> Unpacking man-1.6.tar.gz to /var/tmp/portage/man-1.6-r1/work
 * Applying man-1.6-parallel-make.patch ...                               [ ok ]
 * Applying man-1.6-cross-compile.patch ...                               [ ok ]
 * Applying man-1.6-message-order.patch ...                               [ ok ]
 * Applying man-1.5p-search-order.patch ...                               [ ok ]
 * Applying man-1.5m-groff-1.18.patch ...                                 [ ok ]
 * Applying man-1.5p-defmanpath-symlinks.patch ...                        [ ok ]
>>> Source unpacked.
checking for 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.

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 -Tascii -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
browser command:        /usr/bin/lynx
htmlpager command:      /usr/bin/lynx -dump
cmp command:    /usr/bin/cmp -s
cat command:    /bin/cat
awk command:    /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*.

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

Setting the default section search order to 1 1p 8 2 3 3p 4 5 6 7 9 0p 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 "make" and "make install".

cd src; ../conf_script Makefile
Creating Makefile from Makefile.in
cd src; make
make[1]: Entering directory `/var/tmp/portage/man-1.6-r1/work/man-1.6/src'
o makemsg makemsg.c
make[1]: o: 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.6-r1/work/man-1.6/src'
make: *** [source] Error 2

!!! ERROR: sys-apps/man-1.6-r1 failed.
!!! Function src_compile, Line 78, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1.emerge =sys-apps/man-1.6-r1
2.
3.

Actual Results:  
Emerge of application failed with errors, posted in 'Details' field.

Expected Results:  
Successfull emerge.

System is:
Portage 2.0.51.22-r2 (hardened/x86, gcc-3.2.3, glibc-2.3.5-r1,
2.4.28-grsec-2.1.0 i686)

Actual bug is: 
/var/tmp/portage/man-1.6-r1/work/man-1.6/src/Makefile defines BUILD_CC= # empty
string
but later is such strings:
makemsg:
        $(BUILD_CC) -o makemsg makemsg.c
so, compilation fails due to syntax error

as a workaround, i`ve made:
export BUILD_CC="gcc" and all emerged fine.

I`m not sure where BUILD_CC must be defined, so i think it`s a bug. (possibly my
system messed? )
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-22 13:39:04 UTC

*** This bug has been marked as a duplicate of 18361 ***