Menu

#5 fsa-1.15.7: error: ‘getpid’ was not declared in this scope

v1.0 (example)
open
nobody
None
5
2014-08-16
2014-03-16
No

Hi,
trying to compile with gcc-4.8.1 on Linux (haven't tried other actually) I get:

''''
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -Wno-deprecated -Wall -m64 -O3 -ffast-math -O2 -pipe -maes -mpclmul -mpopcnt -march=native -DNDEBUG -c -o anchors.o anchors.cc
In file included from ../../src/fsa/anchors.h:17:0,
from anchors.cc:15:
../../src/annealing/SparseMatrix.h: In constructor ‘fsa::SparseMatrix::SparseMatrix(size_t, size_t, size_t, size_t, const Post_probs&)’:
../../src/annealing/SparseMatrix.h:241:11: warning: variable ‘yprev’ set but not used [-Wunused-but-set-variable]
int yprev = -1; // the previous y-coordinate
^
anchors.cc: In member function ‘fsa::Anchors fsa::Exonerate_adapter::call_exonerate(const string&, const string&, int) const’:
anchors.cc:791:27: error: ‘getpid’ was not declared in this scope
pid_t curr_pid = getpid();
^
anchors.cc:858:29: error: ‘fork’ was not declared in this scope
if ((exonerate_pid = fork()) < 0) { // a negative PID indicates failure
^
anchors.cc:864:49: error: ‘execv’ was not declared in this scope
if (execv (exonerate_argv[0], exonerate_argv) == -1) // replace child fork with a new process
^
anchors.cc:903:29: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if ((tokens.size() > 0) && (tokens[0] == "Command") || (tokens[0] == "Hostname:") || (tokens[0] == "Message:") || (tokens[0] == "--"))
^
anchors.cc: In member function ‘fsa::Anchors fsa::Mummer_adapter::call_mummer(const string&, const string&, size_t) const’:
anchors.cc:1049:33: error: ‘getpid’ was not declared in this scope
const pid_t curr_pid = getpid();
^
anchors.cc:1095:26: error: ‘fork’ was not declared in this scope
if ((mummer_pid = fork()) < 0) { // a negative PID indicates failure
^
anchors.cc:1101:43: error: ‘execv’ was not declared in this scope
if (execv (mummer_argv[0], mummer_argv) == -1) // replace child fork with a new process
^
Makefile:278: recipe for target 'anchors.o' failed
make[2]: *** [anchors.o] Error 1
make[2]: Leaving directory '/mnt/1TB/var/tmp/portage/sci-biology/fsa-1.15.7/work/fsa-1.15.7/src/fsa'
''''

1 Attachments

Discussion


Log in to post a comment.