Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1194 closed Defect (fixed)

[PATCH] compile fails with gcc-4.7 on Fedora Core 17

Reported by: Christian Beer Owned by: davea
Priority: Minor Milestone: Undetermined
Component: Server - Other Version: 7.0.25
Keywords: gcc cpp make error compiling Cc:

Description

When compiling on Fedora Core 17 with gcc-4.7 the make fails at several places with something like:

error: 'unlink' was not declared in this scope
error: 'chdir' was not declared in this scope
error: 'getpid' was not declared in this scope

This can be fixed by adding

#include <unistd.h>

to the files:

tools/process_input_template.cpp
tools/create_work.cpp
sched/single_job_assimilator.cpp
vda/vda.cpp
vda/vdad.cpp

Change History (2)

comment:1 Changed 12 years ago by davea

Resolution: fixed
Status: newclosed

(In [25837]) - Compile fixes for Fedora core 17. From Christian B. Fixes #1194.

  • Fix various #include issues.

CODING STYLE LAW (minimal inclusion principle):

If foo.cpp requires <blah.h>, #include <blah.h> in foo.cpp, NOT foo.h

comment:2 Changed 12 years ago by romw

(In [25906]) - Compile fixes for Fedora core 17. From Christian B. Fixes #1194.

  • Fix various #include issues.

CODING STYLE LAW (minimal inclusion principle):

If foo.cpp requires <blah.h>, #include <blah.h> in foo.cpp, NOT foo.h

various/

various

Note: See TracTickets for help on using tickets.