You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling version 2.5.0 on NetBSD and I got this error:
src/IniConfig.cpp: In member function 'void IniConfig::readSidplay2(iniHandler& ':
src/IniConfig.cpp:325:21: error: 'PATH_MAX' was not declared in this scope
325 | char buffer[PATH_MAX];
| ^~~~~~~~
src/IniConfig.cpp:326:18: error: 'buffer' was not declared in this scope; did you mean 'setbuffer'?
326 | snprintf(buffer, PATH_MAX, "%sSonglengths.txt", PKGDATADIR);
| ^~~~~~
| setbuffer
gmake: *** [Makefile:792: src/IniConfig.o] Error 1
The relevant source code seems to look like
#if !defined _WIN32 && defined HAVE_UNISTD_H
if (sidplay2_s.database.empty())
{
char buffer[PATH_MAX];
snprintf(buffer, PATH_MAX, "%sSonglengths.txt", PKGDATADIR);
if (::access(buffer, R_OK) == 0)
sidplay2_s.database.assign(buffer);
}
#endif
And it's not even guaranteed to be there anyway, if I interpret this wording correctly: "A definition of one of the symbolic constants in the following list shall be omitted from the <limits.h> header on specific implementations where the corresponding value is equal to or greater than the stated minimum, but where the value can vary depending on the file to which it is applied. The actual value supported for a specific pathname shall be provided by the pathconf() function."
By the way, what sound output possibilities are there? Only alsa and pulse-audio?
The text was updated successfully, but these errors were encountered:
As for the audio output, I'll investigate what is needed for the configure script to see those options. Normally, in pkgsrc, packages that are not declared as requirements are hidden from configure, to prevent surprises. I expect I will have to add some, and then it will work. Thanks!
I tried compiling version 2.5.0 on NetBSD and I got this error:
The relevant source code seems to look like
However,
PATH_MAX
isn't defined in<unistd.h>
but in<limits.h>
. See POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html andhttps://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html .
And it's not even guaranteed to be there anyway, if I interpret this wording correctly: "A definition of one of the symbolic constants in the following list shall be omitted from the <limits.h> header on specific implementations where the corresponding value is equal to or greater than the stated minimum, but where the value can vary depending on the file to which it is applied. The actual value supported for a specific pathname shall be provided by the pathconf() function."
By the way, what sound output possibilities are there? Only alsa and pulse-audio?
The text was updated successfully, but these errors were encountered: