Euphoria
Ticket #868:
undefined symbol in be_runtime.c
-
Reported by
coconut
Apr 14, 2013
/home/jacques/euphoria/source/be_runtime.c: In function ‘system_exec_call’: /home/jacques/euphoria/source/be_runtime.c:5078: warning: implicit declaration of function ‘WEXITSTATUS’
Details
1. Comment by jimcbrown
Apr 14, 2013
Confirmed.
2. Comment by mattlewis
Apr 14, 2013
I don't get this. WEXITSTATUS should be in stdlib.h, which is included.
On which platform are you guys getting this?
3. Comment by jimcbrown
Apr 14, 2013
I'm getting it both on intel (32bit) and arm linux builds.
My local man page claims that WEXITSTATUS is in sys/wait.h, as does http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/wait.h.html
I'm not using or defining __USE_XOPEN afaik, which seems to be required if I want to use the version in stdlib.h
4. Comment by mattlewis
Apr 14, 2013
See: hg:euphoria/rev/6dffadfdab1b
changeset: 6107:6dffadfdab1b tag: tip user: Matt Lewis date: Sun Apr 14 15:24:29 2013 -0400 files: source/be_runtime.c description:
- add sys/wait.h for WEXITSTATUS definition
- fixes ticket 868
5. Comment by mattlewis
Apr 14, 2013
I guess that's set on my system somewhere. Should be good now, with sys/wait.h.