NetBSD Problem Report #28439

From www@netbsd.org  Sat Nov 27 21:45:26 2004
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 8FFE4251ECF; Sat, 27 Nov 2004 21:45:26 +0000 (UTC)
Message-Id: <20041127214526.8FFE4251ECF@narn.netbsd.org>
Date: Sat, 27 Nov 2004 21:45:26 +0000 (UTC)
From: georg.schwarz@freenet.de
Reply-To: georg.schwarz@freenet.de
To: gnats-bugs@netbsd.org
Subject: pkgsrc/mail/libesmtp needs changes to compile on IRIX 5.3
X-Send-Pr-Version: www-1.0

>Number:         28439
>Category:       pkg
>Synopsis:       pkgsrc/mail/libesmtp needs changes to compile on IRIX 5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    irix-pkg-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 27 21:48:00 +0000 2004
>Closed-Date:    Sat Dec 18 16:06:27 +0000 2004
>Last-Modified:  Sat Dec 18 16:06:27 +0000 2004
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
>Description:
- IRIX 5.3 does not have getaddrinfo()
- getaddrinfo.c needs to include sys/types.h in order for type uid_t to be known in sys/socket.h (might be needed on some other OSes as well, and should not hurt on others).
>How-To-Repeat:

>Fix:
--- Makefile.orig       Sat Nov 27 21:55:41 2004
+++ Makefile    Sat Nov 27 22:04:18 2004
@@ -21,6 +21,11 @@
 CONFIGURE_ARGS+=       --enable-all
 CONFIGURE_ARGS+=       --disable-isoc

+.include "../../mk/bsd.prefs.mk"
+.if !empty(LOWER_OPSYS:Mirix5*)
+CONFIGURE_ARGS+=       --enable-emulate-getaddrinfo
+.endif
+
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"

and in addition the following patch (which I have also sent to the author of libesmtp):


--- getaddrinfo.c.orig1 Sat Nov 27 22:35:34 2004
+++ getaddrinfo.c       Sat Nov 27 22:36:05 2004
@@ -36,6 +36,7 @@
 #include <ctype.h>
 #include <errno.h>

+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->irix-pkg-people
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Sat, 27 Nov 2004 21:48:50 +0000
Responsible-Changed-Why:
Irix pkgsrc problem.


From: grant beattie <grant@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/28439 CVS commit: pkgsrc/mail/libesmtp
Date: Sat, 18 Dec 2004 16:02:28 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	grant
 Date:		Sat Dec 18 16:02:28 UTC 2004

 Modified Files:
 	pkgsrc/mail/libesmtp: Makefile distinfo

 Log Message:
 build fixes on irix 5:
 - pass option to configure to emulate getaddrinfo()
 - include sys/types.h

 fixes PR pkg/28439 from Georg Schwarz.


 To generate a diff of this commit:
 cvs rdiff -r1.18 -r1.19 pkgsrc/mail/libesmtp/Makefile
 cvs rdiff -r1.7 -r1.8 pkgsrc/mail/libesmtp/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: grant beattie <grant@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/28439 CVS commit: pkgsrc/mail/libesmtp/patches
Date: Sat, 18 Dec 2004 16:05:11 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	grant
 Date:		Sat Dec 18 16:05:11 UTC 2004

 Added Files:
 	pkgsrc/mail/libesmtp/patches: patch-ae

 Log Message:
 build fixes on irix 5:
 - pass option to configure to emulate getaddrinfo()
 - include sys/types.h

 fixes PR pkg/28439 from Georg Schwarz.


 To generate a diff of this commit:
 cvs rdiff -r0 -r1.1 pkgsrc/mail/libesmtp/patches/patch-ae

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: grant@netbsd.org
State-Changed-When: Sat, 18 Dec 2004 16:06:27 +0000
State-Changed-Why:
I have applied the fix. thanks!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.