Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Aug 2014 10:04:40 +0200
From:      Matthias Andree <matthias.andree@gmx.de>
To:        ports-list freebsd <freebsd-ports@freebsd.org>
Cc:        objc@freebsd.org
Subject:   Objective-C help needed with Bug#190497 - possible regression?
Message-ID:  <53DDED18.6040001@gmx.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53DDED18.6040001>