View previous topic :: View next topic |
Author |
Message |
unix l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/179694028440ea9bc6aca45.jpg)
Joined: 06 Jul 2003 Posts: 615 Location: Dürnten ZH Switzerland
|
Posted: Sun Jul 11, 2004 5:27 pm Post subject: emerge cdemu probleme |
|
|
hi ich wollte cdemu emergen....
Code: |
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#
|
weis jemand wo der fehler liegt? _________________ Neue Funktionen in Portage 2.0.51 || BBCode Guide
Linux User #379064 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ruth Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 07 Sep 2003 Posts: 640 Location: M / AN / BY / GER
|
Posted: Sun Jul 11, 2004 6:23 pm Post subject: |
|
|
hi,
das scheint ein --> bug zu sein....
keine angst, rootshell hilft...
speichere in
/usr/portage/app-cdr/cdemu/files als cdemu_header_patch.diff
Code: |
diff -Nur cdemu-0.6_beta/Makefile cdemu-0.6_beta_new/Makefile
--- cdemu-0.6_beta/Makefile 2004-03-10 19:21:41.000000000 +0000
+++ cdemu-0.6_beta_new/Makefile 2004-07-11 19:53:02.338920408 +0000
@@ -41,7 +41,7 @@
ifeq ($(BUILD_GHETTO),yes)
CC ?= gcc
CFLAGS ?= -O2 -Wall
-CFLAGS += -I$(KERN_INC) -D__KERNEL__ -DMODULE -DKBUILD_MODNAME=cdemu
+CFLAGS += -I$(KERN_INC) -I/usr/src/linux/include/asm/mach-default -D__KERNEL__ -DMODULE -DKBUILD_MODNAME=cdemu
all:
$(CC) $(CFLAGS) -c cdemu.c -o cdemu.o
$(KERN_DIR)/scripts/modpost $(KERN_DIR)/vmlinux cdemu.o
|
dann ersetze das ebuild selbst durch dieses:
Code: |
DESCRIPTION="mount bin/cue cd images"
HOMEPAGE="http://cdemu.org/"
SRC_URI="mirror://sourceforge/cdemu/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE=""
DEPEND="virtual/kernel"
RDEPEND="dev-lang/python"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/cdemu_header_patch.diff
}
src_compile() {
if [ "${KV:0:3}" == "2.6" ] ; then
emake KERN_DIR=/usr/src/linux BUILD_GHETTO=yes || die
else
emake KERN_DIR=/usr/src/linux || die
fi
}
src_install() {
make install DESTDIR=${D} || die
dodoc AUTHORS ChangeLog README TODO
}
pkg_postinst() {
[ "${ROOT}" == "/" ] && depmod -a
}
|
et voila...
vorsicht:
am besten legst du dafür ein OVERLAY an, sonst sind die änderungen nach dem nächsten sync wieder weg...
gruss
rootshell
btw....
sollte einen bugreport erstellen, wirklich...
edit:
die zeile des patches muss lauten:
+CFLAGS += -I$(KERN_INC) -I/usr/src/linux/include/asm/mach-default -D__KERNEL__ -DMODULE -DKBUILD_MODNAME=cdemu
das ist EINE zeile - nicht zwei... (wie oben im codeblock)
liegt an der forensoftware - die zeile ist zu lang.. _________________ "The compiler has tried twice to abort and cannot do so; therefore, compilation will now terminate."
-- IBM PL/I (F) error manual |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
unix l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/179694028440ea9bc6aca45.jpg)
Joined: 06 Jul 2003 Posts: 615 Location: Dürnten ZH Switzerland
|
Posted: Sun Jul 11, 2004 9:09 pm Post subject: |
|
|
hi danke für deinen post geht aber net...
Code: |
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
RUNNING FROM extra_functions.sh
* Applying cdemu_header_patch.diff...
* Failed Patch: cdemu_header_patch.diff!
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/cdemu-0.6_beta/temp/cdemu_header_patch.diff-8779.out
!!! ERROR: app-cdr/cdemu-0.6_beta failed.
!!! Function epatch, Line 360, Exitcode 0
!!! Failed Patch: cdemu_header_patch.diff!
bash-2.05b#
|
habe es genau so eingebaut wie du es gesagt hast....
ps: wie mache ich ein overlay? _________________ Neue Funktionen in Portage 2.0.51 || BBCode Guide
Linux User #379064 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
unix l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/179694028440ea9bc6aca45.jpg)
Joined: 06 Jul 2003 Posts: 615 Location: Dürnten ZH Switzerland
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flammenflitzer Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/409843123410eaf2de9947.gif)
Joined: 25 Nov 2003 Posts: 3541 Location: Berlin
|
Posted: Thu Aug 05, 2004 6:28 am Post subject: |
|
|
Bei mir hat es funktioniert.
Danke |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|