mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2017-04-27, 19:55   #12
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110100110112 Posts
Default

Quote:
Originally Posted by chalsall View Post
Code:
../primenet.c:49:23: fatal error: curl/curl.h: No such file or directory
 #include <curl/curl.h>
You need curl dev.
paulunderwood is offline   Reply With Quote
Old 2017-04-27, 20:21   #13
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

973110 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
You need curl dev.
LOL. I know that, so after I issued a "install curl dev" instruction the following make warning resulted when I tried to compile the executable:

Code:
[chalsall@burrow linux64]$ make
[ ! -e ../security.h ] && touch ../security.h || true
[ ! -e ../security.c ] && touch ../security.c || true
[ ! -e ../secure5.c ] && touch ../secure5.c || true
gcc -I.. -I../gwnum -I/usr/local/include -DX86_64 -O2  -c prime.c
gcc -I.. -I../gwnum -I/usr/local/include -DX86_64 -O2  -c menu.c
menu.c: In function ‘get_line’:
menu.c:28:38: warning: implicit declaration of function ‘sigterm_handler’ [-Wimplicit-function-declaration]
  if (fgets (buf, 80, stdin) == NULL) sigterm_handler (SIGTERM); // Treat EOF the same as a termination signal
                                      ^~~~~~~~~~~~~~~
gcc -Wl,-M -Wl,-L/usr/local/lib -o mprime prime.o menu.o factor64.o ../gwnum/gwnum.a ../gwnum/gwnum.ld -lm -lpthread -Wl,-Bstatic -lcurl -Wl,-Bdynamic -lrt -lstdc++ -ldl
gcc: error: ../gwnum/gwnum.a: No such file or directory
makefile:31: recipe for target 'mprime' failed
make: *** [mprime] Error 1
Just to be fair, the gwnum.a library has to hand compiled.
chalsall is offline   Reply With Quote
Old 2017-04-27, 23:06   #14
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

165468 Posts
Default

The missing forward declaration in menu.c has been fixed. Are you building 29.1 build 16 (look in commonc.h)? No matter, you can just delete the offending line from menu.c.

To build a linux 64-bit version I go to the gwnum directory:
make -f make64
cd ../linux64
make

Sometimes I have to edit the makefile and remove -lz -lxml2 from the LIBS line. I've been meaning to fix that....
Prime95 is offline   Reply With Quote
Old 2017-04-27, 23:34   #15
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

37·263 Posts
Default

Quote:
Originally Posted by Prime95 View Post
The missing forward declaration in menu.c has been fixed. Are you building 29.1 build 16 (look in commonc.h)? No matter, you can just delete the offending line from menu.c.
I'm working with the most recent download of the source code.

Quote:
Originally Posted by Prime95 View Post
To build a linux 64-bit version I go to the gwnum directory:
make -f make64
cd ../linux64
make

Sometimes I have to edit the makefile and remove -lz -lxml2 from the LIBS line. I've been meaning to fix that....
I tried that. It didn't work.
Code:
chalsall@burrow linux64]$ make -f make64
make: make64: No such file or directory
make: *** No rule to make target 'make64'.  Stop.
[chalsall@burrow linux64]$ pwd
/home/chalsall/i4l/gimps/test1/gwnum/linux64
I'm trying to work with you on this. I understand that this is not an easy exercise.
chalsall is offline   Reply With Quote
Old 2017-04-27, 23:47   #16
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2·53·71 Posts
Default

Use "make64" in ~/i4l/gimps/test1/gwnum directory.
Use "makefile" in ~/i4l/gimps/test1/linux64 directory.

Yes that is horribly inconsistent.

Note there is nothing to be done in the ~/i4l/gimps/test1/gwnum/linux64 directory
Prime95 is offline   Reply With Quote
Old 2017-04-28, 00:25   #17
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

260316 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Yes that is horribly inconsistent.
More than happy to work with you solving this problem.
chalsall is offline   Reply With Quote
Reply



All times are UTC. The time now is 08:59.


Sat Jul 17 08:59:15 UTC 2021 up 50 days, 6:46, 1 user, load averages: 1.88, 1.62, 1.49

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.