Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13787 - uudeview does not compile with GCC 3.2.x
Summary: uudeview does not compile with GCC 3.2.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-12 12:02 UTC by Joseph Carter
Modified: 2003-01-13 00:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Carter 2003-01-12 12:02:01 UTC
make[1]: Entering directory
`/usr/tmp/portage/uudeview-0.5.18/work/uudeview-0.5.18/inews'
gcc -march=athlon -O2 gdb -pipe -I.  -DHAVE_CONFIG_H   -c -o inews.o inews.c
(cd uulib ; make)
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [inews.o] Error 1
make[1]: Leaving directory
`/usr/tmp/portage/uudeview-0.5.18/work/uudeview-0.5.18/inews'
make: *** [minews] Error 2
make: *** Waiting for unfinished jobs....
make[1]: Entering directory
`/usr/tmp/portage/uudeview-0.5.18/work/uudeview-0.5.18/uulib'
gcc -c -march=athlon -O2 gdb -pipe -I.  -DHAVE_CONFIG_H -DVERSION=\"0.5\"
-DPATCH=\"18\" uulib.c
gcc: gdb: No such file or directory
gcc -c -march=athlon -O2 gdb -pipe -I.  -DHAVE_CONFIG_H -DVERSION=\"0.5\"
-DPATCH=\"18\" uucheck.c
gcc: gdb: No such file or directory
In file included from uucheck.c:53:
fptools.h:54: conflicting types for `_FP_tempnam'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/stdio.h:203: previous
declaration of `_FP_tempnam'
make[1]: *** [uucheck.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from uulib.c:81:
fptools.h:54: conflicting types for `_FP_tempnam'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/include/stdio.h:203: previous
declaration of `_FP_tempnam'
make[1]: *** [uulib.o] Error 1
make[1]: Leaving directory
`/usr/tmp/portage/uudeview-0.5.18/work/uudeview-0.5.18/uulib'
make: *** [libuu.a] Error 2


Okay, this is somewhat misleading if you do not notice the first problem is that
it's including "gdb" on the command line.  GCC 3.2.x offers -ggdb, which is
better than plain -g, but uudeview strips -g kinda stupidly in ./configure. 
Suggest either making uudeview's ./configure smarter (in which case a patch
upstream might be a good idea), or stripping the -ggdb option preemptively so
that uudeview does not have a chance to break it.
Comment 1 Nick Hadaway 2003-01-12 20:09:26 UTC
This appears to be a problem with parallel make... I changed emake to make in the ebuild in portage which appears to be the root of the problem.  I have had no problems emerging uudeview with gdb installed or gdb not installed.
Comment 2 Joseph Carter 2003-01-12 20:36:05 UTC
Did you build with -ggdb?

Having gdb installed is not the issue, compiling with -ggdb (rather than the
traditionally used -g) is what broke it.  The configure-generated makefiles are
using invalid CFLAGS..
Comment 3 Nick Hadaway 2003-01-13 00:18:39 UTC
I have updated the ebuild to properly support DEBUGBUILD in make.conf... If that env variable is set, then "--disable-optimize" will be passed to configure which will stop -g being stripped from your CFLAGS.