Discussion:
[libtorrent] Libtorrent Posix thread Support & libgeoip
Ronald Degmar
2017-01-06 18:33:28 UTC
Permalink
Hello,

While building libtorrent I get a lot of "no" regarding Posix Thread
Support. Is this fine?

Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes
Checking for visibility support:
checking for __attribute__((visibility("hidden")))... found
yes


Also. About libgeoip. I get the following while building libtorrent as well:

checking whether to link against system libgeoip... no


How can I enable linking against libgeoip?

Regards,

Ronald Barrios
Arvid Norberg
2017-01-06 22:35:43 UTC
Permalink
Post by Ronald Degmar
Hello,
While building libtorrent I get a lot of "no" regarding Posix Thread
Support. Is this fine?
yes, you only need one way to enable threads. the normal way is:

-pthread
Post by Ronald Degmar
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes
checking for __attribute__((visibility("hidden")))... found
yes
checking whether to link against system libgeoip... no
How can I enable linking against libgeoip?
libtorrent used to come with an embedded copy of libgeoip, you don't need
to link against the *system* library to have geoip support enabled. There
is a configuration option to do so though, in case you prefer (see
./configure --help).

geoip support has been deprecated in libtorrent though, the client is
expected to use it.
--
Arvid Norberg
Ronald Degmar
2017-01-06 22:58:39 UTC
Permalink
Thanks Arvid,

That's helpful. I needed the feedback,

Ronald
Post by Ronald Degmar
Post by Ronald Degmar
Hello,
While building libtorrent I get a lot of "no" regarding Posix Thread
Support. Is this fine?
-pthread
Post by Ronald Degmar
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -lpthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether to check for GCC pthread/shared inconsistencies... yes
checking whether -lpthread fixes that... yes
checking for __attribute__((visibility("hidden")))... found
yes
checking whether to link against system libgeoip... no
How can I enable linking against libgeoip?
libtorrent used to come with an embedded copy of libgeoip, you don't need
to link against the *system* library to have geoip support enabled. There
is a configuration option to do so though, in case you prefer (see
./configure --help).
geoip support has been deprecated in libtorrent though, the client is
expected to use it.
--
Arvid Norberg
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Libtorrent-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Loading...