Objective-C help needed with Bug#190497 - possible regression?

Matthias Andree matthias.andree at gmx.de
Sun Aug 3 08:04:53 UTC 2014


Greetings,

please bear with me if not using proper terms to describe the situation,
I am not an Objective-C programmer.

There are reports that openvpn-auth-ldap fails on FreeBSD 10, and
apparently also on 9, and I am unable to debug this.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190497

I fixed WITH_DEBUG=yes and modernized -export-dynamic to
-Wl,-export-dynamic so that at least I get debug symbols in the output.
but if I try to debug the openvpn_plugin_v1_open function, and have a
breakpoint set on initWithConfigFile:, gdb 7.x (devel/gdb) just steps
over it, so I must assume the runtime is broken.

Note there are tons of complaints about classes not responding to +alloc
methods/messages.

The port builds - but does not install - a "testplugin" program in the
top-level $WRKSRC that I have been trying to use for debugging, so you
do not need to dig into openvpn configuration.  Just running
/usr/local/bin/gdb --args ./testplugin /path/to/auth-ldap.conf should
do, there is a sample file.

There is also an upstream bug, which has gone unattended so far.
https://code.google.com/p/openvpn-auth-ldap/issues/detail?id=38


Chances are that the problems have been introduced by switching to
clang, by using newer GCC, by using a newer obj standard library, or
thereabouts.

Any ideas how to fix this?

Best regards
Matthias Andree


More information about the freebsd-ports mailing list