#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
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
(In [25837]) - Compile fixes for Fedora core 17. From Christian B. Fixes #1194.
CODING STYLE LAW (minimal inclusion principle):