tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kill() not found



Hi!

I'm compiling mame-0.171 and seeing

Compiling src/osd/modules/lib/osdlib_unix.cpp...
../../../../../src/osd/modules/lib/osdlib_unix.cpp: In function 'void osd_process_kill()':
../../../../../src/osd/modules/lib/osdlib_unix.cpp:50:24: error: 'kill' was not declared in this scope
  kill(getpid(), SIGKILL);
                        ^
ocore_sdl.make:346: recipe for target '../../../../netbsd/obj/x64/Release/ocore_sdl/src/osd/modules/lib/osdlib_unix.o' failed


The package is using the gcc53 package from pkgsrc, .work.log contains:

[*] c++ -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/SDL2 -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/SDL2 -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/SDL2 -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -MMD -MP -MP -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DUSE_SYSTEM_JPEGLIB -DUSE_SYSTEM_SQLITE -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_XAUDIO2=0 -DUSE_NETWORK -DOSD_NET_USE_PCAP -DSDLMAME_X11 -DUSE_XINPUT=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSYNC_IMPLEMENTATION=ntc -DSDLMAME_UNIX -I/usr/X11/include -I/usr/X11R6/include -I/usr/openwin/include -I../../../../../3rdparty/bx/include/compat/freebsd -I../../../../../src/emu -I../../../../../src/osd -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../src/osd/sdl -m64 --pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -D_NETBSD_SOURCE -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds -m64 -I/usr/pkg/include/SDL2 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg/include -I/usr/pkg/include/freetype2 -x c++ -std=c++14 -Woverloaded-virtual -include /scratch/emulators/mame/work/mame-mame0171/src/osd/sdl/sdlprefix.
h -o ../../../../netbsd/obj/x64/Release/ocore_sdl/src/osd/modules/lib/osdlib_unix.o -c ../../../../../src/osd/modules/lib/osdlib_unix.cpp
<.> /scratch/emulators/mame/work/.gcc/bin/g++ -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -I/scratch/emulators/mame/work/.buildlink/include -I/scratch/emulators/mame/work/.buildlink/include/SDL2 -I/scratch/emulators/mame/work/.buildlink/include/libdrm -I/scratch/emulators/mame/work/.buildlink/include/freetype2 -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -MMD -MP -MP -DPTR64=1 -DNDEBUG -DCRLF=2 -DLSB_FIRST -DUSE_SYSTEM_JPEGLIB -DUSE_SYSTEM_SQLITE -DNATIVE_DRC=drcbe_x64 -DLUA_COMPAT_ALL -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DUSE_XAUDIO2=0 -DUSE_NETWORK -DOSD_NET_USE_PCAP -DSDLMAME_X11 -DUSE_XINPUT=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSYNC_IMPLEMENTATION=ntc -DSDLMAME_UNIX -I../../../../../3rdparty/bx/include/compat/freebsd -I../../../../../src/emu -I../../../../../src/osd -I../../../../../src/lib -I../../../../../src/lib/util -I../../../../../src/osd/sdl -m64 --pipe -Wno-deprecated-declarations -O3 -fno-strict-aliasing -D_NETBSD_SOURCE -Wno-unknown-pragmas -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -Wno-unused-result -Wno-array-bounds -m64 -D_REENTRANT -D_THREAD_SAFE -x c++ -std=c++14 -Woverloaded-virtual -include /scratch/emulators/mame/work/mame-mame0171/src/osd/sdl/sdlprefix.h -o ../../../../netbsd/obj/x64/Release/ocore_sdl/src/osd/modules/lib/osdlib_unix.o -c ../../../../../src/osd/modules/lib/osdlib_unix.cpp

signal.h has
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
    defined(_NETBSD_SOURCE)
int     kill(pid_t, int);

and as you can see above, I've already manually added _NETBSD_SOURCE
to the command line in the hope it would fix this, but it didn't.

Does anyone have an idea why I get that error or how to fix it?
 Thomas


Home | Main Index | Thread Index | Old Index