Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CryoPID [solved]
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
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Jan 02, 2009 2:10 pm    Post subject: CryoPID [solved] Reply with quote

Hallo zusammen,

ich möchte das schöne kleine Programm cryoPID bei mir installieren.

Das existierende Ebuild ist ein bisschen veraltet und kapputt.
Also habe ich die Versionsnummer angepasst und Leerzeichen vor und nach der URL im Ebuild eingefügt, damit Portage damit zurecht kommt.

Dann trat ein bekannter Bug auf: /usr/include/asm/page*.h existieren nicht. Dies habe ich mit einem Workaround gelöst:
Code:

ln -s /usr/src/linux/include/asm/page.h /usr/include/asm
ln -s /usr/src/linux/include/asm/page_32.h /usr/include/asm
ln -s /usr/src/linux/include/asm/page_64.h /usr/include/asm


Leider kompiliert das Programm immer noch nicht. Ich bekomm immer noch folgenden Fehler:
Code:

>>> Unpacking source...
>>> Unpacking cryopid-0.5.9.1-x86_64.tar.gz to /var/tmp/portage/sys-process/cryopid-0.5.9.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1 ...
make
! test -h arch && rm -f arch && ln -s arch-x86_64 arch || true
make -C arch 'CFLAGS+= -fno-stack-protector'
make[1]: Entering directory `/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64'
cc -g -Wall -Os -fno-stack-protector -I. -Iarch -D__x86_64__  -fno-stack-protector -g -Wall -Os -fpic -I. -I..   -c -o common.o common.c
cc    -c -o get_task_size.o get_task_size.S
cc -g -Wall -Os -fno-stack-protector -I. -Iarch -D__x86_64__  -fno-stack-protector -g -Wall -Os -fpic -I. -I..   -c -o stub.o stub.c
stub.c:19: error: expected declaration specifiers or '...' before 'arch_prctl'
stub.c:19: error: expected declaration specifiers or '...' before 'code'
stub.c:19: error: expected declaration specifiers or '...' before 'addr'
stub.c:19: warning: data definition has no type or storage class
stub.c:19: warning: type defaults to 'int' in declaration of '_syscall2'
make[1]: *** [stub.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64'
make: *** [arch] Error 2


Hat jemand von euch nen Plan was hier falsch läuft?
_________________
Build your own live cd with catalyst 2.0!


Last edited by manuels on Fri Jan 09, 2009 12:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Mon Jan 05, 2009 2:03 pm    Post subject: Reply with quote

*bump*
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Jan 08, 2009 3:06 pm    Post subject: Reply with quote

Hat keiner eine Idee?
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Thu Jan 08, 2009 4:46 pm    Post subject: Reply with quote

Das ist ein Fehler/veralteter Code im Quellcode, hat nichts mit Portage o.ä. zu tun.
Ich bin kein C-crack, aber poste mal diese Zeilen + 3..5 nach oben/unten:
Code:
stub.c:19: error: expected declaration specifiers or '...' before 'arch_prctl'
stub.c:19: error: expected declaration specifiers or '...' before 'code'
stub.c:19: error: expected declaration specifiers or '...' before 'addr'

_________________
1 ha == 1 Hekto-Ar == 1 Hektar
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Jan 08, 2009 4:51 pm    Post subject: Reply with quote

So wirklich kann ich mit der Zeile nichts anfangen:
Code:

[...lots of #includes...]
#include "process.h"

#if !arch_prctl
_syscall2(int, arch_prctl, int, code, unsigned long, addr); // Das hier ist die Zeile 19
#endif

void set_fs()
{
[...]

_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
doedel
Guru
Guru


Joined: 05 Feb 2006
Posts: 579
Location: Denmark

PostPosted: Thu Jan 08, 2009 5:00 pm    Post subject: Reply with quote

Das ist doch ein Funktionsprototyp, müssen die nicht mit einem Datentyp beginnen?

//edit bzw, was macht arch_prctl? Wenn du sicher weisst, dass das False ist, kannst du die komplette Direktive mitsamt dem Prototyp auskommentieren, bzw ein Versuch ist es allemal Wert.
_________________
1 ha == 1 Hekto-Ar == 1 Hektar
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Thu Jan 08, 2009 8:17 pm    Post subject: Reply with quote

arch_prctl scheint nicht false zu sein. Ich habe gerade das ganze mal auskommentiert und dann mäckert der Linker.

Hab die Funktion auch mal als void deklariert. Es kommt dann der selbe Fehler.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Fri Jan 09, 2009 2:49 am    Post subject: Reply with quote

manuels wrote:
So wirklich kann ich mit der Zeile nichts anfangen:
Code:

[...lots of #includes...]
#include "process.h"

#if !arch_prctl
_syscall2(int, arch_prctl, int, code, unsigned long, addr); // Das hier ist die Zeile 19
#endif

void set_fs()
{
[...]


Also mir kommt die ganze Zeile merkwürdig vor. Versuch dochmal folgendes:

Code:

#if !arch_prctl
_syscall2(int arch_prctl, int code, unsigned long addr); // Also ein paar Kommas weniger
#endif

_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Fri Jan 09, 2009 11:03 am    Post subject: Reply with quote

Hab das ganze mal gefixt.
http://homeunix.de/cryopid-0.5.9.1-x86_64.tar.gz
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Jan 09, 2009 11:04 am    Post subject: Reply with quote

stimmt, ist ne Idee. Dann kommt folgendes:
Quote:
cc -static -g -Wall -Os -fno-stack-protector -I. -Iarch -D__x86_64__ -DCOMPILING_STUB -Tarch/stub-linking.x -Os -o stub-gzip stub_common.o common.c arch/asmfuncs.o cpimage_r.o cp_r_fd.o cp_r_fd_console.o cp_r_fd_file.o cp_r_fd_fifo.o cp_r_fd_socket.o cp_r_misc.o cp_r_sighand.o cp_r_vma.o cp_r_header.o arch/arch_r_objs.o fork2.o writer_gzip.c -lz -DPROVIDE_MALLOC -nostdlib -nostartfiles ../dietlibc-x86_64/dietlibc.a -lgcc
../dietlibc-x86_64/dietlibc.a(stderr.o): In function `__fflush_stderr':
stderr.c:(.text+0x8): warning: warning: your code uses stdio (7+k bloat).
../dietlibc-x86_64/dietlibc.a(vsnprintf.o): In function `vsnprintf':
vsnprintf.c:(.text+0x8b): warning: warning: the printf functions add several kilobytes of bloat.
cp_r_sighand.o: In function `rt_sigaction':
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch/arch.h:27: undefined reference to `syscall'
arch/arch_r_objs.o: In function `set_fs':
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64/stub.c:38: undefined reference to `arch_prctl'
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64/stub.c:41: undefined reference to `arch_prctl'
collect2: ld returned 1 exit status
make: *** [stub-gzip] Error 1
rm stub_common.o

