pkgsrc-Bugs archive

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

Re: pkg/40434: security/skey fails to build on Solaris

The following reply was made to PR pkg/40434; it has been noted by GNATS.

From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <>
Subject: Re: pkg/40434: security/skey fails to build on Solaris
Date: Mon, 19 Jan 2009 13:36:47 +0100

 Jörn Clausen wrote:
 >>  Following patch may fixes the failure:
 > [...]
 > Yes, it did. Thanks a lot!
 Rats, now security/openssh is broken:
 configure:11868: checking for s/key support
 configure:11888: gcc -o conftest -O 
 ude -I/usr/include -Wall -Wpointer-arith -Wuninitialized -Wsign-compare 
 -Wformat-security -fno-builtin-memset -I/usr/local/pkgsrc/pk
 -I/usr/local/pkgsrc/pkgsrc-cvs-rebuild/gcc34/include -I/usr/include 
 pkgsrc-cvs-rebuild/lib -Wl,-R/usr/local/pkgsrc/pkgsrc-cvs-rebuild/lib 
 -lnsl -lsocket -L/usr/local/pkgsrc/pkgsrc-cvs-rebuild/gcc34/li
 b -L/usr/lib -Wl,-R/usr/lib -L/usr/local/pkgsrc/pkgsrc-cvs-rebuild/lib 
 conftest.c -lskey -lz  >&5
 conftest.c: In function `main':
 conftest.c:80: warning: implicit declaration of function `exit'
 Undefined                       first referenced
   symbol                             in file
 ibskey.a(skeysubr.o)  (symbol belongs to implicit dependency 
 ibskey.a(skeysubr.o)  (symbol belongs to implicit dependency 
 ibskey.a(skeysubr.o)  (symbol belongs to implicit dependency 
 ld: fatal: Symbol referencing errors. No output written to conftest
 This change to security/openssh/Makefile seems to solve the problem:
 --- Makefile    2009/01/19 11:14:55     1.1
 +++ Makefile    2009/01/19 12:19:03
 @@ -94,6 +94,7 @@
   .if (${OPSYS} == "NetBSD") || (${OPSYS} == "Darwin") || (${OPSYS} == 
   .  include "../../security/skey/"
   CONFIGURE_ARGS+=       --with-skey=${BUILDLINK_PREFIX.skey}
   CONFIGURE_ARGS+=       --without-skey
 Probably it needs an extra .if to restrict this to Solaris. And I am 
 unsure whether or is the correct library to include, 
 both seem to work.
 As mentioned before, ssh from openssh now pulls in from 
 openssl, and /usr/lib/ via skey. Whose MD5 routines win? I 
 think it would be much cleaner to build skey and openssh that solely 
 rely on security/openssl and don't use any of the functions provided by 
 Solaris. There is /usr/bin/ssh, if you insist on using the functions 
 provided by the OS.
 NB: This only makes the packages compile, I have no idea, if they work 
 as intended. As far as I can tell, skey should now have no support for 
 MD4 whatsoever. But
 $  skey -md4 ...
 works and returns a result. But I can't say, if it is correct.
   Jörn Clausen                    
   Universität Bielefeld

Home | Main Index | Thread Index | Old Index