Compiling crypt_prog

Message boards : Server programs : Compiling crypt_prog
Message board moderation

To post messages, you must log in.

AuthorMessage
Gachl

Send message
Joined: 13 Jan 11
Posts: 4
Switzerland
Message 36426 - Posted: 13 Jan 2011, 15:09:27 UTC
Last modified: 13 Jan 2011, 15:14:34 UTC

Hi,

I'm currently trying to get a private boinc project going but I'm stuck at signing my applications.
The problem occured earlier, when creating my project with make_project it couldn't generate the keys I need because it seems that crypt_prog didn't compile. The exact error message is:

Keys don't exist in /path/to/keys/; generate them? [Y/n]
Setting up server files: generating keys
sh: /path/to/boinc/lib/crypt_prog: No such file or directory
FATAL ERROR: Command failed: /path/to/boinc/lib/crypt_prog -genkey 1024 /path/to/keys/upload_private /path/to/keys/upload_public >/dev/null

I tried compiling it manualy with

cd /path/to/boinc/lib
make crypt

but I get 'crypt.cpp:23:20: error: config.h: No such file or directory'. Now, before I dig deep into the makefile to set some paths, is there anything I'm doing wrong or is there any known solution to this?

Thanks!

edit: To install the server I followed these instructions: http://boinc.berkeley.edu/trac/wiki/ServerIntro#cookbook-debian40
ID: 36426 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 36427 - Posted: 13 Jan 2011, 15:22:54 UTC - in response to Message 36426.  

Which BOINC source code are you using and which Linux distro?
What command are you using to make the keys with crypt_prog?

I ask so I can tell the developer that I'll try to have pass by this way.

By the way, to use crypt_prog, see here. No, it doesn't say how to compile it or what to do when it won't compile, just what its command uses are.
Also check out this page for the correct use overall of the cryptology program.

ID: 36427 · Report as offensive
Gachl

Send message
Joined: 13 Jan 11
Posts: 4
Switzerland
Message 36434 - Posted: 14 Jan 2011, 9:57:29 UTC - in response to Message 36427.  
Last modified: 14 Jan 2011, 9:59:09 UTC

Which BOINC source code are you using and which Linux distro?

svn co http://boinc.berkeley.edu/svn/branches/server_stable
on Debian 2.6.26-25lenny1 (2.6.26-2-686-bigmem, gcc version 4.3.2, Python 2.5.2)

What command are you using to make the keys with crypt_prog?

I'm using the Make Project Script which is supposed to generate the keys automatically, but as you can see from the error message (first post) it can't find the crypt_prog binaries because they're not compiled.
ID: 36434 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 36438 - Posted: 14 Jan 2011, 12:56:18 UTC - in response to Message 36434.  
Last modified: 14 Jan 2011, 12:58:00 UTC

Better follow the instructions in the official Wiki. We don't know how old the instructions are in the unofficial wiki and when they've been updated. See http://boinc.berkeley.edu/trac/wiki/MakeProject for more info.

I've forwarded it to a developer, but won't expect a reaction for another 4 or more hours, due to his locality.
ID: 36438 · Report as offensive
Gachl

Send message
Joined: 13 Jan 11
Posts: 4
Switzerland
Message 36439 - Posted: 14 Jan 2011, 13:17:34 UTC

No problem, doesn't hurry much :)

I didn't know which wiki to use, I find the boinc sites quite confusing, I don't know where to look for which information because there are so many places to look and to find out which is the correct one is hard, thanks for the link to the official wiki. I'll try again following the instructions there and see how far I get.
ID: 36439 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 36440 - Posted: 14 Jan 2011, 13:29:04 UTC - in response to Message 36439.  
Last modified: 14 Jan 2011, 13:29:28 UTC

I didn't know which wiki to use

The one you're using now has 'Unofficial Wiki' plastered all over it. ;-)

The official wiki, which did come later is situated at http://boinc.berkeley.edu/trac/wiki/ProjectMain. This one is updated by the developers, so this one is best used in situations like this.

If in doubt, you can ask here, or better yet, on the email lists to the Gods, that we speak of in this thread. Again, due to their locality (mostly West-coast USA, UTC -8/-9 hours), getting an answer from them can take a while.
ID: 36440 · Report as offensive
Gachl

Send message
Joined: 13 Jan 11
Posts: 4
Switzerland
Message 36443 - Posted: 14 Jan 2011, 13:54:47 UTC
Last modified: 14 Jan 2011, 14:17:02 UTC

Right, the official wiki basically does the same as I already tried. After compiling the source, executing make_project still fails to generate the keys. Same error, same cause. I'll try to manually create the keys with some ssh keygen to sign and run the applications.
If this doesn't work either, I'll consult the mailing list.

Thanks for the help!

edit: Oh yea and while I'm on it, make_project also fails to copy binaries from boinc/sched (all) and boinc/tools (some), when trying to compile those manually it throws ‘MYSQL_ROW’ has not been declared errors and others. Not sure why this happens, but I'm sure that it shouldn't happen in a stable branch...
Error Log: http://pastebin.com/AqHM9VZf & http://pastebin.com/yb3EpEB9

edit2: Nope, got stuck at signing the applications because the sign_executable didn't compile either. Time for the mailing lists.
ID: 36443 · Report as offensive

Message boards : Server programs : Compiling crypt_prog

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.