View previous topic :: View next topic |
Author |
Message |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Fri Jan 02, 2009 2:10 pm Post subject: CryoPID [solved] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
doedel Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9049701224440b7441acd9.jpg)
Joined: 05 Feb 2006 Posts: 579 Location: Denmark
|
Posted: Thu Jan 08, 2009 4:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Jan 08, 2009 4:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
doedel Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/9049701224440b7441acd9.jpg)
Joined: 05 Feb 2006 Posts: 579 Location: Denmark
|
Posted: Thu Jan 08, 2009 5:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Thu Jan 08, 2009 8:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Anarcho Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1030393113423afb9086043.jpg)
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Jan 09, 2009 2:49 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
69719 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 20 Sep 2004 Posts: 865
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Fri Jan 09, 2009 11:04 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
69719 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 20 Sep 2004 Posts: 865
|
Posted: Fri Jan 09, 2009 11:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
69719 l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 20 Sep 2004 Posts: 865
|
Posted: Fri Jan 09, 2009 11:48 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
manuels Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/106271246545d319130201e.gif)
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|