Schätze der Quellcode ist ziemlich hin...
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Fri Jan 09, 2009 11:12 am    Post subject: Reply with quote

manuels wrote:
stimmt, ist ne Idee. Dann kommt folgendes:
Quote:
cc -static -g -Wall -Os -fno-stack-protector -I. -Iarch -D__x86_64__ -DCOMPILING_STUB -Tarch/stub-linking.x -Os -o stub-gzip stub_common.o common.c arch/asmfuncs.o cpimage_r.o cp_r_fd.o cp_r_fd_console.o cp_r_fd_file.o cp_r_fd_fifo.o cp_r_fd_socket.o cp_r_misc.o cp_r_sighand.o cp_r_vma.o cp_r_header.o arch/arch_r_objs.o fork2.o writer_gzip.c -lz -DPROVIDE_MALLOC -nostdlib -nostartfiles ../dietlibc-x86_64/dietlibc.a -lgcc
../dietlibc-x86_64/dietlibc.a(stderr.o): In function `__fflush_stderr':
stderr.c:(.text+0x8): warning: warning: your code uses stdio (7+k bloat).
../dietlibc-x86_64/dietlibc.a(vsnprintf.o): In function `vsnprintf':
vsnprintf.c:(.text+0x8b): warning: warning: the printf functions add several kilobytes of bloat.
cp_r_sighand.o: In function `rt_sigaction':
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch/arch.h:27: undefined reference to `syscall'
arch/arch_r_objs.o: In function `set_fs':
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64/stub.c:38: undefined reference to `arch_prctl'
/var/tmp/portage/sys-process/cryopid-0.5.9.1/work/cryopid-0.5.9.1/src/arch-x86_64/stub.c:41: undefined reference to `arch_prctl'
collect2: ld returned 1 exit status
make: *** [stub-gzip] Error 1
rm stub_common.o

Schätze der Quellcode ist ziemlich hin...

Nein, nur veraltet. Mit der gefixten version funktioniert es wieder.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Jan 09, 2009 11:24 am    Post subject: Reply with quote

Was meinst du mit veraltet?
Ich habe nie neueste Version 0.5.9.1 von der Homepage.
Wo hast du eine neue Version gefunden?
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
69719
l33t
l33t


Joined: 20 Sep 2004
Posts: 865

PostPosted: Fri Jan 09, 2009 11:48 am    Post subject: Reply with quote

Das der Quelltext nicht mehr gepflegt, weiterentwickelt wird. Die letzte Version von denen ist vom 29 November 2006, die neue/gefixte Version habe ich erstellt.
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2146
Location: Europe

PostPosted: Fri Jan 09, 2009 12:00 pm    Post subject: Reply with quote

Tschuldige, habe deinen Post übersehen.
Damit klappts. Danke!
_________________
Build your own live cd with catalyst 2.0!
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