Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CryoPID not compiling #1

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments
Open

CryoPID not compiling #1

GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. extract the source archive
2. go to src directory
3. make 

What is the expected output? What do you see instead?
On doing make, I expected it to create the executable freeze.
But it printed the following error 
! test -h arch && rm -f arch && ln -s arch-i386 arch || true
make -C arch 'CFLAGS+=-DUSE_TCPCP -fno-stack-protector'
make[1]: Entering directory
`/home/rahulg/Downloads/cryopid-0.5.9.1/src/arch-i386'
cc -DUSE_TCPCP -fno-stack-protector -g -Wall -Os -fpic -I. -I..   -c -o
stub.o stub.c
cc -DUSE_TCPCP -fno-stack-protector -g -Wall -Os -fpic -I. -I..   -c -o
cp_r_regs.o cp_r_regs.c
cp_r_regs.c:1:24: error: linux/user.h: No such file or directory
cp_r_regs.c: In function ‘load_chunk_regs’:
cp_r_regs.c:17: error: dereferencing pointer to incomplete type
cp_r_regs.c:21: error: ‘PAGE_SIZE’ undeclared (first use in this function)
cp_r_regs.c:21: error: (Each undeclared identifier is reported only once
cp_r_regs.c:21: error: for each function it appears in.)
cp_r_regs.c:27: error: dereferencing pointer to incomplete type
cp_r_regs.c:28: error: dereferencing pointer to incomplete type
cp_r_regs.c:28: error: dereferencing pointer to incomplete type
cp_r_regs.c:31: error: dereferencing pointer to incomplete type
cp_r_regs.c:32: error: dereferencing pointer to incomplete type
cp_r_regs.c:36: error: dereferencing pointer to incomplete type
cp_r_regs.c:37: error: dereferencing pointer to incomplete type
cp_r_regs.c:63: error: dereferencing pointer to incomplete type
cp_r_regs.c:64: error: dereferencing pointer to incomplete type
cp_r_regs.c:65: error: dereferencing pointer to incomplete type
cp_r_regs.c:66: error: dereferencing pointer to incomplete type
cp_r_regs.c:67: error: dereferencing pointer to incomplete type
cp_r_regs.c:84: error: dereferencing pointer to incomplete type
cp_r_regs.c:85: error: dereferencing pointer to incomplete type
cp_r_regs.c:86: error: dereferencing pointer to incomplete type
cp_r_regs.c:92: error: dereferencing pointer to incomplete type
cp_r_regs.c:93: error: dereferencing pointer to incomplete type
cp_r_regs.c:94: error: dereferencing pointer to incomplete type
cp_r_regs.c:93: error: invalid lvalue in asm output 0
cp_r_regs.c: In function ‘read_chunk_regs’:
cp_r_regs.c:102: error: storage size of ‘user’ isn’t known
cp_r_regs.c:104: error: invalid application of ‘sizeof’ to incomplete type
‘struct user’ 
cp_r_regs.c:102: warning: unused variable ‘user’
make[1]: *** [cp_r_regs.o] Error 1
make[1]: Leaving directory
`/home/rahulg/Downloads/cryopid-0.5.9.1/src/arch-i386'
make: *** [arch] Error 2


What version of the product are you using? On what operating system?
I downloaded the latest version cryopid-0.5.9.1-x86_64.tar.gz from
http://cryopid.berlios.de/#download
and tried to install it on Ubuntu 9.10, Linux 2.6.31-20-generic #58-Ubuntu
SMP i686 GNU/Linux


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 25 Apr 2010 at 6:28

@GoogleCodeExporter
Copy link
Author

well ist is easy, you must look for asm-x86/user.h and link to asm/user.h
but still there is some problems I am having with  the 2.6.26 lenny kernel like:
make -C arch 'CFLAGS+= -fno-stack-protector'
make[1]: Entering directory `/home/fbenites/src/cryopid/src/arch-x86_64'
cc -fno-stack-protector -g -Wall -Os -fpic -I. -I.. 
-I/usr/src/linux-headers-2.6.26-1-common/include/   -c -o cp_r_regs.o 
cp_r_regs.c
cp_r_regs.c: In function ‘load_chunk_regs’:
cp_r_regs.c:24: error: ‘struct user_regs_struct’ has no member named 
‘rsp’
cp_r_regs.c:25: error: ‘struct user_regs_struct’ has no member named 
‘rsp’
cp_r_regs.c:25: error: ‘struct user_regs_struct’ has no member named 
‘rip’
cp_r_regs.c:46: error: ‘struct user_regs_struct’ has no member named 
‘rsp’
cp_r_regs.c:47: error: ‘struct user_regs_struct’ has no member named 
‘rsp’
cp_r_regs.c:47: error: ‘struct user_regs_struct’ has no member named 
‘eflags’
cp_r_regs.c:90: error: ‘struct user_regs_struct’ has no member named 
‘rbp’
cp_r_regs.c:91: error: ‘struct user_regs_struct’ has no member named 
‘rbx’
cp_r_regs.c:96: error: ‘struct user_regs_struct’ has no member named 
‘rax’
cp_r_regs.c:97: error: ‘struct user_regs_struct’ has no member named 
‘rcx’
cp_r_regs.c:98: error: ‘struct user_regs_struct’ has no member named 
‘rdx’
cp_r_regs.c:99: error: ‘struct user_regs_struct’ has no member named 
‘rsi’
cp_r_regs.c:100: error: ‘struct user_regs_struct’ has no member named 
‘rdi’
cp_r_regs.c:101: error: ‘struct user_regs_struct’ has no member named 
‘rsp’
make[1]: *** [cp_r_regs.o] Fehler 1
make[1]: Leaving directory `/home/fbenites/src/cryopid/src/arch-x86_64'
make: *** [arch] Fehler 2

Original comment by [email protected] on 30 Sep 2010 at 8:31

@GoogleCodeExporter
Copy link
Author

I commented out #include <sys/user.h> in process.h on an x86_64 suse 9 system 
it compiled for me.

Original comment by [email protected] on 2 Dec 2010 at 6:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant