On Sat, Jun 01, 2002 at 01:02:44PM -0600, James Yonan wrote:
> This beta revamps SIGUSR1 signal processing to make it like SIGHUP except
> with more fine-grained control over which OpenVPN subsystems are reset.  It
> also allows a SIGUSR1 to be generated internally based on --ping
> and --ping-restart.  The goal is to make OpenVPN as robust as possible on
> dynamic networks where DHCP, NAT, and firewalls must all be negotiated in a
> dynamic context.  The --persist-tun option allows a reset without closing
> and reopening the tun device (which allows seamless connectivity through the
> tunnel across DHCP resets).  The --persist-ip option allows for preservation
> of remote IP address across DHCP resets.  This allows both OpenVPN peers to
> be DHCP clients.
> 
> Also changed is the pthread handling in the configure script.  The script
> now uses the ACX_PTHREAD macro from the autoconf macro archive to
> intelligently figure out which cc/gcc option to use when building with POSIX
> thread support.  Some problems were reported when trying to build OpenVPN
> with pthread support using gcc3.
> 
> * Added ACX_PTHREAD (from the autoconf
>   macro archive) to configure.ac
>   to figure out the right pthread
>   options for a given platform.

Hi James,

I some archs in Debian build binary packages using gcc3, the following
patch solved the problem:

--- openvpn-1.2.0.orig/configure
+++ openvpn-1.2.0/configure
@@ -9716,7 +9716,7 @@
                CFLAGS="$CFLAGS -pthread"
                ;;
          *)
-               CFLAGS="$CFLAGS -pthread"
+               CFLAGS="$CFLAGS -lpthread"
                ;;
          esac

--- openvpn-1.2.0.orig/configure.ac
+++ openvpn-1.2.0/configure.ac
@@ -284,7 +284,7 @@
                CFLAGS="$CFLAGS -pthread"
                ;;
          *)
-               CFLAGS="$CFLAGS -pthread"
+               CFLAGS="$CFLAGS -lpthread"
                ;;


The new configure* scripts work flawlessly :-)

Regards,

Alberto

-- 
Alberto Gonzalez Iniesta       | They that give up essential liberty
a...@agi.as                     | to obtain a little temporary safety
Encrypted mail preferred       | deserve neither liberty nor safety.

Key fingerprint = 9782 04E7 2B75 405C F5E9  0C81 C514 AF8E 4BA4 01C3

Reply via email to