NetBSD Problem Report #56913

From  Wed Jul  6 18:21:34 2022
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 1C3831A921F
	for <>; Wed,  6 Jul 2022 18:21:34 +0000 (UTC)
Message-Id: <>
Date: Wed,  6 Jul 2022 18:21:02 +0000 (UTC)
Subject: privoxy fails to start on macOS
X-Send-Pr-Version: www-1.0

>Number:         56913
>Category:       pkg
>Synopsis:       privoxy fails to start on macOS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 06 18:25:00 +0000 2022
>Originator:     Colin Simmonds
>Release:        pkgsrc from git trunk (b883e4562afaf56f74fcea3691439ca17aaafb8e)
Darwin Meiling.hitronhub.home 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64 arm64 MacBookPro18,2 Darwin

privoxy fails to start when run on my macOS machine.

With the log level turned up in the config file, I see the following in the log file:
2022-07-04 14:12:30.705 00102ee0 Error: error compiling /.*\.(gif|jpe?g|png|bmp|ico)($|\?) from /.*\.(gif|jpe?g|png|bmp|ico)($|\?): invalid argument to regex routine
2022-07-04 14:12:30.705 00102ee0 Fatal error: can't load actions file '/opt/pkg/etc/privoxy/default.action': line 624: cannot create URL or TAG pattern from: /.*\.(gif|jpe?g|png|bmp|ico)($|\?)

coming from one of the default patterns in the included default.action file
Add "privoxy=YES" to /etc/rc.conf

/etc/rc.d/privoxy start

and privoxy exits immediately with exit code 1.
I found that the problem goes away if I build it without pthreads support. In the Makefile, I commented out the lines referring to pthreads:

#PTHREAD_OPTS+=		require

#.include "../../mk/"

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.