Modify ↓
Opened 11 years ago
Closed 11 years ago
#261 closed defect (fixed)
Compilation error with gcc 4.7.2 and --enable-mpi
Reported by: | cjohnson@cern.ch | Owned by: | support@sherpa-mc.de |
---|---|---|---|
Priority: | minor | Milestone: | rel-2.0.0 |
Component: | Unknown | Version: | 1.4.3 |
Keywords: | Cc: |
Description
It seems that Sherpa 1.4.3 wont compile with the --enable-mpi option while using gcc 4.7.2. Its giving me this error:
CXX Sherpa.lo CXX SVN_Info.lo Sherpa.C: In member function 'bool SHERPA::Sherpa::InitializeTheRun(int, char**)': Sherpa.C:110:53: error: 'getpid' was not declared in this scope
After a Google search, I found that may have to do with the fact that getpid() was moved to <unistd.h> in gcc 4.7.2.
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Thanks for the report, this issue has been fixed in the public Sherpa 1.4.3 SVN branch as well as in our development version.