Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80239 - Xawtv refuses to compile with GCC 3.3.5
Summary: Xawtv refuses to compile with GCC 3.3.5
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 80380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-31 11:32 UTC by Alexandre Gauthier
Modified: 2005-06-10 08:08 UTC (History)
5 users (show)

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 Alexandre Gauthier 2005-01-31 11:32:14 UTC
Everything compiles fine, however when linking, the following error occurs.

n file included from console/fbtv.c:31:
libng/grab-ng.h:28:1: warning: "bool" redefined
In file included from /usr/include/curses.h:136,
                 from console/fbtv.c:24:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/stdbool.h:36:1: warning: this is the location of the previous definition
  CC      console/fbtools.o
  CC      console/fs.o
  CC      console/matrox.o
  CC      common/lirc.o
  CC      common/joystick.o
  CC      common/midictrl.o
  LD      console/fbtv
console/fs.o(.text+0x563): In function `fs_connect':
: undefined reference to `FSOpenServer'
console/fs.o(.text+0x580): In function `fs_connect':
: undefined reference to `FSServerName'
console/fs.o(.text+0x5b8): In function `fs_connect':
: undefined reference to `FSServerName'
console/fs.o(.text+0x631): In function `fs_open':
: undefined reference to `FSListFonts'
console/fs.o(.text+0x6a3): In function `fs_open':
: undefined reference to `FSOpenBitmapFont'
console/fs.o(.text+0x6b1): In function `fs_open':
: undefined reference to `FSFreeFontNames'
console/fs.o(.text+0x6f6): In function `fs_open':
: undefined reference to `FSQueryXInfo'
console/fs.o(.text+0x72a): In function `fs_open':
: undefined reference to `FSQueryXExtents16'
console/fs.o(.text+0x76f): In function `fs_open':
: undefined reference to `FSQueryXBitmaps16'
collect2: ld returned 1 exit status
make: *** [console/fbtv] Error 1

!!! ERROR: media-tv/xawtv-3.86-r2 failed.
!!! Function src_compile, Line 55, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge xawtv
2. Watch errors.
3. Cry.

Actual Results:  
I was dropped to a shell, obviously.

Expected Results:  
Well.. perhaps it should have properly linked and installed my binaries.

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6
.10-gentoo-r6ewigkeit i686)
=================================================================
System uname: 2.6.10-gentoo-r6ewigkeit i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Dec  3 2004, 19:27:48)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/conf                                                      ig
/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shut                                                      down
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mcpu=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks sandbox sfperms strict
userpri                                                      vs usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.netnitco.net
http://m                                                     
irror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://172.16.64.1/gentoo-portage"
USE="x86 3dnow X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd
dvdr                                                       encode esd f77 fam
flac font-server foomaticdb fortran gdbm gif gpm gstreamer gtk gtk             
                                        2 imagemagick imlib ipv6 java jpeg junit
kde libg++ libwww mad mikmod motif mpeg mysq                                   
                  l nas ncurses nls nvidia offensive oggvorbis opengl oss pam
pdflib perl png python qt                                                      
quicktime readline samba sdl slang snmp spell ssl svga tcltk tcpd tiff truetype
true                                                      type-fonts type1-fonts
xine xinerama xml2 xmms xscreensaver xv zlib linguas_fr"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-02-01 13:19:37 UTC
*** Bug 80380 has been marked as a duplicate of this bug. ***
Comment 2 Jens Lorenz 2005-02-02 13:47:45 UTC
The origin of the trouble is this line in Makefile.in from the xawtv package (xawtv_3.86.tar.gz).

FS_LIBS                := -L@x_libraries@ @FSLIB@

As the new current xorg-x11 ebuild puts the headers and libraries into /usr and not /usr/X11R6 there is no prefix needed for linking with -lFS. Thus @x_libraries@ is empty, which gives the line

FS_LIBS         := -L -lFS

in the created Makefile. This is incorrect and leads to the error mentioned above.

If no X implementation part of gentoo uses the /usr/X11R6 hierarchy anymore, just drop the -L@x_libraries@. If this is the case, the substitution should be smarter to only include the -L option if @x_libraries@ is non-empty.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2005-05-29 17:53:14 UTC
Please test with latest xawtv.