NetBSD Problem Report #28226
From www@www.netbsd.org Thu Nov 11 20:53:53 2004
Return-Path: <www@www.netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id BF5BA251ECF; Thu, 11 Nov 2004 20:53:52 +0000 (UTC)
Message-Id: <20041111205352.BF5BA251ECF@narn.netbsd.org>
Date: Thu, 11 Nov 2004 20:53:52 +0000 (UTC)
From: throwaway@right-decisions.com
Reply-To: throwaway@right-decisions.com
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc/security/putty fails to build on Solaris, patch included
X-Send-Pr-Version: www-1.0
>Number: 28226
>Category: pkg
>Synopsis: pkgsrc/security/putty fails to build on Solaris, patch included
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: solaris-pkg-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Nov 11 20:54:01 +0000 2004
>Closed-Date: Sat Dec 10 20:54:43 +0000 2011
>Last-Modified: Sat Dec 10 20:55:02 +0000 2011
>Originator: Jeffrey Johnson
>Release: PKGSRC on Solaris 8 sparc
>Organization:
NA
>Environment:
SunOS cracker 5.8 Generic_108528-29 sun4u sparc SUNW,Ultra-5_10
>Description:
The security/putty ports package fails to compile on Solaris. The Putty maintainers have created the following patch to address some of the issues:
Solaris patch (for use with GNU tools) follows:
diff -c unixold/Makefile.gtk unix/Makefile.gtk
*** unixold/Makefile.gtk Thu Feb 12 12:43:43 2004
--- unix/Makefile.gtk Tue Feb 17 12:11:31 2004
***************
*** 83,88 ****
--- 83,90 ----
CFLAGS = -O2 -Wall -Werror -g -I. -I.. -I../charset `gtk-config --cflags`
XLDFLAGS = `gtk-config --libs`
ULDFLAGS =#
+ # Uncomment for Solaris
+ # ULDFLAGS = -lsocket -lnsl
INSTALL=install
INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=$(INSTALL)
diff -c unixold/uxnet.c unix/uxnet.c
*** unixold/uxnet.c Tue Feb 3 08:47:43 2004
--- unix/uxnet.c Tue Feb 17 12:10:58 2004
***************
*** 15,20 ****
--- 15,28 ----
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
+ /* This is a hack for solaris, it keeps SIOCATMARK here. */
+ #ifndef SIOCATMARK
+ #include <sys/sockio.h>
+ #endif
+ /* For Unix flavors that don't define INADDR_NONE */
+ #ifndef INADDR_NONE
+ #define INADDR_NONE 0xffffffff
+ #endif
#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
**************
>How-To-Repeat:
bmake install on Solaris pksrc platform using gcc compilers.
>Fix:
Solaris patch (for use with GNU tools) follows:
diff -c unixold/Makefile.gtk unix/Makefile.gtk
*** unixold/Makefile.gtk Thu Feb 12 12:43:43 2004
--- unix/Makefile.gtk Tue Feb 17 12:11:31 2004
***************
*** 83,88 ****
--- 83,90 ----
CFLAGS = -O2 -Wall -Werror -g -I. -I.. -I../charset `gtk-config --cflags`
XLDFLAGS = `gtk-config --libs`
ULDFLAGS =#
+ # Uncomment for Solaris
+ # ULDFLAGS = -lsocket -lnsl
INSTALL=install
INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=$(INSTALL)
diff -c unixold/uxnet.c unix/uxnet.c
*** unixold/uxnet.c Tue Feb 3 08:47:43 2004
--- unix/uxnet.c Tue Feb 17 12:10:58 2004
***************
*** 15,20 ****
--- 15,28 ----
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
+ /* This is a hack for solaris, it keeps SIOCATMARK here. */
+ #ifndef SIOCATMARK
+ #include <sys/sockio.h>
+ #endif
+ /* For Unix flavors that don't define INADDR_NONE */
+ #ifndef INADDR_NONE
+ #define INADDR_NONE 0xffffffff
+ #endif
#define DEFINE_PLUG_METHOD_MACROS
#include "putty.h"
**************
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: port-sparc-maintainer->solaris-package-people
Responsible-Changed-By: wiz@narn.netbsd.org
Responsible-Changed-When: Fri, 12 Nov 2004 12:39:28 +0000
Responsible-Changed-Why:
pkgsrc on Solaris problem, not port-sparc problem.
Responsible-Changed-From-To: solaris-package-people->solaris-pkg-people
Responsible-Changed-By: wiz@narn.netbsd.org
Responsible-Changed-When: Fri, 12 Nov 2004 12:44:52 +0000
Responsible-Changed-Why:
Typo, sorry.
State-Changed-From-To: open->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Sat, 10 Dec 2011 20:54:43 +0000
State-Changed-Why:
Fixed
From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/28226 CVS commit: pkgsrc/security/putty
Date: Sat, 10 Dec 2011 20:50:51 +0000
Module Name: pkgsrc
Committed By: cheusov
Date: Sat Dec 10 20:50:51 UTC 2011
Modified Files:
pkgsrc/security/putty: Makefile distinfo
pkgsrc/security/putty/patches: patch-ad
Log Message:
Fix build failure on Solaris (PR 28226).
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 pkgsrc/security/putty/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/security/putty/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/putty/patches/patch-ad
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.