Subject: pkg/31447: libgcrypt-1.2.1 fails to build on Tru64
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/02/2005 15:53:00
>Number:         31447
>Category:       pkg
>Synopsis:       libgcrypt-1.2.1 fails to build on Tru64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 02 15:53:00 +0000 2005
>Originator:     Rumi Szabolcs
>Release:        Tru64 5.1B-3 (PK5)
# uname -a
OSF1 V5.1 2650 alpha
# sizer -v
Compaq Tru64 UNIX V5.1B (Rev. 2650); Sun Sep 25 20:31:58 CEST 2005
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

./bootstrap on Tru64
cd /usr/pkgsrc/security/libgcrypt

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.