https://bugs.kde.org/show_bug.cgi?id=434057

--- Comment #26 from Paul Floyd <pjfl...@wanadoo.fr> ---
(In reply to Mark Wielaard from comment #24)
> (In reply to Paul Floyd from comment #21)

> Does that also mean it doesn't build on Darwin?
> We can use accept on Darwin in that case. It just means it will possibly
> leak a file descriptor on exec.

No ti doesn't build

checking for the kernel version... Darwin 17.x (17.7.0) / macOS 10.13 High
Sierra

gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
-I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1
-DVGPV_amd64_darwin_vanilla=1  -I../coregrind
-DVG_LIBDIR="\"/usr/local/libexec/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" 
 -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith
-Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual
-Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers
-Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing
-fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare 
-mmacosx-version-min=10.6    -MT vgdb-vgdb.o -MD -MP -MF .deps/vgdb-vgdb.Tpo -c
-o vgdb-vgdb.o `test -f 'vgdb.c' || echo './'`vgdb.c
mv -f .deps/valgrind-launcher-darwin.Tpo .deps/valgrind-launcher-darwin.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../include -I../VEX/pub
-I../VEX/pub -DVGA_amd64=1 -DVGO_darwin=1 -DVGP_amd64_darwin=1
-DVGPV_amd64_darwin_vanilla=1  -I../coregrind
-DVG_LIBDIR="\"/usr/local/libexec/valgrind"\" -DVG_PLATFORM="\"amd64-darwin\"" 
 -arch x86_64 -O2 -g -Wall -Wmissing-prototypes -Wshadow -Wpointer-arith
-Wstrict-prototypes -Wmissing-declarations -Wcast-align -Wcast-qual
-Wwrite-strings -Wempty-body -Wformat -Wformat-security -Wignored-qualifiers
-Wenum-conversion -finline-functions -fno-stack-protector -fno-strict-aliasing
-fno-builtin -Wno-cast-align -Wno-self-assign -Wno-tautological-compare 
-mmacosx-version-min=10.6    -MT vgdb-vgdb-invoker-none.o -MD -MP -MF
.deps/vgdb-vgdb-invoker-none.Tpo -c -o vgdb-vgdb-invoker-none.o `test -f
'vgdb-invoker-none.c' || echo './'`vgdb-invoker-none.c
vgdb.c:91:32: warning: format specifies type 'long' but the argument has type
'__darwin_suseconds_t' (aka 'int') [-Wformat]
      sprintf(ptr, ".%6.6ld ", dbgtv.tv_usec);
                     ~~~~~~    ^~~~~~~~~~~~~
                     %6.6d
/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf'
  __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__)
                                                       ^~~~~~~~~~~
vgdb.c:511:51: error: use of undeclared identifier 'SOCK_CLOEXEC'
   int listen_gdb = socket(PF_INET, SOCK_STREAM | SOCK_CLOEXEC, IPPROTO_TCP);
                                                  ^
vgdb.c:540:19: warning: implicit declaration of function 'accept4' is invalid
in C99 [-Wimplicit-function-declaration]
    gdb_connect = accept4(listen_gdb, NULL, NULL, SOCK_CLOEXEC);

vgdb.c:1119:8: warning: implicit declaration of function 'pipe2' is invalid in
C99 [-Wimplicit-function-declaration]

(and a few more format warnings)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to