Discussion:
[privoxy-devel] build failure with --no-force
Brad
2015-01-14 23:49:58 UTC
Permalink
greetings developers,

i'm sending this to the list since i don't have a sourceforge account. i
ran into a problem building privoxy with --no-force:

cgisimple.c: In function ‘cgi_show_status’:
cgisimple.c:1052:52: error: ‘FORCE_PREFIX’ undeclared (first use in this
function)
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
^
cgisimple.c:1052:52: note: each undeclared identifier is reported only
once for each function it appears in

that makes sense. i fixed it for myself with:

--- a/cgisimple.c 2015-01-14 16:27:43.296424437 -0600
+++ b/cgisimple.c 2015-01-14 16:28:18.984427925 -0600
@@ -1049,7 +1049,9 @@
}
#endif /* ndef CGI_EDIT_ACTIONS */

+#ifdef FEATURE_FORCE_LOAD
if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
+#endif /* def FEATURE_FORCE_LOAD */

if (err)
{

hope it's useful!
Fabian Keil
2015-01-15 11:25:08 UTC
Permalink
Post by Brad
i'm sending this to the list since i don't have a sourceforge account. i
This is a known issue and has already been fixed in CVS:
http://www.privoxy.org/3.0.22/user-manual/whatsnew.html
http://ijbswa.cvs.sourceforge.net/viewvc/ijbswa/current/project.h?r1=1.208&r2=1.209&view=patch

Thanks for the report, though.

Fabian
Brad
2015-01-15 00:14:20 UTC
Permalink
dur, i meant --disable-force.

Loading...