Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge cdemu probleme
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
unix
l33t
l33t


Joined: 06 Jul 2003
Posts: 615
Location: Dürnten ZH Switzerland

PostPosted: Sun Jul 11, 2004 5:27 pm    Post subject: emerge cdemu probleme Reply with quote

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
View user's profile Send private message
ruth
Retired Dev
Retired Dev


Joined: 07 Sep 2003
Posts: 640
Location: M / AN / BY / GER

PostPosted: Sun Jul 11, 2004 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
unix
l33t
l33t


Joined: 06 Jul 2003
Posts: 615
Location: Dürnten ZH Switzerland

PostPosted: Sun Jul 11, 2004 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
unix
l33t
l33t


Joined: 06 Jul 2003
Posts: 615
Location: Dürnten ZH Switzerland

PostPosted: Mon Jul 12, 2004 7:21 pm    Post subject: Reply with quote

rootshell hast du ne lösung dazu?
_________________
Neue Funktionen in Portage 2.0.51 || BBCode Guide
Linux User #379064
Back to top
View user's profile Send private message
flammenflitzer
Advocate
Advocate


Joined: 25 Nov 2003
Posts: 3541
Location: Berlin

PostPosted: Thu Aug 05, 2004 6:28 am    Post subject: Reply with quote

Bei mir hat es funktioniert.
Danke
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
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