From: "Paul Smedley" Received: from [192.168.100.201] (HELO mail.2rosenthals.com) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPS id 3012138 for gnuports@2rosenthals.com; Mon, 31 Jan 2022 23:37:21 -0500 Received: from secmgr-va.2rosenthals.com ([50.73.8.217]:39020 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 1nEkul-0004Dg-0S for gnuports@2rosenthals.com; Mon, 31 Jan 2022 23:37:11 -0500 Received: from sender-op-o11.zoho.com.au ([103.138.129.1]:46642) by mail2.2rosenthals.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nEkuh-0002UE-0D for gnuports@2rosenthals.com; Mon, 31 Jan 2022 23:37:07 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1643690223; cv=none; d=zohomail.com.au; s=zohoarc; b=0eb3eiD6SPF5m9Swyeuia1fxSFY9QZe71bnZrc0UVtgl+QAZPMzmWY70XrPfPrDraZhNwlGaTikHqsD9lgknZITlhVxFJrORqa0MGwUl3xqOkpfbKP+NHOf/UIF4nsCR0bWJ2v1pYl0Zue7gBrgamMLVbgzg1TwOy5H6h6RzNv0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com.au; s=zohoarc; t=1643690223; h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=kBr28uxSVMiWgqKXyDNuxSBFmUcdA2qXS3T++KWwyp0=; b=b/KQ/55ysfPznBGGFmXq6nM/aOr72StKJHQS44Rh4FGmSLc6j5HxoD95b6mNK504zO9RcOXqtvB1oXmPzqTKGTMlx1wNs/9jdF5+qwBTXPMh8Tywn2S+hfV6/AaUaUKOU13HwOa/m8/TsZKADuEbt+mZ9W5NcrzZLBZvpzCdFaI= ARC-Authentication-Results: i=1; mx.zohomail.com.au; dkim=pass header.i=smedley.id.au; spf=pass smtp.mailfrom=paul@smedley.id.au; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643690223; s=zmail; d=smedley.id.au; i=paul@smedley.id.au; h=Date:Subject:Message-ID:From:To:MIME-Version:Content-Type:In-Reply-To:References; bh=kBr28uxSVMiWgqKXyDNuxSBFmUcdA2qXS3T++KWwyp0=; b=JzoyMPtQ+dEMN8wasIXT/tnbz20+qm7rN9nI3rKSN1YCDPCGvaNqufluCf9n5JKj E/++bPPgI68C29AmovprxA4CPVSlEyWw1peFFM7DtQQwzBL/YS3BFFDc27bQV74IAa3 ej3cNV9Rf/IrmL/zPTxHdeoCsxfRHpNwT0ixvNpA= Received: from mail.zoho.com.au by mx.zoho.com.au with SMTP id 1643690223333133.09196669063522; Tue, 1 Feb 2022 15:37:03 +1100 (AEDT) Date: Tue, 01 Feb 2022 15:07:01 +1030 Subject: Re: [GNU Ports] Building privoxy - need to specify PTHREAD_LIB - why? Message-ID: To: Lewis G Rosenthal MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=--_com.ninefolders.hd3.email_462427134571589_alt In-Reply-To: References: User-Agent: Zoho Mail X-Mailer: Zoho Mail ----_com.ninefolders.hd3.email_462427134571589_alt Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Im assuming that on some platforms, adding -pthreads to the gcc command line causes -lpthreads to be added by gcc automatically. Cheers, Paul ________________________________ From: Lewis G Rosenthal Sent: Tuesday, 1 February 2022 15:04 To: GNU Ports for eCS Mailing List Subject: [GNU Ports] Building privoxy - need to specify PTHREAD_LIB - why? >Hi, all... > >I built (rather quickly, I might add) Privoxy 3.0.33, which is latest >stable. I was initially stuck with a bunch of undefined symbol errors for >pthread constructs, even though I did have pthread-devel installed >(0.2.6-1). (And yes, -pthread was specified in LDFLAGS.) > >In GNUmakefile, there is a section: > ># PThreads library, if needed. >PTHREAD_LIB = > >I found that I actually had to set this to the absolute path to pthread.a, >and I'm left wondering why. If pthread.a could not have been found, why >didn't configure balk at that? More importantly, why wouldn't this have been >locatable? > >Neither LD_LIBRARY_PATH nor -Lj:/usr/lib (on the gcc command line) nor >-lpthread seemed to be able to find the pthreads library. > >Here's the linker command which succeeds: > >gcc.exe -pthread -o privoxy.exe actions.o cgi.o cgiedit.o cgisimple.o >deanimate.o encode.o errlog.o \ > filters.o gateway.o jbsockets.o jcc.o list.o loadcfg.o loaders.o >miscutil.o parsers.o ssplit.o urlmatch.o \ > client-tags.o pcrs.o -llibgcc -lz -lpcre -lpcreposix >j:/usr/lib/pthread.a > >Surely, I must be missing something very simple, here, but it is escaping >me, now. > >TIA > >-- >Lewis >------------------------------------------------------------- >Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA >Rosenthal & Rosenthal, LLC www.2rosenthals.com >visit my IT blog www.2rosenthals.net/wordpress >------------------------------------------------------------- > > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >To switch to the INDEX mode, E-mail to >Send administrative queries to >To subscribe (new addresses), E-mail to: and reply to the confirmation email. >Web archives are publicly available at: http://lists.2rosenthals.com > >This list is hosted by Rosenthal & Rosenthal, LLC >P.O. Box 281, Deer Park, NY 11729-0281. Non- >electronic communications related to content >contained in these messages should be directed >to the above address. (CAN-SPAM Act of 2003) > >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > > ----_com.ninefolders.hd3.email_462427134571589_alt Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Im assuming that on some platforms, adding -pthreads to the gcc command l= ine causes -lpthreads to be added by gcc automatically.

Cheers,

Paul
<= /div>

From: Lewis G Rosenthal <gnuports@2rosenthals.com>
Sent: Tuesd= ay, 1 February 2022 15:04
To: GNU Ports for eCS Mailing List
<= b>Subject:
[GNU Ports] Building privoxy - need to specify PTHREAD_LIB -= why?

Hi, all...

I built (rather quickly, I might add) Privoxy 3.0.33, which is latest= =20
stable. I was initially stuck with a bunch of undefined symbol errors= for=20
pthread constructs, even though I did have pthread-devel installed=20
(0.2.6-1). (And yes, -pthread was specified in LDFLAGS.)

In GNUmakefile, there is a section:

# PThreads library, if needed.
PTHREAD_LIB =3D

I found that I actually had to set this to the absolute path to pthre= ad.a,=20
and I'm left wondering why. If pthread.a could not have been found, w= hy=20
didn't configure balk at that? More importantly, why wouldn't this ha= ve been=20
locatable?

Neither LD_LIBRARY_PATH nor -Lj:/usr/lib (on the gcc command line) no= r=20
-lpthread seemed to be able to find the pthreads library.

Here's the linker command which succeeds:

gcc.exe -pthread -o privoxy.exe actions.o cgi.o cgiedit.o cgisimple.= o=20
deanimate.o encode.o errlog.o \
filters.o gateway.o jbsockets.o jcc.o list.o loadcfg.o loaders.o=20
miscutil.o parsers.o ssplit.o urlmatch.o \
client-tags.o pcrs.o -llibgcc -lz -lpcre -lpcreposix=20
j:/usr/lib/pthread.a

Surely, I must be missing something very simple, here, but it is esca= ping=20
me, now.

TIA

--=20
Lewis
-------------------------------------------------------------
Lewis G Rosenthal, CNA, CLP, CLE, CWTS, EA
Rosenthal & Rosenthal, LLC www.2rosenthals.com
visit my IT blog www.2rosenthals.net/wordpress
-------------------------------------------------------------


=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D
This message is sent to you because you are subscribed to
the mailing list <gnuports@2rosenthals.com>.
To unsubscribe, E-mail to: <gnuports-off@2rosenthals.com>
To switch to the DIGEST mode, E-mail to <gnuports-digest@2rosenthals.com= >
To switch to the INDEX mode, E-mail to <gnuports-index@2rosenthals.com>
Send administrative queries to <
gnuports-request@2rosenthals.com&g= t;
To subscribe (new addresses), E-mail to: <gnuports-on@2rosenthals.com>= ; and reply to the confirmation email.
Web archives are publicly available at: http://lists.2rosenthals.com

This list is hosted by Rosenthal & Rosenthal, LLC
P.O. Box 281, Deer Park, NY 11729-0281. Non-
electronic communications related to content
contained in these messages should be directed
to the above address. (CAN-SPAM Act of 2003)

=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D


----_com.ninefolders.hd3.email_462427134571589_alt--