Summary: | libdvb fails to emerge, make throws error1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Brian O'Reilly <fade> |
Component: | [OLD] Library | Assignee: | Thomas Raschbacher <lordvan> |
Status: | RESOLVED NEEDINFO | ||
Severity: | major | CC: | gentoo-bugs |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Brian O'Reilly
2004-12-07 11:04:58 UTC
Variable errno is not declared, because errno cames from errno.h and not from asm errno.h. Following patch works for me: --- include/DVB.hh.orig 2004-12-08 10:18:22.641333258 +0100 +++ include/DVB.hh 2004-12-08 10:18:35.975078971 +0100 @@ -2,7 +2,7 @@ #define _DVB_DEV_HH_ extern "C" { -#include <asm/errno.h> +#include <errno.h> #include <fcntl.h> #include <netdb.h> #include <netinet/in.h> similar here, but other error (it seems): make -C libdvb main make -C libdvbci main make[1]: Entering directory `/var/tmp/portage/libdvb-0.5.5/work/libdvb-0.5.5/lib dvb' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule . g++ -I. -I../include -I../../include -O2 -Wall -g -c devices.cc make[1]: Entering directory `/var/tmp/portage/libdvb-0.5.5/work/libdvb-0.5.5/lib dvbci' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule . g++ -I. -I../include -I../../include -O2 -Wall -g -c ci.cc ci.cc:34:26: linux/dvb/ca.h: No such file or directory ci.cc: In member function `bool cCiTransportLayer::ResetSlot(int)': ci.cc:571: error: `CA_RESET' undeclared (first use this function) ci.cc:571: error: (Each undeclared identifier is reported only once for each fun ction it appears in.) ci.cc: In member function `bool cCiTransportLayer::ModuleReady(int)': ci.cc:583: error: `ca_slot_info_t' undeclared (first use this function) ci.cc:583: error: expected `;' before "sinfo" ci.cc:584: error: `sinfo' undeclared (first use this function) ci.cc:585: error: `CA_GET_SLOT_INFO' undeclared (first use this function) ci.cc:586: error: `CA_CI_MODULE_READY' undeclared (first use this function) ci.cc: In static member function `static cCiHandler* cCiHandler::CreateCiHandler (const char*)': ci.cc:1405: error: `ca_caps_t' undeclared (first use this function) ci.cc:1405: error: expected `;' before "Caps" ci.cc:1406: error: `CA_GET_CAP' undeclared (first use this function) ci.cc:1406: error: `Caps' undeclared (first use this function) ci.cc:1410: error: `CA_CI_LINK' undeclared (first use this function) make[1]: *** [ci.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/libdvb-0.5.5/work/libdvb-0.5.5/libd vbci' make: *** [libdvbci/libdvbci.a] Error 2 make: *** Waiting for unfinished jobs.... In file included from devices.cc:1: ../include/devices.hh:14:32: linux/dvb/frontend.h: No such file or directory In file included from devices.cc:1: ../include/devices.hh:48: error: `fe_spectral_inversion_t' does not name a type devices.cc:10: error: `fe_spectral_inversion_t' does not name a type devices.cc: In function `std::ostream& operator<<(std::ostream&, Transponder&)': devices.cc:125: error: `FE_QPSK' undeclared (first use this function) devices.cc:125: error: (Each undeclared identifier is reported only once for eac h function it appears in.) devices.cc:127: error: `FE_QAM' undeclared (first use this function) devices.cc:135: error: `FE_OFDM' undeclared (first use this function) devices.cc:144: error: 'class Transponder' has no member named 'inversion' devices.cc:145: error: `INVERSION_OFF' undeclared (first use this function) devices.cc:148: error: `INVERSION_ON' undeclared (first use this function) devices.cc:151: error: `INVERSION_AUTO' undeclared (first use this function) devices.cc: In function `std::istream& operator>>(std::istream&, Transponder&)': devices.cc:300: error: `FEC_AUTO' undeclared (first use this function) devices.cc:301: error: 'class Transponder' has no member named 'inversion' devices.cc:301: error: `INVERSION_OFF' undeclared (first use this function) devices.cc:341: error: `FE_QPSK' undeclared (first use this function) devices.cc:346: error: `FE_QAM' undeclared (first use this function) devices.cc:368: error: `FE_OFDM' undeclared (first use this function) devices.cc:406: error: 'class Transponder' has no member named 'inversion' devices.cc:406: error: `invset' undeclared (first use this function) make[1]: *** [devices.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/libdvb-0.5.5/work/libdvb-0.5.5/libd vb' make: *** [libdvb/libdvb.a] Error 2 root@eNTi # emerge info Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r9 i686) ================================================================= System uname: 2.6.9-gentoo-r9 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.7 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 27 2004, 10:16:09)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.9.3, 1.6.3, 1.8.5-r2, 1.7.9, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.2-r7 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="http://gentoo.inode.at/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowex S3TC X aalib acpi acpi4linux alsa antlr apm async avi berkdb bidi bitmap-fonts cdparanoia cdr crypt cups dga directfb divx4linux dvb dvd dvdr dvdread encode f77 faad fam flac fltk fmod foomaticdb fortran freetype gdbm gif gimpprint glut gphoto2 gpm gtk gtk2 guile icq imagemagick imlib imlib2 java jikes jpeg junit lcms ldap libg++ libwww mad maildir matroska mcal mikmod mmap mmx mmx2 mng moznocompose moznoirc moznomail mpeg music mysql nas ncurses nethack network nls nowin nvidia offensive oggvorbis openal opengl operanom2 oscar oss pam pdflib perl png ppds python qt quicktime readline rtc samba sdl session slang slp speex spell sse sse2 ssl stencil-buffer stroke tcltk tcpd tetex theora threads tiff timidity transcode truetype type1 unicode usb utf8 vim-with-x vnc wmf wxwindows x86 xchatdccserver xine xml xml2 xmlrpc xmms xosd xpm xrandr xv xvid xvmc zlib" I can both confirm the bug itself and that the patch J I can both confirm the bug itself and that the patch Jörg supplied works and can without any changes be added to portage, maybe even in the existing /usr/portage/media-libs/libdvb/files/libdvb-0.5.5-gentoo.patch Thanks! /©harlie Confirmation: Patch from J Confirmation: Patch from Jörg Gollnick works on my AMD64 machine. Is this patch only needed for amd64 ? if so I'll maybe limit it to apply only on AMD64 The main thing about errno seams to be solved, as patch is in portage and upstream included a similar fix in libdvb-0.5.5.1. Is the second error concerning not available dvb-headers (linux/dvb/ca.h linux/dvb/frontend.h etc.) any longer there? libdvb builds cleanly on my machine now. No sign of the secondary error during build. -B |