From: "Lewis G Rosenthal" Received: from [72.86.41.184] (account lgrosenthal@2rosenthals.com HELO [192.168.201.144]) by 2rosenthals.com (CommuniGate Pro SMTP 5.4.10) with ESMTPSA id 3012139 for gnuports@2rosenthals.com; Mon, 31 Jan 2022 23:34:11 -0500 To: GNU Ports for eCS Mailing List Subject: Building privoxy - need to specify PTHREAD_LIB - why? Organization: Rosenthal & Rosenthal, LLC Message-ID: <61F8B841.2070909@2rosenthals.com> Date: Mon, 31 Jan 2022 23:34:09 -0500 User-Agent: Mozilla/5.0 (OS/2; Warp 4.5; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 -------------------------------------------------------------