At least Pike-v8.0.1916 on Fedora 43 fails in src/modules/HTTPLoop/requestobject.c:
Line 693, change:
int true=1; setsockopt( a->to->fd, SOL_TCP, TCP_CORK, &true, 4 );
to: int istrue=1; setsockopt( a->to->fd, SOL_TCP, TCP_CORK, &istrue, 4 );
Same with line 796 with false, change to isfalse.
true and false are reserved words with c99. Or add -std=gnu90 flag (with gcc at least) so that true and false aren't reserved anymore. Probably changing the code is better.
Also, src/modules/_WhiteFish/blobs.c:
Change:
static void exit_blobs_struct( );
to:
static void exit_blobs_struct(struct object *o);
linkfarm.c:
Change:
static void exit_linkfarm_struct( );
to:
static void exit_linkfarm_struct(struct object *o);
These might have a gcc option to prevent this error (signatures don't match), but I don't know what it is.
Just something quick I found compiling for a new system.
i could probably just pull the latest and submit a pr...been a while since i did that though, have to go back through the procedures
On Monday, December 1, 2025 at 07:13:11 PM EST, Lance Dillon riffraff169@yahoo.com wrote:
At least Pike-v8.0.1916 on Fedora 43 fails in src/modules/HTTPLoop/requestobject.c:
Line 693, change:
int true=1; setsockopt( a->to->fd, SOL_TCP, TCP_CORK, &true, 4 );
to: int istrue=1; setsockopt( a->to->fd, SOL_TCP, TCP_CORK, &istrue, 4 );
Same with line 796 with false, change to isfalse.
true and false are reserved words with c99. Or add -std=gnu90 flag (with gcc at least) so that true and false aren't reserved anymore. Probably changing the code is better.
Also, src/modules/_WhiteFish/blobs.c:
Change:
static void exit_blobs_struct( );
to:
static void exit_blobs_struct(struct object *o);
linkfarm.c:
Change:
static void exit_linkfarm_struct( );
to:
static void exit_linkfarm_struct(struct object *o);
These might have a gcc option to prevent this error (signatures don't match), but I don't know what it is.
Just something quick I found compiling for a new system.
Hi Lance.
At least Pike-v8.0.1916 on Fedora 43 fails in src/modules/HTTPLoop/requestobject.c:
[...]
Appears to have been fixed in Pike 8.0.1996 (2025-06-06) and indirectly fixed on the development branch 2019-06-18 (Pike 8.1.14).
Also, src/modules/_WhiteFish/blobs.c:
[...]
Appears to have been fixed in Pike 8.0.1998 (2025-06-13) and fixed on the development branch 2023-05-16 (Pike 9.0.2).
linkfarm.c:
Fixed at the same time as blobs.c above.
These might have a gcc option to prevent this error (signatures don't match), but I don't know what it is.
--std=gnu89 may work around both issues.
Just something quick I found compiling for a new system.
The above indicates that an updated release of Pike 8.0 is due...
Please try one of the Pike 9.0 betas.
Thanks,
/grubba
pike-devel@lists.lysator.liu.se