pike issueshttps://git.lysator.liu.se/pikelang/pike/-/issues2024-03-23T16:12:33Zhttps://git.lysator.liu.se/pikelang/pike/-/issues/10149Pike doesn't build against libmysql (on MacOS)2024-03-23T16:12:33ZChris AngelicoPike doesn't build against libmysql (on MacOS)Building Pike against libmysql v10 breaks due to the removal of several deprecated functions such as https://dev.mysql.com/doc/c-api/8.0/en/mysql-shutdown.html (page does not exist in the v10 docs). This is not a problem when building ag...Building Pike against libmysql v10 breaks due to the removal of several deprecated functions such as https://dev.mysql.com/doc/c-api/8.0/en/mysql-shutdown.html (page does not exist in the v10 docs). This is not a problem when building against libmariadb (as is standard on Debian and other Linuxes now).
Have not confirmed whether every deprecated function has a query equivalent (as mysql_shutdown does).
Testing against actual libmysql on Linux was unsuccessful for other reasons and is inconclusive, so this may be a Mac-specific issue?Pike 9.0https://git.lysator.liu.se/pikelang/pike/-/issues/10070pthread_cond_timedwait() does not normalize tv_nsec2021-11-26T17:10:22ZHenrik (Grubba) Grubbströmpthread_cond_timedwait() does not normalize tv_nsec`pthread_cond_timedwait()` on several OSes (including Linux and MacOS X) apparently does not normalize `tv_nsec`. A timeout with a `tv_sec` of `0` and a `tv_nsec` value above `1000000000` seems to give a zero timeout.
Make `co_wait_time...`pthread_cond_timedwait()` on several OSes (including Linux and MacOS X) apparently does not normalize `tv_nsec`. A timeout with a `tv_sec` of `0` and a `tv_nsec` value above `1000000000` seems to give a zero timeout.
Make `co_wait_timeout()` normalize `tv_nsec`.Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/10061Add Stdio.File()->accessat() and extend predef::access() to support EUID checks2021-03-12T11:50:37ZHenrik (Grubba) GrubbströmAdd Stdio.File()->accessat() and extend predef::access() to support EUID checks`predef::access()` performs access control with the *real* uid and gid.
Sometimes you want to perform the corresponding checks, but for the *effective* uid and gid.
The `predef::access()` euid checks may be implemented with `eaccess(2/...`predef::access()` performs access control with the *real* uid and gid.
Sometimes you want to perform the corresponding checks, but for the *effective* uid and gid.
The `predef::access()` euid checks may be implemented with `eaccess(2/3)`, `eiudaccess(3)` or `faccessat(2)`, or emulated via calling of `test(1)` with suitable arguments, and should be selected via a third argument containing the character `"e"`. A suitable detection flag should also be added.
`Stdio.File()->accessat()` should be implemented with `faccessat()`. An availability flag `Stdio.__HAVE_ACCESSAT__` with a value of `1` should also be added when `Stdio.File()->accessat()` is available. The symlinks mode of `faccessat(2)` should be selectable via the third argument containing the character `"l"`.Pike Nexthttps://git.lysator.liu.se/pikelang/pike/-/issues/10064Add API to clear the signal mask for an active signal handler2023-04-13T09:14:01ZHenrik (Grubba) GrubbströmAdd API to clear the signal mask for an active signal handlerConsider code like
```
int main()
{
// Timeout if it takes too long.
signal(signum("SIGALRM"), timeout);
alarm(20);
// ...
}
void timeout()
{
// Bail out if the timeout code below hangs too.
signal(signum("SIGALRM"), _exit)...Consider code like
```
int main()
{
// Timeout if it takes too long.
signal(signum("SIGALRM"), timeout);
alarm(20);
// ...
}
void timeout()
{
// Bail out if the timeout code below hangs too.
signal(signum("SIGALRM"), _exit); // PANIC!
alarm(20);
// ...
}
```
Currently the signal handler installed by `timeout()` above will never be called as the `SIGALRM` signal is masked during the call of `timeout()`.
Add an API to clear the signal mask, so that the second signal handler works as intended.Pike Nexthttps://git.lysator.liu.se/pikelang/pike/-/issues/10082Build fails on macOS because of sed error2022-11-06T09:58:14ZDaniel NachunBuild fails on macOS because of sed errorIt appears the build system for Pike assumes the user is using GNU `sed`, and the build will fail on macOS (and likely other BSD-based systems) with this error:
`sed: RE error: illegal byte sequence`
This can be resolved by making sure...It appears the build system for Pike assumes the user is using GNU `sed`, and the build will fail on macOS (and likely other BSD-based systems) with this error:
`sed: RE error: illegal byte sequence`
This can be resolved by making sure that all invocations of `sed` in the build system are compatible with both GNU and BSD `sed`, or by checking early in the `configure` script for GNU `sed` and explicitly failing if a compatible `sed` is not found.https://git.lysator.liu.se/pikelang/pike/-/issues/10058Xcode12 fails to ./configure due to -Wimplicit-function-declaration2021-12-10T14:57:04ZMitchell BlankXcode12 fails to ./configure due to -Wimplicit-function-declarationCompiling Pike-v8.0.702 on MacOS 11 with Xcode 12 one encounters an issue common to a lot of autoconf scripts -- broken tests due to the change to `-Werror,-Wimplicit-function-declaration`
Xcode 12 decided to make this warning an error ...Compiling Pike-v8.0.702 on MacOS 11 with Xcode 12 one encounters an issue common to a lot of autoconf scripts -- broken tests due to the change to `-Werror,-Wimplicit-function-declaration`
Xcode 12 decided to make this warning an error by default in C code. One place this tends to bite in a subtle way is inside of autoconf scripts, since there a failure will usually be silent unless it causes something to be misdetected. Indeed, when building pike the build ends up failing with:
```
Configuration error: No way to set nonblocking I/O
```
If you search for `Werror` in the config.log lines you see lots and lots of examples:
```
./build/darwin-20.1.0-x86_64/modules/_Image_JPEG/config.log:conftest.c:27:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Image_TIFF/config.log:conftest.c:48:26: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:116:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:134:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:141:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:135:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:103:63: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Stdio/config.log:conftest.c:136:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_real_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Mysql/config.log:conftest.c:39:3: error: implicit declaration of function 'mysql_connect' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/system/config.log:conftest.c:116:14: error: implicit declaration of function 'setprgp' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/system/config.log:conftest.c:118:3: error: implicit declaration of function 'gethostbyname_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/system/config.log:conftest.c:118:7: error: implicit declaration of function 'gethostbyname_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/system/config.log:conftest.c:117:3: error: implicit declaration of function 'getservbyname_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/system/config.log:conftest.c:118:7: error: implicit declaration of function 'getservbyname_r' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/sybase/config.log:conftest.c:32:11: error: implicit declaration of function 'cs_ctx_alloc' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/sybase/config.log:conftest.c:33:11: error: implicit declaration of function 'ct_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_math/config.log:conftest.c:28:5: error: implicit declaration of function 'fpsetround' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/_Image_XFace/config.log:conftest.c:45:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Wnotify/config.log:conftest.c:33:3: error: implicit declaration of function 'FindFirstChangeNotification' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/modules/Wnotify/config.log:conftest.c:34:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '_bswap' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '_bswap64' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '_bit_scan_reverse' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '_bit_scan_forward' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:64:12: error: implicit declaration of function '_byteswap_ulong' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:64:12: error: implicit declaration of function '_byteswap_uint64' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '__cntlz4' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '__cntlz8' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '__cnttz4' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:12: error: implicit declaration of function '__cnttz8' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:59:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:y.tab.c:1206:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.y:42:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:y.tab.c:1206:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.y:42:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:y.tab.c:1208:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:1: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:y.tab.c:1208:16: error: implicit declaration of function 'yylex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:1: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:62:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:61:14: error: implicit declaration of function 'bar' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:174:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:168:30: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:239:3: error: implicit declaration of function 'mkdir' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:225:17: error: implicit declaration of function 'infnan' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:228:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:224:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:224:8: error: implicit declaration of function '_isnan' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:225:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:234:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:245:25: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:249:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:251:3: error: implicit declaration of function 'fpsetmask' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:252:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:255:3: error: implicit declaration of function 'fpsetround' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:256:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:253:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:253:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:245:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:259:24: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:250:3: error: implicit declaration of function 'GetSystemTimeAsFileTime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:251:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:253:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:249:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:245:42: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:245:33: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:260:17: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:245:19: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:258:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:261:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:258:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:261:7: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:255:3: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:289:8: error: implicit declaration of function 'getpid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:292:10: error: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:251:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:251:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:250:3: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:252:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:/Users/mitch/Pike-v8.0.702/src/fd_control.c:300:5: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:341:7: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:351:7: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:360:7: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:367:29: error: implicit declaration of function 'inet_addr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:416:4: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:439:7: error: implicit declaration of function 'close' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:276:3: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:258:1: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:254:14: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
./build/darwin-20.1.0-x86_64/config.log:conftest.c:8:3: error: implicit declaration of function 'testfunc2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
```
The number one cause of this type of failure is calling `exit()` without `#include <stdlib.h>` first. However, in my experience the fastest way to solve *that* particular one is to adjust the tests to just `return` from `main()` instead. E.g. here is one recent PR I made for a smaller project: https://github.com/jca02266/lha/pull/18/files
However in the case of pike there are a lot of other functions that are called without the proper header inclusion. For the time being I am going to work around it in Homebrew by adding `CFLAGS=-Wno-implicit-function-declaration` but long-term the configure.in files should be cleaned up to not generate these errors.Pike 8.0https://git.lysator.liu.se/pikelang/pike/-/issues/4045Program received signal EXC_BAD_ACCESS, Could not access memory.2009-04-16T14:11:39ZPeter BortasProgram received signal EXC_BAD_ACCESS, Could not access memory.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4045
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
This program:
```
int main(int argc, array(string) argv)
{
object sql = Sql.sql("odbc://......Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4045
Reported by Fredrik Noring, Roxen Internet Software <noring@roxen.com>
This program:
```
int main(int argc, array(string) argv)
{
object sql = Sql.sql("odbc://...");
sql->query(#"SELECT rv_cust_attribs.attrib_id,
rv_cust_attribs.attr_name,
rv_doc_attribs.value
FROM rv_doc_attribs, rv_cust_attribs
WHERE rv_doc_attribs.document_id = 279
AND rv_doc_attribs.attrib_id = rv_cust_attribs.attrib_id
AND rv_cust_attribs.attr_name = 'metadatadump'");
return 0;
}
```
gives:
```
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x00794e18 in f_fetch_row (args=25393152) at /home/distmaker/Distmaker/4.0/build
/pike.macosx/pike/src/modules/Odbc/odbc_result.c:462
462 /home/distmaker/Distmaker/4.0/build/pike.macosx/pike/src/modules/Odbc/od
bc_result.c: No such file or directory.
in /home/distmaker/Distmaker/4.0/build/pike.macosx/pike/src/modules/Odbc
/odbc_result.c
(gdb) bt
#0 0x00794e18 in f_fetch_row (args=25393152) at /home/distmaker/Distmaker/4.0/b
uild/pike.macosx/pike/src/modules/Odbc/odbc_result.c:462
#1 0x00794e14 in f_fetch_row (args=25393152) at /home/distmaker/Distmaker/4.0/b
uild/pike.macosx/pike/src/modules/Odbc/odbc_result.c:462
#2 0x00016254 in low_mega_apply (type=7949128, args=1965952, arg1=0x1dff80, arg
2=0x1837800) at /home/distmaker/Distmaker/4.0/build/pike.macosx/pike/src/apply_l
ow.h:195
#3 0x00013610 in opcode_F_CALL_OTHER (arg1=1965952) at /home/distmaker/Distmake
r/4.0/build/pike.macosx/pike/src/interpret_functions_fixed.h:1933
#4 0x007548c0 in ?? ()
#5 0x000170fc in o_catch (pc=0x783834) at /home/distmaker/Distmaker/4.0/build/p
ike.macosx/pike/src/interpret.c:1818
#6 0x0000fd28 in opcode_F_CATCH () at /home/distmaker/Distmaker/4.0/build/pike.
macosx/pike/src/interpret_functions_fixed.h:1210
#7 0x00783830 in ?? ()
#8 0x00016f9c in mega_apply (type=25393152, args=-1073745569, arg1=0x3, arg2=0x
198644cc) at /home/distmaker/Distmaker/4.0/build/pike.macosx/pike/src/interpret.
c:1774
#9 0x0007a424 in main (argc=2, argv=0xbffffe08) at /home/distmaker/Distmaker/4.
0/build/pike.macosx/pike/src/main.c:756
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7599Spurious crash in network code on OS X2015-11-30T15:03:11ZPeter BortasSpurious crash in network code on OS XImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7599
Reported by Jonas Wallden <jonasw@roxen.com>
Not sure if this can be used to pinpoint the cause. The server was started around 10.02 on a laptop with one network con...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7599
Reported by Jonas Wallden <jonasw@roxen.com>
Not sure if this can be used to pinpoint the cause. The server was started around 10.02 on a laptop with one network connection, and that laptop was put to sleep and later woken up on another network and used for ~28 minutes before dying at 10.43.
Pike was locally compiled from Pike/8.0: 2cf338966b. (Curiously it still reports as 8.0.97, but that must be a makefile issue since e.g. ADT.Heap()->remove is available and that is newer than 8.0.97.)
10:02:36 : Adding package packages/throttling.
0m 0.0s : -----------------------------------------------------------------
: Pike version: Pike v8.0 release 97
: Product version: Roxen CMS 6.0.80-git
: Operating system: Darwin 13.4.0 (x86_64)
[...]
: Start script terminating.
: Shutting down MySQL.151120 10:43:26 [Note] /scratch/mariadb-10.0.13-osx10.9-x86_64/bin/mysqld: Normal shutdown
---------
Crashed Thread: 7
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
[...]
```
Thread 7 Crashed:
0 libsystem_info.dylib 0x00007fff89dfc6ba mdns_addrinfo + 339
1 libsystem_info.dylib 0x00007fff89dfc537 search_addrinfo + 183
2 libsystem_info.dylib 0x00007fff89dfc2cc si_addrinfo + 1468
3 libsystem_info.dylib 0x00007fff89dfbc6b getaddrinfo + 171
4 pike 0x00000001001baede get_inet_addr + 430 (system.c:1974)
5 pike 0x00000001001a4318 port_bind + 280 (socket.c:271)
6 pike 0x0000000100014c96 lower_mega_apply + 1238 (interpret.c:2172)
7 pike 0x0000000100014e93 jump_opcode_F_CALL_LFUN_N + 67 (interpret_functions.h:2359)
8 ??? 0x00000001011c0401 0 + 4313580545
9 pike 0x000000010000d5ee catching_eval_instruction + 126 (interpret.c:2754)
10 pike 0x000000010000d439 inter_return_opcode_F_CATCH + 217 (interpret.c:1295)
11 ??? 0x000000010389f242 0 + 4354339394
```
[...]
Thread 7 crashed with X86 Thread State (64-bit):
rax: 0x000000010b5a24a0 rbx: 0x000000010b5a26a4 rcx: 0x0000000000001000 rdx: 0x0000000000000000
rdi: 0x00007fff72e36728 rsi: 0x0000000000000001 rbp: 0x000000010b5a2540 rsp: 0x000000010b5a2420
r8: 0x0000000000000000 r9: 0x0000000000000006 r10: 0x000000000000000a r11: 0x00000000000004e1
r12: 0x0000000000000001 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x00007fff89dfc6ba rfl: 0x0000000000010202 cr2: 0x0000000000000000Pike 8.0Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/7063The kqueue backend doesn't support out of band data.2020-03-01T15:39:35ZPeter BortasThe kqueue backend doesn't support out of band data.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7063
Reported by @grubba
The socktest.pike test "Testing out-of-band data" times out when waiting for the sent out of band data to arrive.
With OOB_DEBUG enabled on a pi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=7063
Reported by @grubba
The socktest.pike test "Testing out-of-band data" times out when waiting for the sent out of band data to arrive.
With OOB_DEBUG enabled on a pike compiled with BACKEND_DEBUG, the following is output:
```
Child: Testing out-of-band data
originator: Stdio.File("socket", "127.0.0.1:62128", 777 /* fd=9 */)
loopback: Stdio.File("socket", "127.0.0.1 62129", 777 /* fd=10 */)
[2085229328]BACKEND[0]: hook_fd_callback_box: fd 9, events 0xc, object 0x1008227d0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 9, 0, 12):
[2085229328]BACKEND[0]: fd:9 READ, ADD, [OOBAND]
[2085229328]BACKEND[0]: fd:9 WRITE, ADD
BACKEND: EV_ADD fd:9, filter:-2
BACKEND: EV_ENABLE fd:9, filter:-2
[2085229328]BACKEND[0]: hook_fd_callback_box: fd 10, events 0x4, object 0x1008227a0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 10, 0, 4):
[2085229328]BACKEND[0]: fd:10 READ, ADD, [OOBAND]
[2085229328]BACKEND[0]: Doing poll on fds:
=> 1 (timeout was: 3600)
[2085229328]BACKEND[0]: fd:9 filter:-2 flags:0x00000001 EVFILT_WRITE(146988)
[2085229328]BACKEND[0]: POLLWRBAND on 9
[2085229328]BACKEND[0]: POLLOUT on 9
[2085229328]BACKEND[0]: hooking in box for fd 9
[2085229328]BACKEND[0]: Examining box for fd 9 revents:0x000a
[2085229328]BACKEND[0]: write_oob_callback(9, 0x1008227d0)
[2085229328]BACKEND[0]: set_fd_callback_events: fd 9, events from 0xc to 0x4, object 0x1008227d0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 9, 12, 4):
[2085229328]BACKEND[0]: fd:9 WRITE, DISABLE
BACKEND: EV_DISABLE fd:9, filter:-2
S[2085229328]BACKEND[0]: set_fd_callback_events: fd 9, events from 0x4 to 0xc, object 0x1008227d0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 9, 4, 12):
[2085229328]BACKEND[0]: fd:9 WRITE, ADD
BACKEND: EV_ADD fd:9, filter:-2
BACKEND: EV_ENABLE fd:9, filter:-2
[2085229328]BACKEND[0]: set_fd_callback_events: fd 9, events from 0xc to 0x4, object 0x1008227d0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 9, 12, 4):
[2085229328]BACKEND[0]: fd:9 WRITE, DISABLE
BACKEND: EV_DISABLE fd:9, filter:-2
[2085229328]BACKEND[0]: set_fd_callback_events: fd 10, events from 0x4 to 0x4, object 0x1008227a0
[2085229328]BACKEND[0]: pdb_update_fd_set(.., 10, 4, 4):
[2085229328]BACKEND[0]: Examining box for fd -1 revents:0x0000
[2085229328]BACKEND[0]: Doing poll on fds:
[*timeout*]^C
What we can see above is that a single byte is sent on fd #9 ("S" above), but not notified on fd #10 even though it has PIKE_BIT_FD_READ_OOB (4) set.
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/6187Crash in push_grent() on OS X2012-01-25T14:21:53ZPeter BortasCrash in push_grent() on OS XImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6187
Reported by Jonas Wallden <jonasw@roxen.com>
Observed with Pike 7.8.612 (CMS 5.2.132) on OS X 10.6.8 (x86_64 build). Reportedly triggered by restarting a uid-changed...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6187
Reported by Jonas Wallden <jonasw@roxen.com>
Observed with Pike 7.8.612 (CMS 5.2.132) on OS X 10.6.8 (x86_64 build). Reportedly triggered by restarting a uid-changed Roxen via Admin interface wizard.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 roxen 0x00000001001f4385 push_grent + 197
1 roxen 0x00000001001f4940 f_getgrgid + 432
2 roxen 0x0000000100016515 eval_instruction + 14037
3 roxen 0x000000010001dcb4 catching_eval_instruction + 100
4 roxen 0x0000000100019e78 eval_instruction + 28728
5 roxen 0x000000010001ddc4 mega_apply + 212
6 roxen 0x00000001000533ff backend_do_call_outs + 767
7 roxen 0x000000010005537c f_PollDeviceBackend_cq__backtick_28_29 + 1612
8 roxen 0x0000000100011c87 low_mega_apply + 3095
9 roxen 0x00000001000150c3 eval_instruction + 8835
10 roxen 0x000000010001dcb4 catching_eval_instruction + 100
11 roxen 0x0000000100019e78 eval_instruction + 28728
12 roxen 0x000000010001ddc4 mega_apply + 212
13 roxen 0x0000000100001950 main + 2576
14 roxen 0x0000000100000eb4 start + 52
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000046 rbx: 0x0000000100600400 rcx: 0x0000000100600420 rdx: 0x0000000100600410
rdi: 0x00000001009e7401 rsi: 0x000000010025f640 rbp: 0x00007fff5fbfe4f0 rsp: 0x00007fff5fbfe4c0
r8: 0x0000000100355da8 r9: 0x0000000000000000 r10: 0x0000000000000001 r11: 0x0000000000000040
r12: 0x00000001019074fd r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x00000001019074d0
rip: 0x00000001001f4385 rfl: 0x0000000000010246 cr2: 0x0000000000000000
Disassembly of _push_grent() with offset 197 highlighted:
```
_push_grent:
00000001001f42c0 pushq %rbp
00000001001f42c1 movq %rsp,%rbp
00000001001f42c4 pushq %r15
00000001001f42c6 pushq %r14
00000001001f42c8 movq %rdi,%r14
00000001001f42cb pushq %r13
00000001001f42cd pushq %r12
00000001001f42cf pushq %rbx
00000001001f42d0 subq $0x08,%rsp
00000001001f42d4 testq %rdi,%rdi
00000001001f42d7 je 0x1001f4461
00000001001f42dd movq (%rdi),%r13
00000001001f42e0 testq %r13,%r13
00000001001f42e3 je 0x1001f43fe
00000001001f42e9 leaq 0x0006b350(%rip),%r12
00000001001f42f0 movq %r13,%rdi
00000001001f42f3 movq (%r12),%rbx
00000001001f42f7 leaq 0x10(%rbx),%rax
00000001001f42fb movq %rax,(%r12)
00000001001f42ff movw $0x0000,0x02(%rbx)
00000001001f4305 callq 0x1001fcc3e ; symbol stub for: _strlen
00000001001f430a movq %r13,%rdi
00000001001f430d movq %rax,%rsi
00000001001f4310 callq _debug_make_shared_binary_string
00000001001f4315 movw $0x0006,(%rbx)
00000001001f431a movq %rax,0x08(%rbx)
00000001001f431e movq %r12,%rsi
00000001001f4321 movq 0x08(%r14),%r12
00000001001f4325 testq %r12,%r12
00000001001f4328 je 0x1001f4437
00000001001f432e movq (%rsi),%rbx
00000001001f4331 movq %r12,%rdi
00000001001f4334 leaq 0x10(%rbx),%rax
00000001001f4338 movq %rax,(%rsi)
00000001001f433b movw $0x0000,0x02(%rbx)
00000001001f4341 callq 0x1001fcc3e ; symbol stub for: _strlen
00000001001f4346 movq %r12,%rdi
00000001001f4349 movq %rax,%rsi
00000001001f434c callq _debug_make_shared_binary_string
00000001001f4351 leaq 0x0006b2e8(%rip),%rsi
00000001001f4358 movq %rax,0x08(%rbx)
00000001001f435c movw $0x0006,(%rbx)
00000001001f4361 movq (%rsi),%rdx
00000001001f4364 movl 0x10(%r14),%eax
00000001001f4368 xorl %r13d,%r13d
00000001001f436b leaq 0x10(%rdx),%rcx
00000001001f436f movq %rcx,(%rsi)
00000001001f4372 movq %rax,0x08(%rdx)
00000001001f4376 movw $0x0008,(%rdx)
00000001001f437b movw $0x0000,0x02(%rdx)
00000001001f4381 movq 0x18(%r14),%r14
----
00000001001f4385 movq (%r14),%r12
----
00000001001f4388 testq %r12,%r12
00000001001f438b je 0x1001f43de
00000001001f438d leaq 0x0006b2ac(%rip),%r15
00000001001f4394 jmp 0x1001f43a3
00000001001f4396 nopw %cs:0x00000000(%rax,%rax)
00000001001f43a0 movq %r15,%rsi
00000001001f43a3 movq (%rsi),%rbx
00000001001f43a6 movq %r12,%rdi
00000001001f43a9 incl %r13d
00000001001f43ac leaq 0x10(%rbx),%rax
00000001001f43b0 movq %rax,(%rsi)
00000001001f43b3 movw $0x0000,0x02(%rbx)
00000001001f43b9 callq 0x1001fcc3e ; symbol stub for: _strlen
00000001001f43be movq %r12,%rdi
00000001001f43c1 movq %rax,%rsi
00000001001f43c4 callq _debug_make_shared_binary_string
00000001001f43c9 movq %rax,0x08(%rbx)
00000001001f43cd movslq %r13d,%rax
00000001001f43d0 movw $0x0006,(%rbx)
00000001001f43d5 movq (%r14,%rax,8),%r12
00000001001f43d9 testq %r12,%r12
00000001001f43dc jne 0x1001f43a0
00000001001f43de movl %r13d,%edi
00000001001f43e1 callq _debug_f_aggregate
00000001001f43e6 addq $0x08,%rsp
00000001001f43ea movl $0x00000004,%edi
00000001001f43ef popq %rbx
00000001001f43f0 popq %r12
00000001001f43f2 popq %r13
00000001001f43f4 popq %r14
00000001001f43f6 popq %r15
00000001001f43f8 leave
00000001001f43f9 jmp _debug_f_aggregate
00000001001f43fe leaq 0x0006b23b(%rip),%rsi
00000001001f4405 leaq 0x0006863c(%rip),%rax
00000001001f440c movq (%rsi),%rdx
00000001001f440f movq (%rax),%rcx
00000001001f4412 leaq 0x10(%rdx),%rax
00000001001f4416 movq %rax,(%rsi)
00000001001f4419 incl (%rcx)
00000001001f441b movw $0x0000,0x02(%rdx)
00000001001f4421 movq %rcx,0x08(%rdx)
00000001001f4425 movw $0x0006,(%rdx)
00000001001f442a movq 0x08(%r14),%r12
00000001001f442e testq %r12,%r12
00000001001f4431 jne 0x2001f432e
00000001001f4437 leaq 0x0006860a(%rip),%rax
00000001001f443e movq (%rsi),%rdx
00000001001f4441 movq (%rax),%rcx
00000001001f4444 leaq 0x10(%rdx),%rax
00000001001f4448 movq %rax,(%rsi)
00000001001f444b incl (%rcx)
00000001001f444d movw $0x0000,0x02(%rdx)
00000001001f4453 movq %rcx,0x08(%rdx)
00000001001f4457 movw $0x0006,(%rdx)
00000001001f445c jmp 0x2001f4361
00000001001f4461 leaq 0x0006b1d8(%rip),%rax
00000001001f4468 movq (%rax),%rdx
00000001001f446b leaq 0x10(%rdx),%rcx
00000001001f446f movq %rcx,(%rax)
00000001001f4472 movq $0x00000000,0x08(%rdx)
00000001001f447a movw $0x0008,(%rdx)
00000001001f447f movw $0x0000,0x02(%rdx)
00000001001f4485 addq $0x08,%rsp
00000001001f4489 popq %rbx
00000001001f448a popq %r12
00000001001f448c popq %r13
00000001001f448e popq %r14
00000001001f4490 popq %r15
00000001001f4492 leave
00000001001f4493 ret
00000001001f4494 nopw 0x00(%rax,%rax)
00000001001f449a nopw 0x00(%rax,%rax)
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/6092forkd: Failed to write spawn request2020-03-01T15:26:05ZPeter Bortasforkd: Failed to write spawn requestImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6092
Reported by Jonas Wallden <jonasw@roxen.com>
Seen on macos_x86_64:
```
: Failed to write spawn request (-1 != 434).
12:52:27 : Error in VCDir(0:0:[FOO]::...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=6092
Reported by Jonas Wallden <jonasw@roxen.com>
Seen on macos_x86_64:
```
: Failed to write spawn request (-1 != 434).
12:52:27 : Error in VCDir(0:0:[FOO]::/global/data/mf/items/3820)->update_state. Additional info:
8m 7.7s : _statcache = Stat(drwxr-xr-x 204b)
: _state = 0
: _md = 0
: status = 0
: infostat = Stat(-rw-r--r-- 89b)
12:52:27 : pike/lib/modules/Process.pmod:230: Process.Process()->create(({"/scratch/FOO/roxen/server-5.2.40/modules/sitebuilder/bin/cvs","-!","-f","-q","-d:local:/scratch/FOO/FOO.sb/cvsroot","-n","status","-v","__info"}),mapping[5])
8m 7.7s : pike/lib/modules/Process.pmod:112: Process->Process()
: modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/CVS.pike (rev 1.51):129: /scratch/FOO/roxen/server-5.2.40/modules/sitebuilder/pike-modules/VC.pmod/CVS.pmod/CVS()->command2(0,@0=({"/scratch/FOO/roxen/server-5.2.40/modules/sitebuilder/bin/cvs","-!","-f","-q","-d:local:/scratch/FOO/FOO.sb/cvsroot","-n","status","-v","__info"}),0)
```
(Customer name censored.)Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/5519Crash in backend::adjust_up()2010-06-22T18:42:09ZPeter BortasCrash in backend::adjust_up()Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5519
Reported by Jonas Wallden <jonasw@roxen.com>
Process: pike [2608]
Path: /home/jonasw/pike/7.8/build/darwin-10.2.0-i386/pike
Identifier: pike
...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5519
Reported by Jonas Wallden <jonasw@roxen.com>
Process: pike [2608]
Path: /home/jonasw/pike/7.8/build/darwin-10.2.0-i386/pike
Identifier: pike
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: sh [2538]
Date/Time: 2010-06-14 17:09:05.563 +0200
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Crashed Thread: 20
[...]
```
Thread 20 Crashed:
0 pike 0x000000010004b24a adjust_up + 58 (backend.cmod:584)
1 pike 0x000000010004e3fc f_Backend_call_out + 764 (backend.cmod:398)
2 pike 0x0000000100010bf7 low_mega_apply + 1703 (apply_low.h:388)
3 pike 0x00000001000141f0 eval_instruction + 7600 (interpret_functions.h:2065)
4 pike 0x000000010001cca2 catching_eval_instruction + 98 (interpret.c:2246)
5 pike 0x0000000100019a88 eval_instruction + 30280 (interpret_functions.h:1287)
6 pike 0x000000010001cdad mega_apply + 205 (interpret.c:2218)
7 pike 0x000000010011ad70 new_thread_func + 1584 (threads.c:1115)
8 libSystem.B.dylib 0x00007fff85f988b6 _pthread_start + 331
9 libSystem.B.dylib 0x00007fff85f98769 thread_start + 13
```
[...]
Thread 20 crashed with X86 Thread State (64-bit):
rax: 0x000000004c164615 rbx: 0x0000000103787a20 rcx: 0x0000000100b37e40 rdx: 0x00000000000004e0
rdi: 0x0000000100510400 rsi: 0x000000000000013a rbp: 0x00000001070c5760 rsp: 0x00000001070c5740
r8: 0x000000000000009c r9: 0x0000000000000000 r10: 0x00000001082505d0 r11: 0x000000000039ba29
r12: 0x0000000100510400 r13: 0x00000001096ead60 r14: 0x0000000000000139 r15: 0x000000010824fc00
rip: 0x000000010004b24a rfl: 0x0000000000010202 cr2: 0x0000000000000008
```
backend.cmod:584 contains this line in my tree:
```
if(CMP(pos, parent))Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/5509Core dump in really_free_array2010-08-17T16:13:35ZPeter BortasCore dump in really_free_arrayImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5509
Reported by Marcus Wellhardh <wellhard@roxen.com>
Roxen crashed and restarted with this error (roxen-4.5.410-release-ep-macosx_x86.sh)
```
Exception Type: EXC_...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=5509
Reported by Marcus Wellhardh <wellhard@roxen.com>
Roxen crashed and restarted with this error (roxen-4.5.410-release-ep-macosx_x86.sh)
```
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c1f0cd87
Crashed Thread: 0
Thread 0 Crashed:
0 0x0003ec9b really_free_array + 59 (array.c:125)
1 0x00047642 backend_do_call_outs + 290 (backend.cmod:1970)
2 0x00048581 low_backend_once + 993 (backend.cmod:1444)
3 0x00048a60 f_Backend_cq__backtick_28_29 + 112 (backend.cmod:1484)
4 0x00015855 low_mega_apply + 3109 (apply_low.h:195)
5 0x000178a2 opcode_F_APPLY_AND_POP + 98 (interpret_functions.h:1878)
6 0x010b37cb 0 + 17512395
7 0x00017ee8 o_catch + 232 (interpret.c:1831)
8 0x00017f9d opcode_F_CATCH + 61 (interpret_functions.h:1195)
9 0x010b377d 0 + 17512317
10 0x00016235 mega_apply + 101 (interpret.c:1787)
11 0x00018bf7 apply + 55 (interpret.c:2095)
12 0x00083f93 main + 2579 (main.c:757)
13 0x00001eb2 _start + 216
14 0x00001dd9 start + 41
```Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4868Sporadic crashes in opcode_F_ARROW2015-03-30T18:01:32ZPeter BortasSporadic crashes in opcode_F_ARROWImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4868
Reported by Jonas Wallden <jonasw@roxen.com>
This is a Pike on OS X/PPC problem that's been observed repeatedly over a long period of time in 7.8. It's happening dur...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4868
Reported by Jonas Wallden <jonasw@roxen.com>
This is a Pike on OS X/PPC problem that's been observed repeatedly over a long period of time in 7.8. It's happening during startup of Roxen CMS and normally disappears on next restart.
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000001e
```
Thread 0 Crashed:
0 <<00000000>> 0x03000df8 0 + 50335224
1 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
2 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
3 roxen 0x00016368 opcode_F_ARROW + 104 (interpret_functions.h:1842)
4 <<00000000>> 0x03001a30 0 + 50338352
5 roxen 0x0001f860 apply_low_safe_and_stupid + 820 (interpret.c:2404)
6 roxen 0x0014e19c eval_low + 256 (las.c:5270)
7 roxen 0x00157fd8 optimize + 1956 (las.c:1988)
8 roxen 0x0015ed6c dooptcode + 132 (las.c:5196)
9 roxen 0x00005f6c yyparse + 9396 (language.yacc:1087)
10 roxen 0x001047dc run_pass2 + 736 (program.c:3628)
11 roxen 0x00106490 f_compilation_compile + 824 (program.c:8563)
12 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
13 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
14 roxen 0x000eff2c f_compilation_env_compile + 124 (program.c:7677)
15 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
16 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
17 <<00000000>> 0x01297c2c 0 + 19495980
18 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
19 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
20 <<00000000>> 0x007fe6bc 0 + 8382140
21 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
22 roxen 0x0014743c svalue_is_true + 308 (svalue.c:550)
23 roxen 0x00013c50 test_opcode_F_BRANCH_WHEN_ZERO + 96 (interpret_functions.h:1118)
24 <<00000000>> 0x010ea894 0 + 17737876
25 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
26 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
27 <<00000000>> 0x010ed240 0 + 17748544
28 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
29 roxen 0x000dd05c object_index_no_free + 320 (object.c:1374)
30 roxen 0x000ebdf4 f_index + 132 (operators.c:181)
31 roxen 0x00154628 index_node + 1204 (las.c:1672)
32 roxen 0x0000c548 yyparse + 35472 (language.yacc:3897)
33 roxen 0x00105e84 run_pass1 + 912 (program.c:8030)
34 roxen 0x00106404 f_compilation_compile + 684 (program.c:8542)
35 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
36 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
37 roxen 0x000eff2c f_compilation_env_compile + 124 (program.c:7677)
38 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
39 roxen 0x0001c5c4 mega_apply + 168 (interpret.c:2211)
40 <<00000000>> 0x01299658 0 + 19502680
41 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
42 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
43 <<00000000>> 0x021d7f00 0 + 35487488
44 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
45 roxen 0x000e6f90 o_cast + 2148 (operators.c:687)
46 roxen 0x000e7ac4 f_cast + 72 (operators.c:913)
47 <<00000000>> 0x02a39628 0 + 44275240
48 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
49 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
50 <<00000000>> 0x021bd72c 0 + 35378988
51 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
52 roxen 0x00053e8c backend_do_call_outs + 1024 (backend.cmod:876)
53 roxen 0x00055ee0 f_PollDeviceBackend_cq__backtick_28_29 + 1780 (backend.cmod:3406)
54 roxen 0x0001b2f8 low_mega_apply + 2244 (apply_low.h:388)
55 roxen 0x0001edb4 jump_opcode_F_CALL_FUNCTION_AND_POP + 100 (interpret_functions.h:2068)
56 <<00000000>> 0x012ab138 0 + 19575096
57 roxen 0x000186f0 catching_eval_instruction + 160 (interpret.c:2246)
58 roxen 0x0001fb5c jump_opcode_F_CATCH + 412 (interpret_functions.h:1287)
59 <<00000000>> 0x012a9d90 0 + 19570064
60 roxen 0x0001c5dc mega_apply + 192 (interpret.c:2218)
61 roxen 0x00002d04 main + 3096 (main.c:621)
62 roxen 0x00001d0c _start + 760
63 roxen 0x00001a10 start + 48
```
Thread 0 crashed with PPC Thread State 64:
srr0: 0x0000000003000df8 srr1: 0x100000000200f030 vrsave: 0x0000000000000000
cr: 0x42008444 xer: 0x0000000000000000 lr: 0x000000000000f3d0 ctr: 0x0000000003000df4
r0: 0x000000000001c5dc r1: 0x00000000bfff6df0 r2: 0x0000000000294660 r3: 0x0000000003000df4
r4: 0x00000000000000dc r5: 0x00000000000186a0 r6: 0x0000000000000006 r7: 0x0000000000000000
r8: 0x0000000000294660 r9: 0x0000000000294660 r10: 0x0000000000000013 r11: 0x000000000000000a
r12: 0x0000000000000012 r13: 0x000000000000011a r14: 0x0000000000000000 r15: 0x0000000000294660
r16: 0x00000000002ace14 r17: 0x0000000000000018 r18: 0x00000000ffffffff r19: 0x0000000001817ed0
r20: 0x0000000000000000 r21: 0x0000000000000000 r22: 0x0000000000000449 r23: 0x0000000001e0add8
r24: 0x0000000000000008 r25: 0x0000000000000000 r26: 0x0000000000000016 r27: 0x0000000001d8c9d8
r28: 0x00000000bfff6f50 r29: 0x0000000000294660 r30: 0x0000000003000df4 r31: 0x000000000000f3d0
The corresponding startup log for Roxen says:
Enabling all modules for Test Platform...
Start script terminating.
For historical reference, this is the crash I caught back in Sept 2008 (from InfoKOM 629415). The topmost stack frames are a bit different but opcode_F_ARROW and below is more or less identical:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000048bbc606
Crashed Thread: 0
```
Thread 0 Crashed:
0 ??? 0x023fb9d8 0 + 37730776
1 pike 0x00016a6c opcode_F_ARROW + 100 (interpret_functions.h:1843)
2 pike 0x0001f8f4 apply_low_safe_and_stupid + 816 (interpret.c:2391)
3 pike 0x0014ac54 eval_low + 252 (las.c:5270)
4 pike 0x00154ac0 optimize + 1976 (las.c:1989)
5 pike 0x0015b84c dooptcode + 128 (las.c:5196)
6 pike 0x000068e8 yyparse + 9408 (language.yacc:1080)
7 pike 0x00101a40 run_pass2 + 732 (program.c:8011)
8 pike 0x001036f4 f_compilation_compile + 820 (program.c:8474)
9 pike 0x0001b494 low_mega_apply + 2104 (apply_low.h:225)
10 pike 0x0001c67c mega_apply + 164 (interpret.c:2201)
11 pike 0x000ed3d8 f_compilation_env_compile + 120 (program.c:7589)
12 pike 0x0001b494 low_mega_apply + 2104 (apply_low.h:225)
13 pike 0x0001c67c mega_apply + 164 (interpret.c:2201)
14 ??? 0x0067cc28 0 + 6802472
15 pike 0x00018a20 catching_eval_instruction + 96 (interpret.c:2233)
16 pike 0x0001fc20 jump_opcode_F_CATCH + 456 (interpret_functions.h:1287)
[...]
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4855"Bad offset" when generating backtrace2009-06-17T17:42:07ZPeter Bortas"Bad offset" when generating backtraceImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4855
Reported by Jonas Wallden <jonasw@roxen.com>
```
class Abstract {
void foo();
}
void main()
{
Abstract()->foo();
}
ceylon:~ $ ~/pike/7.8/bin/pike ~/bad-offset...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4855
Reported by Jonas Wallden <jonasw@roxen.com>
```
class Abstract {
void foo();
}
void main()
{
Abstract()->foo();
}
ceylon:~ $ ~/pike/7.8/bin/pike ~/bad-offset.pike
Bad offset: pc:0x6d2194 program:0x6d2198 (0x0)
Calling undefined function.
/main()->Abstract: /main()->Abstract()->foo()
bad-offset.pike:7: /main()->main()
```Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4649BACKPORT: sendfile truncation issue (Was: Files exceeding proto cache size ar...2009-04-16T14:11:39ZPeter BortasBACKPORT: sendfile truncation issue (Was: Files exceeding proto cache size are corrupted)Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4649
Reported by Jonas Wallden <jonasw@roxen.com>
Requesting a file whose size is bigger than the protocol cache threshold will not be sent completely.
Both Safari and Fi...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4649
Reported by Jonas Wallden <jonasw@roxen.com>
Requesting a file whose size is bigger than the protocol cache threshold will not be sent completely.
Both Safari and Firefox will stall and later give up with bytes missing at the end of the file (a few
hundred missing bytes is the normal case).
The same test works fine in 4.5.Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4605Comparing NaN with bignums yields FPE2009-11-17T19:08:26ZPeter BortasComparing NaN with bignums yields FPEImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4605
Reported by Martin Karlgren <marty@roxen.com>
```
Pike v7.4 release 528 running Hilfe v3.5 (Incremental Pike Frontend)
> float kNAN = sscanf("\x7f\xf8\0\0\0\0\0\0", ...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4605
Reported by Martin Karlgren <marty@roxen.com>
```
Pike v7.4 release 528 running Hilfe v3.5 (Incremental Pike Frontend)
> float kNAN = sscanf("\x7f\xf8\0\0\0\0\0\0", "%8F", float _NAN) && _NAN;
> pow(2, 32) > kNAN;
Floating point exception
```
$ uname -a
Darwin gabrielle.roxen.com 9.3.0 Darwin Kernel Version 9.3.0: Fri May 23
00:49:16 PDT 2008; root:xnu-1228.5.18~1/RELEASE_I386 i386Pike 7.4Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4465Pike-7.7 fails to build on MacOSX (Darwin 9.1.0) PPC2009-11-19T15:08:41ZPeter BortasPike-7.7 fails to build on MacOSX (Darwin 9.1.0) PPCImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4465
Reported by Philip Yi, Self <philipyi@mac.com>
Build loops on processing Gmp module. Attached is the last part of huge compilelog.txtImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4465
Reported by Philip Yi, Self <philipyi@mac.com>
Build loops on processing Gmp module. Attached is the last part of huge compilelog.txtPike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/4464Pike-7.6 Does Not Build on MacOSX (Darwin 9.1.0) PPC2009-04-16T14:11:39ZPeter BortasPike-7.6 Does Not Build on MacOSX (Darwin 9.1.0) PPCImported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4464
Reported by Philip Yi, Self <philipyi@mac.com>
Please see the Pikefarm result under machine iMac.local.Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4464
Reported by Philip Yi, Self <philipyi@mac.com>
Please see the Pikefarm result under machine iMac.local.Pike 7.6Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbströmhttps://git.lysator.liu.se/pikelang/pike/-/issues/3948GLUT module dependencies fail on Mac OS X.3.92020-03-01T14:50:48ZPeter BortasGLUT module dependencies fail on Mac OS X.3.9Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3948
Reported by Hermann Kruud, <hermannkruud@yahoo.co.uk>
When building Pike v7.7 release 21 (also v7.6 release 24 and v7.4 release
25) on Mac OS X.3.9 the output regard...Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3948
Reported by Hermann Kruud, <hermannkruud@yahoo.co.uk>
When building Pike v7.7 release 21 (also v7.6 release 24 and v7.4 release
25) on Mac OS X.3.9 the output regarding the GLUT module is:
configure: configuring in GLUT
configure: running /bin/bash -norc
'/Users/kruud/Sources/Pike/7.7/src/post_modules/GLUT/configure'
--prefix=/usr/local/pike '--prefix=/usr/local/pike' '--with-debug'
'CC=/usr/bin/gcc' 'CFLAGS=-I/sw/include -I/usr/X11R6/include
-I/usr/local/include' 'CPPFLAGS=-I/sw/include -I/usr/X11R6/include
-I/usr/local/include' 'LDFLAGS=-L/sw/lib -L/usr/X11R6/lib -L/usr/local/lib'
'--cache-file=.././config.cache'
'--srcdir=/Users/kruud/Sources/Pike/7.7/src/post_modules'
--cache-file=../.././config.cache
--srcdir=/Users/kruud/Sources/Pike/7.7/src/post_modules/GLUT
configure: loading cache ../.././config.cache
###################################################
## Configuring module: GLUT
## Installation dir:
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether /Users/kruud/Sources/Pike/7.7/bin/smartlink
/usr/bin/gcc accepts -g... (cached) yes
checking for /Users/kruud/Sources/Pike/7.7/bin/smartlink /usr/bin/gcc
option to accept ANSI C... (cached) none needed
checking if we are using TCC (TenDRA C Compiler)... (cached) no
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for X... (cached) libraries /usr/X11R6/lib, headers
/usr/X11R6/include
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/stubs.h... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
X_CFLAGS: -I/usr/X11R6/include
X_LIBS: -L/usr/X11R6/lib
X_EXTRA_LIBS:
X_PRE_LIBS: -lSM -lICE
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking GLUT/glut.h usability... yes
checking GLUT/glut.h presence... yes
checking for GLUT/glut.h... yes
checking for XDrawPoint in -lX11... yes
checking for XShmPutImage in -lXext... yes
checking for XmuStandardColormap in -lXmu... yes
checking for glOrtho in -lGL... yes
checking for glOrtho in -lOpenGL... no
checking for glOrtho in -lMesaGL... no
checking for gluCylinder in -lGLU... yes
checking for gluCylinder in -lMesaGLU... no
checking for XOpenDevice in -lXinput... no
checking for XOpenDevice in -lXi... yes
checking for glutSolidTeapot in -lglut... no
checking for glutSolidTeapot in GLUT.framework... no
checking for glutEnterGameMode... no
checking for glutForceJoystickFunc... no
checking for glutGameModeGet... no
checking for glutGameModeString... no
checking for glutIgnoreKeyRepeat... no
checking for glutInitDisplayString... no
checking for glutJoystickFunc... no
checking for glutKeyboardUpFunc... no
checking for glutLeaveGameMode... no
checking for glutPostWindowOverlayRedisplay... no
checking for glutPostWindowRedisplay... no
checking for glutReportErrors... no
checking for glutSetKeyRepeat... no
checking for glutSpecialUpFunc... no
checking whether make sets $(MAKE)... (cached) yes
checking for the Pike base directory... /Users/kruud/Sources/Pike/7.7/src
updating cache ../.././config.cache
configure: creating ./config.status
config.status: creating make_variables
config.status: creating Makefile
config.status: creating config.h
config.status: executing default commands
Eventually the GLUT module doesn't compile:
GLUT................ no (dependencies failed)Pike 7.8Henrik (Grubba) GrubbströmHenrik (Grubba) Grubbström