NetBSD Problem Report #31447

From www@netbsd.org  Sun Oct  2 15:52:34 2005
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id 2569D63B850; Sun,  2 Oct 2005 15:52:34 +0000 (UTC)
Message-Id: <20051002155234.2569D63B850@narn.netbsd.org>
Date: Sun,  2 Oct 2005 15:52:34 +0000 (UTC)
From: rumi@rtfm.hu
Reply-To: rumi@rtfm.hu
To: gnats-bugs@netbsd.org
Subject: libgcrypt-1.2.1 fails to build on Tru64
X-Send-Pr-Version: www-1.0

>Number:         31447
>Category:       pkg
>Synopsis:       libgcrypt-1.2.1 fails to build on Tru64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 02 15:53:00 +0000 2005
>Closed-Date:    Thu Apr 12 15:06:27 +0000 2007
>Last-Modified:  Thu Apr 12 15:06:27 +0000 2007
>Originator:     Rumi Szabolcs
>Release:        Tru64 5.1B-3 (PK5)
>Organization:
>Environment:
# uname -a
OSF1 obelix.ipn.dynaweb.hu V5.1 2650 alpha
# sizer -v
Compaq Tru64 UNIX V5.1B (Rev. 2650); Sun Sep 25 20:31:58 CEST 2005
>Description:
compilation of libgcrypt-1.2.1 fails with the following error:

Making all in tests
source='prime.c' object='prime.o' libtool=no  DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp  cc -DHAVE_CONFIG_H -I. -I. -I.. -I../src   -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -O2 -ieee -I/usr/pkg/include -I/usr/include -c prime.c
cc: Error: ../src/gcrypt.h, line 198: Ill-formed parameter type list. (parmtyplist)
                 _GCRY_PTH_SOCKLEN_T *length_ptr);
-----------------^
cc: Error: ../src/gcrypt.h, line 200: Ill-formed parameter type list. (parmtyplist)
                  _GCRY_PTH_SOCKLEN_T length);
------------------^
*** Error code 1

Stop.
>How-To-Repeat:
./bootstrap on Tru64
cd /usr/pkgsrc/security/libgcrypt
bmake

>Fix:
Apparently socklen_t does not get declared.

I added -D_POSIX_PII_SOCKET (has to be defined before the inclusion
of sys/socket.h) and it compiled seamlessly.

>Release-Note:

>Audit-Trail:
From: RUMI Szabolcs <rumi@rtfm.hu>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/31447
Date: Sun, 2 Oct 2005 18:13:16 +0200

 libxslt-1.1.15 also seems to suffer from this issue and there may be even more
 such packages.

From: Tobias Nygren <tnn@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/31447 CVS commit: pkgsrc/mk/wrapper
Date: Thu, 12 Apr 2007 14:51:13 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Thu Apr 12 14:51:11 UTC 2007

 Modified Files:
 	pkgsrc/mk/wrapper: bsd.wrapper.mk

 Log Message:
 Add OSF1 wrapper quirks to always enable posix sockets and iso C++ iostreams.
 Fixes PR 31444. Fixes PR 31447. Both problems reported by Rumi Szabolcs.


 To generate a diff of this commit:
 cvs rdiff -r1.65 -r1.66 pkgsrc/mk/wrapper/bsd.wrapper.mk

 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: tnn@netbsd.org
State-Changed-When: Thu, 12 Apr 2007 15:06:27 +0000
State-Changed-Why:
 Fix committed, thanks for the report.


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