![]() |
|
|
#1 |
|
Oct 2002
2 Posts |
Hello all,
Has anyone ever tried to compile the source code provided on the GIMPS Source Code webpage? I've tried to compile it for Windows NT Version 5 (aka; Windows 2000) with the M$ Visual C++ v6 compiler, but there's a missing file named "Security.c" that's included by "common.c" which is in turn included by the makefile Prime95.mak. The prior version of Prime95 I downloaded even contained a MsVC++ project file, but it would not compile either. Am I the only one in the world (besides the original developers) who has ever tried to compile the Prime95 code for Windows? I assume the omission of the "security.c" file from the source code download at ftp://mersenne.org/gimps/source22.zip was accidental, but if so who do I contact to get a copy of the file? Thank you, -- Ron |
|
|
|
|
|
#2 |
|
Sep 2002
2×7 Posts |
Hi,
I don´t think that you will find it because it contains all that security stuff which shall make it impossible to fake results. But there should be enough guys out there who can help you anyway. Regards Achim |
|
|
|
|
|
#3 |
|
Aug 2002
47 Posts |
Hi,
About a year ago I made a feeble attempt to compile and link the source code, and ran into the same problem. Perhaps George (or someone adept at this) could supply a fake/dummy security.c for the 'public' code so we can build it more easily. This code should have enough functionality to keep the program operational, but make the program's output easy for the server to identify as not 'genuine.' Roy |
|
|
|
|
|
#4 |
|
Aug 2002
2×32×13×37 Posts |
This is weird... I ran into the same problem last night... I was just getting ready to email George when I saw this...
Also, the source code files are uploaded with "^M" all throughout them... They won't compile until I strip them... [code:1] %make -f makebsd mprime gcc -I.. -O2 -m486 -malign-double -c prime.c In file included from prime.h:143, from prime.c:7: commonb.h:5: security.h: No such file or directory In file included from prime.c:81: commonc.c:1177: security.c: No such file or directory *** Error code 1 Stop in /usr/www/users/xyzzy/tmp/linux.[/code:1] |
|
|
|
|
|
#5 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
201278 Posts |
The linux makefile creates an empty security.h and security.c file.
You should be able to compile the source by creating these empty files by hand. What functionality will be missing? Well, it won't talk to the primenet server (Scott's decision, not mine) and each results.txt line contains 00000000 as the security code. I'll accept these results anyway. |
|
|
|
|
|
#6 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
17×487 Posts |
The linux makefile creates an empty security.h and security.c file.
You should be able to compile the source by creating these empty files by hand. What functionality will be missing? Well, it won't talk to the primenet server (Scott's decision, not mine) and each results.txt line contains 00000000 as the security code. I'll accept these results anyway. |
|
|
|
|
|
#7 |
|
Oct 2002
216 Posts |
Prime95,
Unfortunately that's not true for the Windows makefile (Prime95.mak). Whenever I create dummy security.c and security.h files, I get this message "NMAKE : U1073: don't know how to make '.\res\Prime95.ico'" so obviously the makefile supplied with the partial source code was never used to actually compile the supplied code (unless there are some special environment settings that are required but aren't documented). In any case, I just noticed that since my original post the new Prime95 Version 22 source code has been published on the Gimps source page and it has enormously more information, files, even HTML pages, etc., than any previous source code zip file I've seen. I've only just now started looking through the files and noticed that this new version does have MsVC++ project files (now called "solution" or ".sln" files - more marketing hype from M$! ) but that version 7 of the compiler (aka; Visual Studio.NET) is required to compile them, so I've reinstalled the ".NET" version of the M$ compiler so that I can try compiling and linking the code (I had previously tried Version 7 and uninstalled it because I prefer the older Version 6 compiler and do not like to have to use Internet Explorer 6.0 either, which is required for the ".NET" version of the compiler).In fact, I have just now compiled and linked the supplied source code successfully on the first try! HOORAH!!! For some reason it's called "PRP" instead of "Prime95" - but who cares, it looks the same otherwise. To be honest, my motives for wanting a compilable/linkable version wasn't so that I could dissect the Prime95 program itself, but rather so I could reuse the Windows interface part of it instead of developing my own. It has everything I need, so hopefully I'll be able to rip out the computational portion of it and substitute my own for attempting to factor the RSA-576 challenge number. ;) -- Ron |
|
|
|
|
|
#8 | |
|
Banned
"Luigi"
Aug 2002
Team Italia
5·7·139 Posts |
Quote:
Afaik, George released a dfferent software called PRP to check big pseudoprimes. Unless he decided to reunite both programs under the same hood, chances are that you chose the wrong project (or "solution") :( Luigi |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Source code to mprime 289 out there somewhere? | graysky | Linux | 6 | 2016-04-25 23:03 |
| Source Code for msieve ? | mohamed | Msieve | 8 | 2013-12-14 01:04 |
| Source code for my program | Sam Kennedy | Factoring | 7 | 2012-11-22 18:24 |
| llrnet - source code? | reezer | Prime Sierpinski Project | 11 | 2009-09-11 10:47 |
| Support for other OSs on x86/source code | reezer | Software | 1 | 2007-02-08 12:57 |