httpd-plus icon indicating copy to clipboard operation
httpd-plus copied to clipboard

-current build fails with scandir error

Open sysfu opened this issue 1 year ago • 1 comments
trafficstars

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 avatar Jul 10 '24 02:07 sysfu

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.

sysfu avatar Jul 10 '24 16:07 sysfu