[MacPorts] #22689: openvpn2-2.0.9 Compiling with gcc-4.2 leads to wrong behaviour
#22689: openvpn2-2.0.9 Compiling with gcc-4.2 leads to wrong behaviour ------------------------------------------------+--------------------------- Reporter: wickedguitar6@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: openvpn2, default_gateway, gcc-4.0 | Port: openvpn2 ------------------------------------------------+--------------------------- There is a bug which leads to wrong detection of the default_gateway (0.0.0.0) when the three following conditions apply: 1) openvpn2-2.0.9 is compiled with gcc-4.2 (the default on Mac OS X 10.6) 2) It is used as a client 3) 'push "redirect-gateway def1"' is used on the server side (e.g. a linux-box) When the openvpn-2.0.9 is compiled with gcc-4.0 the bug does not occur. Default_gateway is detected correctly. However the gcc-4.0 compiler is not aware of the lzo2 library and openvpn must be configured with "--disable- lzo". -- Ticket URL: <http://trac.macports.org/ticket/22689> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling with gcc-4.2 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: openvpn2 -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: wickedguitar6@…, pmq@… (removed) * keywords: openvpn2, default_gateway, gcc-4.0 => * owner: macports-tickets@… => pmq@… -- Ticket URL: <http://trac.macports.org/ticket/22689#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling with gcc-4.2 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: | Port: openvpn2 -------------------------------------+-------------------------------------- Comment(by wickedguitar6@…): The problem seems to be irrelevant to the version of the gcc compiler used. However, it is relevant to whether the executable is compiled for "i386" or "x86_64" architecture. By default gcc-4.2 produces x86_64 executables and the gcc-4.0 i386 ones. When compiled as x86_64 executable it is unable to find the default_gateway on the system. -- Ticket URL: <http://trac.macports.org/ticket/22689#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: LP64 | Port: openvpn2 -------------------------------------+-------------------------------------- Changes (by jmr@…): * keywords: => LP64 -- Ticket URL: <http://trac.macports.org/ticket/22689#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: LP64 | Port: openvpn2 -------------------------------------+-------------------------------------- Changes (by jmr@…): * cc: jordiyeh@… (removed) Comment: Is this still a problem with 2.1.1? -- Ticket URL: <https://trac.macports.org/ticket/22689#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: pmq@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: LP64 | Port: openvpn2 -------------------------------------+-------------------------------------- Comment(by cruoho@…): This problem still exists as of 2.2.0. -- Ticket URL: <https://trac.macports.org/ticket/22689#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: LP64 | Port: openvpn2 -------------------------------------+-------------------------------------- Changes (by pmq@…): * owner: pmq@… => macports-tickets@… Comment: Stepping down for maintainership as I'm not using this anymore. -- Ticket URL: <https://trac.macports.org/ticket/22689#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour -------------------------------------+-------------------------------------- Reporter: wickedguitar6@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Keywords: LP64 | Port: openvpn2 -------------------------------------+-------------------------------------- Comment(by macports@…): From what I can tell this is the OpenVPN bug for the same issue: https://community.openvpn.net/openvpn/ticket/42 It seems to still exist as a bug in 2.2.1, despite being known about as a bug for a couple of years. A somewhat related proposed OpenVPN patch from years back: http://openvpn.net/archive/openvpn-devel/2006-07/msg00003.html suggests the relevant bit of code that will need work, viz route.c get_default_gateway(). At a guess there's some sort of word size related issue, since apparently 32-bit x86 works and 64-bit x86-64 doesn't. Ewen -- Ticket URL: <https://trac.macports.org/ticket/22689#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#22689: openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour ------------------------------+----------------------- Reporter: wickedguitar6@… | Owner: jul_bsd@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.1 Resolution: | Keywords: LP64 Port: openvpn2 | ------------------------------+----------------------- Changes (by jmr@…): * owner: macports-tickets@… => jul_bsd@… -- Ticket URL: <https://trac.macports.org/ticket/22689#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts