mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2002-10-22, 10:50   #1
Ron
 
Oct 2002

2 Posts
Default Source Code File Missing

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
Ron is offline   Reply With Quote
Old 2002-10-22, 12:45   #2
AP
 
Sep 2002

2×7 Posts
Default

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
AP is offline   Reply With Quote
Old 2002-10-22, 17:10   #3
roy1942
 
Aug 2002

47 Posts
Default

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
roy1942 is offline   Reply With Quote
Old 2002-10-22, 17:48   #4
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

2×32×13×37 Posts
Default

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]
Xyzzy is offline   Reply With Quote
Old 2002-10-22, 20:30   #5
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

201278 Posts
Default

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.
Prime95 is offline   Reply With Quote
Old 2002-10-22, 20:30   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default

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.
Prime95 is offline   Reply With Quote
Old 2002-10-22, 22:42   #7
Ron
 
Oct 2002

216 Posts
Default

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
Ron is offline   Reply With Quote
Old 2002-10-23, 07:05   #8
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

5·7·139 Posts
Default

Quote:
Originally Posted by Ron
For some reason it's called "PRP" instead of "Prime95"
Wait... :)
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
ET_ is offline   Reply With Quote
Reply



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

All times are UTC. The time now is 13:56.


Fri Jul 7 13:56:24 UTC 2023 up 323 days, 11:24, 0 users, load averages: 0.84, 1.19, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

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.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