From: "Dave Yeo" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPS id 3012767 for gnuports@2rosenthals.com; Tue, 01 Feb 2022 11:25:52 -0500 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:41339 helo=mail2.2rosenthals.com) by mail.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nEvyP-0007cy-0d for gnuports@2rosenthals.com; Tue, 01 Feb 2022 11:25:41 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:44996) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nEvyH-0002HA-20 for gnuports@2rosenthals.com; Tue, 01 Feb 2022 11:25:34 -0500 Received: by mail-pj1-f45.google.com with SMTP id y5-20020a17090aca8500b001b8127e3d3aso3015313pjt.3 for ; Tue, 01 Feb 2022 08:25:33 -0800 (PST) X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_2000_2999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, DATE_TZ_NA 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, FORGED_FROM_GMAIL 0.100000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SINGLE_URI_IN_BODY 0.000000, URI_WITH_PATH_ONLY 0.000000, __ANY_URI 0.000000, __BITCOIN_ADDRESS_OBFU 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __COURIER_PHRASE 0.000000, __CP_URI_IN_BODY 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FRAUD_WEBMAIL 0.000000, __FRAUD_WEBMAIL_FROM 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_GMAIL 0.000000, __FUR_HEADER 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __HTTPS_URI 0.000000, __INVOICE_MULTILINGUAL 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __PHISH_SPEAR_STRUCTURE_1 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SINGLE_URI_TEXT 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_IN_BODY 0.000000, __URI_MAILTO 0.000000, __URI_NOT_IMG 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __URI_WITH_PATH 0.000000, __USER_AGENT 0.000000, __X_GM_MESSAGE_STATE 0.000000, __X_GOOGLE_DKIM_SIGNATURE 0.000000, __X_GOOGLE_SMTP_SOURCE 0.000000, __YOUTUBE_RCVD 0.000000 X-SASI-Probability: 8% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 4.1.4, AntispamData: 2022.2.1.154217 X-SASI-Hits: BODYTEXTP_SIZE_3000_LESS 0.000000, BODY_SIZE_2000_2999 0.000000, BODY_SIZE_5000_LESS 0.000000, BODY_SIZE_7000_LESS 0.000000, DATE_TZ_NA 0.000000, DKIM_ALIGNS 0.000000, DKIM_SIGNATURE 0.000000, HTML_00_01 0.050000, HTML_00_10 0.050000, IN_REP_TO 0.000000, KNOWN_MTA_TFX 0.000000, LEGITIMATE_SIGNS 0.000000, MSG_THREAD 0.000000, REFERENCES 0.000000, SENDER_NO_AUTH 0.000000, SINGLE_URI_IN_BODY 0.000000, SXL_IP_TFX_WM 0.000000, URI_WITH_PATH_ONLY 0.000000, WEBMAIL_SOURCE 0.000000, __ANY_URI 0.000000, __BITCOIN_ADDRESS_OBFU 0.000000, __BODY_NO_MAILTO 0.000000, __BOUNCE_CHALLENGE_SUBJ 0.000000, __BOUNCE_NDR_SUBJ_EXEMPT 0.000000, __COURIER_PHRASE 0.000000, __CP_URI_IN_BODY 0.000000, __CT 0.000000, __CTE 0.000000, __CT_TEXT_PLAIN 0.000000, __DKIM_ALIGNS_1 0.000000, __DKIM_ALIGNS_2 0.000000, __DQ_NEG_HEUR 0.000000, __DQ_NEG_IP 0.000000, __FORWARDED_MSG 0.000000, __FRAUD_WEBMAIL 0.000000, __FRAUD_WEBMAIL_FROM 0.000000, __FROM_DOMAIN_NOT_IN_BODY 0.000000, __FROM_GMAIL 0.000000, __FUR_HEADER 0.000000, __FUR_RDNS_GMAIL 0.000000, __HAS_FROM 0.000000, __HAS_MSGID 0.000000, __HAS_REFERENCES 0.000000, __HEADER_ORDER_FROM 0.000000, __HTTPS_URI 0.000000, __INVOICE_MULTILINGUAL 0.000000, __IN_REP_TO 0.000000, __MAIL_CHAIN 0.000000, __MIME_TEXT_ONLY 0.000000, __MIME_TEXT_P 0.000000, __MIME_TEXT_P1 0.000000, __MIME_VERSION 0.000000, __MOZILLA_USER_AGENT 0.000000, __NO_HTML_TAG_RAW 0.000000, __PHISH_SPEAR_STRUCTURE_1 0.000000, __RDNS_WEBMAIL 0.000000, __REFERENCES 0.000000, __SANE_MSGID 0.000000, __SINGLE_URI_TEXT 0.000000, __SUBJ_ALPHA_NEGATE 0.000000, __SUBJ_REPLY 0.000000, __TO_MALFORMED_2 0.000000, __TO_NAME 0.000000, __TO_NAME_DIFF_FROM_ACC 0.000000, __TO_REAL_NAMES 0.000000, __URI_IN_BODY 0.000000, __URI_MAILTO 0.000000, __URI_NOT_IMG 0.000000, __URI_NO_WWW 0.000000, __URI_NS 0.000000, __URI_WITH_PATH 0.000000, __USER_AGENT 0.000000, __X_GM_MESSAGE_STATE 0.000000, __X_GOOGLE_DKIM_SIGNATURE 0.000000, __X_GOOGLE_SMTP_SOURCE 0.000000, __YOUTUBE_RCVD 0.000000 X-SASI-Probability: 7% X-SASI-RCODE: 200 X-SASI-Version: Antispam-Engine: 4.1.4, AntispamData: 2022.2.1.154217 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=4a6B0WozOg6w1iE76q8pc7IEbA4N5skbVQS/GWlOBmA=; b=D/5HhdQ6YFf1wLjcv1/KNFGHcXS3pz2epadQbGg4tJziPxc7dfws0D1Ns5YLw3hXiu n1kN93KjRQX3ewMY9BADSVwiM45A7o7SbUiecae14b/ymVfSMQWC9uryiYT9u+LDiGCQ o1XZITLKivvmHxbpxDgPan9+qH4vgaRgq4/fpS8gPO7+HQVSBIGsk2zcSASl2tOPIyc+ pOF9qU03J7sjaoUtfylBTCFd6J6MzbwSrd4PBvniAPU51KJjruK1ivrf6iVIN0YYLAHK tlIRYxdzqFhk1+WSreFlNyeUPZhAtmGgKUG57Qtp0ZCX2HYOOhjw2ijXmRb4WL9Bze/O zvHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=4a6B0WozOg6w1iE76q8pc7IEbA4N5skbVQS/GWlOBmA=; b=uUJXPQKQmQCC9uoBw+llkRElI9MHEY3scW3sVlQU9jX1nlOCdbGrZ8NDQDrxTvcnUO U+l3tOVbTOcQ08s25OSXG3O23WZ5xxYdM6kV/ODxJOD6z2oSVMoVI2TsNA6+O0CbTjZP chErbvrQjW9jfvHV6g4fcrwSMc1MwBuCCDyTRqkyDH4RuY8+4ZPg8iAJSYylYT6iu63Q UPPnULx0MHB2yq8ax1sHBxCumgR+INYG9k+be7jP/SJxZ66VXeqC2ea/EJID5Wh/Qx89 dLIvtDIK6akjHaIorTVjihh7KTJVD7Sl9S96anNtIgd0t9rJPsAbm2VRD7lnYTioRtP/ KI6Q== X-Gm-Message-State: AOAM530qbprzInVfsZ/m5B6S/mQ2uaKIp91N75/a+wd+7ldIhfA79Zho Vdr59QUxLONjvJ0nKeNSKL0nZExe6fg= X-Google-Smtp-Source: ABdhPJx73DzkFZlrH1wo/fRnXqdATgVYq8wGgrS/Vwr+Z3ouOY08bDiIO0Y+wQ2H9keFMQs27eUlYw== X-Received: by 2002:a05:6a00:16d3:: with SMTP id l19mr25108823pfc.7.1643732323971; Tue, 01 Feb 2022 08:18:43 -0800 (PST) Return-Path: Received: from [192.168.0.100] ([209.52.88.174]) by smtp.gmail.com with ESMTPSA id rj1sm3322654pjb.49.2022.02.01.08.18.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Feb 2022 08:18:43 -0800 (PST) Subject: Re: [GNU Ports] Building privoxy - need to specify PTHREAD_LIB - why? To: GNU Ports for eCS Mailing List References: Message-ID: Date: Tue, 1 Feb 2022 08:18:41 -0800 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02/01/22 05:24 AM, Lewis G Rosenthal wrote: > Hi, Dave... > > On 02/01/22 12:52 am, Dave Yeo wrote: >> On 01/31/22 09:12 PM, Steven Levine wrote: >>> In , on 02/01/22 >>> at 03:07 PM, "Paul Smedley" said: >>> >>> Hi guys, >>> >>>> Im assuming that on some platforms, adding -pthreads to the gcc command >>>> line causes -lpthreads to be added by gcc automatically. >>> See: >>> >>> https://stackoverflow.com/questions/2127797/significance-of-pthread-flag-when-compiling >>> >>> >>> >>> It would appear that even though our built-in specs understand >>> pthread, we >>> don't understand it quite as fully as gcc on other platforms. >> >> I see some configure scripts doing 3 or 4 pthread checks before >> deciding on the one to use for us. >> BTW, doesn't privoxy have native OS/2 threads support or was it removed? >> Dave >> > > Hmmm... Using the configure option: > > --disable-pthread > > configure gives me the following ominous message: > > checking pthread.h presence... yes > checking for pthread.h... yes > configure: WARNING: pthreads seem to be available but you are using > --disable-pthread. > configure: WARNING: This is almost always a mistake and can render > Privoxy unacceptable slow. > configure: WARNING: Also various Privoxy features only work when using > threads and won't even compile > without them. > > Compiling, I get (as a start): > > gcc.exe -c -pipe -g -O2 -Zexe -DNDEBUG -Wall cgisimple.c -o cgisimple.o > cgisimple.c: In function 'cgi_show_client_tags': > cgisimple.c:376:10: warning: implicit declaration of function > 'privoxy_mutex_lock' \ > [-Wimplicit-function-declaration] > 376 | privoxy_mutex_lock(&client_tags_mutex); > > I'm not sure what else might need to be done to use native threads vs > POSIX. I'll re-read configure as time permits. > > Thanks for the suggestion. > > PS - I'll bet this just builds fine with EMX. LOL > Actually, it used to build fine with VACPP and was the supported way. OK, looking, Version 3.0.29 removed OS/2 support, from the changelog, - Removed OS/2 support. We haven't provided OS/2 packages in years, it complicated the code and it depended on a fallback snprintf() implementation which is GPLv2 only. - Remove the fallback snprintf() implementation Now that OS/2 support is gone we no longer need it. Could probably find the commit that removed it and restore or at least see if the warpin script was in the tree. Dave