[SOLVED] Segfault in OpenSSL even though GnuTLS demanded

Bertram Scharpf lists at bertram-scharpf.de
Mon Aug 1 21:16:48 UTC 2016


On Thursday, 28. Jul 2016, 17:56:46 -0400, Jung-uk Kim wrote:
> On 07/28/16 05:37 PM, Bertram Scharpf wrote:
> >>> On Thursday, 28. Jul 2016, 15:37:00 -0400, Jung-uk Kim wrote:
> >>>> On 07/28/16 02:02 PM, Bertram Scharpf wrote:
> >>>>>
> >>>>>   Program received signal SIGSEGV, Segmentation fault.
> >>>>>   [Switching to Thread 29403080 (LWP 101275/mcabber)]
> >>>>>   0x285c1245 in OPENSSL_ia32_cpuid () from /usr/local/lib/libcrypto.so.8
> >>>>
> >>>> Try "ldd /usr/local/lib/libloudmouth-1.so.0.1.0".  It looks like a
> >>>> Kerberos issue.
> > 
> > So, how could I resolve this?
> You may ask its maintainer (gnome at FreeBSD.org) to add USES+=gssapi and
> add an option to select GSS-API from ports.

I looked at the other 4(!) projects that set something like
USES+=gssapi and copied that to loudmouth, and I even had to
copy it to irssi. Now the segfault has gone away.

The patch is below.

I will not write a problem report as long as my running
problem reports aren't deemed worthy of an answer.

Bertram


________________________________________________________________________

diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile
index d9a89fe..f7f9e45 100644
--- a/irc/irssi/Makefile
+++ b/irc/irssi/Makefile
@@ -43,6 +43,7 @@ TRUECOLOR_CONFIGURE_ENABLE=   true-color
 CONFIGURE_ARGS+=       --disable-ssl
 .else
 USE_OPENSSL=   yes
+USES+=gssapi:base,flags
 .endif

 post-patch:
diff --git a/net-im/loudmouth/Makefile b/net-im/loudmouth/Makefile
index ead1d4e..0a86d13 100644
--- a/net-im/loudmouth/Makefile
+++ b/net-im/loudmouth/Makefile
@@ -29,6 +29,8 @@ OPTIONS_DEFAULT=GNUTLS
 OPTIONS_RADIO= SSL
 OPTIONS_RADIO_SSL=     GNUTLS OPENSSL

+USES+=gssapi:base,flags
+
 .include <bsd.port.options.mk>

 .if ${PORT_OPTIONS:MGNUTLS}


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de


More information about the freebsd-hackers mailing list