mpfr / httpd-plus

Add-ons for the OpenBSD web server
ISC License
37 stars 3 forks source link

-current build fails with scandir error #5

Open sysfu opened 1 month ago

sysfu commented 1 month ago

httpd-plus-install.log Just tried building against latest cvs sync of current (7.5) source tree using the script as per the readme instructions

Craps out with this error:

/usr/src/usr.sbin/httpd/server_file.c:549:18: error: call to undeclared function 'scandirat'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
        if ((namesize = scandirat(fd, ".", &namelist, select_visible,
                        ^
/usr/src/usr.sbin/httpd/server_file.c:549:18: note: did you mean 'scandir'?
/usr/include/dirent.h:91:5: note: 'scandir' declared here
int scandir(const char *, struct dirent ***, int (*)(const struct dirent *),
    ^
1 error generated.
*** Error 1 in /usr/src/usr.sbin/httpd (<sys.mk>:87 'server_file.o')
Restoring original sources ... Done.

Installing httpd-plus failed (exitcode: 2).
sysfu commented 1 month ago

Edited this comment from original: I reproduced the error on another fresh 7.5 system. The original version of this comment had an error that was caused by inadvertently trying build current on a 7.4-stable system, so it can be disregarded.