MantisBT - Zandronum
View Issue Details
0002815Zandronum[All Projects] Bugpublic2016-08-23 11:492016-08-23 15:47
DrinkyBird 
Torr Samaho 
normalminoralways
needs reviewopen 
FreeBSD10.3-RELEASE
 
 
0002815: Include <sys/wait.h> in sdl/i_system.cpp
The lack of this include is the only thing preventing Zandronum compiling without errors on FreeBSD.
Compile a fresh clone of Zandronum under FreeBSD and get this error:

[ 36%] Building CXX object src/CMakeFiles/zdoom.dir/sdl/i_system.o
/root/zandronum/src/sdl/i_system.cpp: In function 'int I_PickIWad(WadStuff*, int, bool, int)':
/root/zandronum/src/sdl/i_system.cpp:697:23: error: 'WIFEXITED' was not declared in this scope
    if(WIFEXITED(status) && (WEXITSTATUS(status) == 0 || WEXITSTATUS(status) == 1))
                       ^
/root/zandronum/src/sdl/i_system.cpp:697:47: error: 'WEXITSTATUS' was not declared in this scope
    if(WIFEXITED(status) && (WEXITSTATUS(status) == 0 || WEXITSTATUS(status) == 1))
<sys/wait.h> is a standard POSIX header, so it shouldn't cause issues on Linux or other POSIX platforms.
No tags attached.
Issue History
2016-08-23 11:49DrinkyBirdNew Issue
2016-08-23 11:51DrinkyBirdNote Added: 0015521
2016-08-23 14:32DuskNote Added: 0015522
2016-08-23 14:32DuskAssigned To => Torr Samaho
2016-08-23 14:32DuskStatusnew => needs review
2016-08-23 14:36Edward-sanNote Added: 0015523
2016-08-23 14:37Edward-sanNote Edited: 0015523bug_revision_view_page.php?bugnote_id=15523#r9450
2016-08-23 15:36Edward-sanNote Edited: 0015523bug_revision_view_page.php?bugnote_id=15523#r9451
2016-08-23 15:47DrinkyBirdNote Added: 0015524

Notes
(0015521)
DrinkyBird   
2016-08-23 11:51   
Uh, I should have marked this as a suggestion, not a bug. Oh well.
(0015522)
Dusk   
2016-08-23 14:32   
ZDoom fixed it in this changeset.
(0015523)
Edward-san   
2016-08-23 14:36   
(edited on: 2016-08-23 15:36)
ZDoom fixed it and zandronum-zdoom-sync added it with this changeset. The problem is that the path to i_system.cpp is different (src/posix/i_system.cpp against src/sdl/i_system.cpp).


Also, is that really the only error? I see that there are other zdoom fixes as well:

'https://bitbucket.org/Torr_Samaho/zandronum-zdoom-sync/commits/cf6dc04d4170 [^]'
'https://bitbucket.org/Torr_Samaho/zandronum-zdoom-sync/commits/7c6e85b9eaf8 [^]'
'https://bitbucket.org/Torr_Samaho/zandronum-zdoom-sync/commits/7fc685d96943 [^]' (conflicting paths as well)

[edit]ninja'd. would be nice if the tracker could hold pushing comments when new and unread comments appear..

(0015524)
DrinkyBird   
2016-08-23 15:47   
The tip of the default branch compiles fine (excluding the <sys/wait.h> error) on FreeBSD 10.3 using GCC 5.4.0, and I don't know what setup the person who made those other commits used, or whatever G/ZDoom made changes after the revision 3.0 is based on to require those commits.