Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41084 - Add pthread support to OpenVPN
Summary: Add pthread support to OpenVPN
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Warp Zero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 00:33 UTC by Tom Barcellona
Modified: 2004-03-15 21:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Barcellona 2004-02-10 00:33:43 UTC
OpenVPN stock ebuild does not compile with pthread support enabled. Enabling pthread support will allow OpenVPN to offload the rekeying functions to a separate thread that can be more effectively managed; thereby allowing the main OpenVPN process to focus more on important connection-related tasks, and allow the CPU-intensive-but-not-urgent rekeying functions to be given a lower priority.

Bottom line, better performance with it.

Reproducible: Always
Steps to Reproduce:
1.Emerge OpenVPN.
2.Set the --nice-work swith to something
3. Watch OpenVPN tell you that pthread support is not enabled.

Actual Results:  
It told me there was no pthread support.

Expected Results:  
It should have not given me an error message. 

I'm not smart enough to figure out how to rewrite the ebuild to do this.
Otherwise, I would have included a fix. I experimented a bit with running
./configure --enable-pthread by hand and trying to ebuild merge from there, but
portage wants to rebuild from scratch. (usually that works) I did get this
output from running ./configure --enable-pthread by hand:
configure: checking for pthread 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 -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT

Is pthread already installed somewhere? Does it have to be?
Comment 1 Warp Zero (RETIRED) gentoo-dev 2004-02-11 15:53:16 UTC
pthreads is a part of glibc.
Comment 2 Tom Barcellona 2004-02-11 20:57:14 UTC
Ok, how difficult will it be to add support for it to the ebuild?
Comment 3 Tom Barcellona 2004-02-12 12:38:37 UTC
Sorry, I should have probably said that pthread support can be enabled with:

./configure --enable-pthread

in the compilation stage. I just don't know how to do that in an ebuild, and i couldn't readily figure it out by looking at the ebuild itself.
Comment 4 Warp Zero (RETIRED) gentoo-dev 2004-03-15 19:13:28 UTC
Okay I added support for this with USE="pthreads".
Comment 5 Tom Barcellona 2004-03-15 21:35:09 UTC
That did it! Thank you much. Am I supposed to close this bug out, or just leave it?