Wednesday, November 01, 2023

bulk without syscall(2) results

I ran a bulk with the full diff removing syscall from libc and kernel
applied. Here's what broke or threw a warning. Running nm on .o files
in WRKDIR didn't find any unexpected 'syscall U'.

Non-Go ports with warnings or build failures. Some details at the end:

net/torsocks probably BROKEN
print/luametatex easy fix
x11/qt{5,6}/qtwebengine easy fix

Go ports that didn't build due to the linker erroring on missing syscall:

databases/influx-cli
databases/influxdb
databases/mongo-tools
devel/hub
devel/reposurgeon
games/clidle
mail/aerc
net/dendrite
net/gomuks
net/headscale
net/minio/client
net/minio/server
net/termshark
security/cfssl
security/step-ca
sysutils/beats/metricbeat
sysutils/beats/packetbeat
sysutils/chezmoi
sysutils/docker-cli
sysutils/node_exporter
sysutils/nomad
sysutils/rclone
sysutils/snmp_exporter
sysutils/telegraf
www/gitea

net/torsocks

checking for syscall... (cached) no
configure: error: "Required function not found"

This port intercepts syscall from libc via an LD_PRELOAD wrapper and
inspects arguments to decide how to act on them, i.e., wether to call
libc's version or do its won thing. It is not obvious how to fix the
approach taken in src/lib/syscall.c. This needs some serious thought.
Probably the port needs to be marked BROKEN.


print/luametatex

Doesn't seem to be linked to anything, but might be better to fix anyway:

/tmp/pobj/luametatex-2.10.08/luametatex-2.10.08/source/libraries/mimalloc/src/prim/unix/prim.c:67:10: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
return syscall(SYS_open,fpath,open_flags,0);
^
/tmp/pobj/luametatex-2.10.08/luametatex-2.10.08/source/libraries/mimalloc/src/prim/unix/prim.c:70:10: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
return syscall(SYS_read,fd,buf,bufsize);
^
/tmp/pobj/luametatex-2.10.08/luametatex-2.10.08/source/libraries/mimalloc/src/prim/unix/prim.c:73:10: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
return syscall(SYS_close,fd);
^
/tmp/pobj/luametatex-2.10.08/luametatex-2.10.08/source/libraries/mimalloc/src/prim/unix/prim.c:76:10: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
return syscall(SYS_access,fpath,mode);


x11/qt5/qtwebengine:

[4178/24967] CC obj/third_party/libusb/libusb/threads_posix.o
../../../../src/3rdparty/chromium/third_party/libusb/src/libusb/os/threads_posix.c:68:8: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
ret = syscall(SYS_getthrid);
^

x11/qt6/qtwebengine:

[5328/29733] CC obj/third_party/libusb/libusb/threads_posix.o
../../../../../qtwebengine-everywhere-src-6.5.2/src/3rdparty/chromium/third_party/libusb/src/libusb/os/threads_posix.c:68:8: warning: implicit declaration of function 'syscall' is invalid in C99 [-Wimplicit-function-declaration]
ret = syscall(SYS_getthrid);
^

No comments:

Post a Comment