New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22689 (new defect)

Opened 2 years ago

Last modified 6 months ago

openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour

Reported by: wickedguitar6@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: LP64 Cc: erik@…, cruoho@…
Port: openvpn2

Description

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".

Change History

  Changed 2 years ago by jmr@…

  • owner changed from macports-tickets@… to pmq@…
  • cc wickedguitar6@…, pmq@… removed
  • keywords openvpn2, default_gateway, gcc-4.0 removed

in reply to: ↑ description   Changed 2 years ago 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.

  Changed 2 years ago by erik@…

  • cc erik@… added

Cc Me!

  Changed 2 years ago by jmr@…

  • keywords LP64 added
  • summary changed from openvpn2-2.0.9 Compiling with gcc-4.2 leads to wrong behaviour to openvpn2-2.0.9 Compiling for x86_64 leads to wrong behaviour

  Changed 12 months ago by jmr@…

  • cc jordiyeh@… removed

Is this still a problem with 2.1.1?

  Changed 7 months ago by cruoho@…

  • cc cruoho@… added

Cc Me!

  Changed 7 months ago by cruoho@…

This problem still exists as of 2.2.0.

  Changed 6 months ago by pmq@…

  • owner changed from pmq@… to macports-tickets@…

Stepping down for maintainership as I'm not using this anymore.

Note: See TracTickets for help on using tickets.