Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56714 - problem building cdemu-0.6_beta
Summary: problem building cdemu-0.6_beta
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 56774 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-11 12:10 UTC by Florian Schilhabel (RETIRED)
Modified: 2004-07-15 03:20 UTC (History)
1 user (show)

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


Attachments
the Makefile patch (cdemu_header_patch.diff,558 bytes, patch)
2004-07-11 12:11 UTC, Florian Schilhabel (RETIRED)
Details | Diff
the Ebuild (cdemu-0.6_beta.ebuild,860 bytes, text/plain)
2004-07-11 12:12 UTC, Florian Schilhabel (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schilhabel (RETIRED) gentoo-dev 2004-07-11 12:10:08 UTC
emerging cdemu-0.6_beta gives me the following:


bash-2.05b# emerge cdemu
Calculating dependencies ...done!
>>> emerge (1 of 1) app-cdr/cdemu-0.6_beta to /
>>> md5 src_uri ;-) cdemu-0.6_beta.tar.bz2
>>> Unpacking source...
>>> Unpacking cdemu-0.6_beta.tar.bz2 to /var/tmp/portage/cdemu-0.6_beta/work
>>> Source unpacked.
gcc -march=pentium4 -O3 -pipe -I/usr/src/linux/include -D__KERNEL__ -DMODULE -DKBUILD_MODNAME=cdemu     -c cdemu.c -o cdemu.o
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cdemu_kernel.h:46,
                 from cdemu.c:58:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cdemu_kernel.h:46,
                 from cdemu.c:58:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:43: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/src/linux/include/asm/smp.h:20,
                 from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cdemu_kernel.h:46,
                 from cdemu.c:58:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
                 from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/module.h:10,
                 from cdemu_kernel.h:46,
                 from cdemu.c:58:
/usr/src/linux/include/asm/smp.h:71:26: mach_apicdef.h: No such file or directory
make: *** [all] Error 1

!!! ERROR: app-cdr/cdemu-0.6_beta failed.
!!! Function src_compile, Line 21, Exitcode 2
!!! (no error message)

bash-2.05b#
---


compiler needs to include
-I/usr/src/linux/include/asm/mach-default
because mach_mpspec.h and mach_apicdef.h
are in /usr/src/linux/include/asm/mach-default
and not in
/usr/src/linux/include
attached patch and ebuild resolve this problem
regards
florian


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Florian Schilhabel (RETIRED) gentoo-dev 2004-07-11 12:11:15 UTC
Created attachment 35199 [details, diff]
the Makefile patch
Comment 2 Florian Schilhabel (RETIRED) gentoo-dev 2004-07-11 12:12:00 UTC
Created attachment 35200 [details]
the Ebuild
Comment 3 SpanKY gentoo-dev 2004-07-11 21:29:38 UTC
sync up in a bit and try emerging again

you neglected to provide `emerge info` so i can only guess at your kernel version
Comment 4 Florian Schilhabel (RETIRED) gentoo-dev 2004-07-12 06:29:21 UTC
hi,
ok, i forgot:
kernel version: 2.6.7 vanilla

leela root # emerge info
Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Mobile Intel(R) Pentium(R) 4     CPU 2.80GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.1.14/gentoo-portage"
USE="3dnow X acpi alsa apache2 apm arts avi berkdb cdr crypt cups directfb dvd encode esd foomaticdb gdbm gif gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd truetype wifi x86 xml2 xmms xv zlib"

Comment 5 SpanKY gentoo-dev 2004-07-12 06:46:14 UTC
ok, the change i made to the ebuild should fix you then
Comment 6 Karol Wojtaszek (RETIRED) gentoo-dev 2004-07-15 03:20:00 UTC
*** Bug 56774 has been marked as a duplicate of this bug. ***