gnuports@2rosenthals.com Messaggio archiviato #10

Da: "Paul Smedley" <gnuports@2rosenthals.com> Intestazioni complete
Messaggio non codificato
Oggetto: Re: [GNU Ports] Building privoxy - need to specify PTHREAD_LIB - why?
Data: Tue, 01 Feb 2022 15:07:01 +1030
A: Lewis G Rosenthal <gnuports@2rosenthals.com>

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 <gnuports@2rosenthals.com>
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 <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>
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)

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Isriviti: Feed, Riassunto, Indice.
Disiscriviti
Scrivi a ListMaster