pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problem running sshd on Darwin, "dyld: Symbol not found: _allow_severity" (SOLVED)



On Fri, Jul 03, 2015 at 09:41:20PM +0200, Andreas Kusalananda Kähäri wrote:
> On Thu, Jul 02, 2015 at 10:56:14PM +0200, Andreas Kusalananda Kähäri wrote:
> > On Thu, Jul 02, 2015 at 10:24:34PM +0200, Joerg Sonnenberger wrote:
> > > On Thu, Jul 02, 2015 at 09:55:03PM +0200, Andreas Kusalananda Kähäri wrote:
> > > > Adding "-rdynamic" to the start of SSHDLIBS and reinstalling (with
> > > > "STRIP_OPT=-s") doesn't help, neither does adding it to start of
> > > > LDFLAGS.
> > > 
> > > Feared so. Set INSTALL_UNSTRIPPED in the pkgsrc Makefile.
> > > 
> > > Joerg
> > > 
> > 
> > Sorry, but setting INSTALL_UNSTRIPPED to anything (1, yes, YES etc.) in
> > the pkgsrc Makefile doesn't seem to do anything.
[cut]

The configure script for OpenSSH has a --disable-strip switch.  Here's
a patch for the pkgsrc Makefile that enables that switch for Darwin
(tested, works):


Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/openssh/Makefile,v
retrieving revision 1.230
diff -u -r1.230 Makefile
--- Makefile	12 Jun 2015 10:51:03 -0000	1.230
+++ Makefile	4 Jul 2015 07:17:18 -0000
@@ -33,6 +33,10 @@
 
 .include "options.mk"
 
+.if ${OPSYS} == "Darwin"
+CONFIGURE_ARGS+=	--disable-strip
+.endif
+
 .if ${OPSYS} == "Interix"
 
 # OpenSSH on Interix has some important caveats


I still don't know why "INSTALL_UNSTRIPPED=yes" doesn't work.

-- 
:: Andreas Kusalananda Kähäri, Bioinformatics Developer, BILS,
:: Uppsala University, Sweden
::----------------------------------------------------------------------
:: My other car is a cdr.


Home | Main Index | Thread Index | Old Index