Subject: pkg/31445: mail/imap-uw can not build on Tru64/OSF1 platform
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <h-masuda@ootani.nagata.kobe.jp>
List: pkgsrc-bugs
Date: 10/02/2005 13:13:00
>Number:         31445
>Category:       pkg
>Synopsis:       mail/imap-uw can not build on Tru64/OSF1 platform
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 02 13:13:00 +0000 2005
>Originator:     Hideo Masuda
>Release:        Tru64 UNIX 5.1
>Organization:
>Environment:
OSF1 raicho.ime.cmc.osaka-u.ac.jp V5.1 732 alpha

>Description:
mail/imap-uw can not build on OSF1 platform.
During build, Building OS-dependent module
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make bsi SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
 "cc" "-c" "-pipe" "-O2" "-ieee" "-I/var/work/obj/mail/imap-uw/work/.buildlink/include" "-DCREATEPROTO=unixproto" "-DEMPTYPROTO=unixproto" "-DMAILSPOOL=\"/var/mail\"" "-DANONYMOUSHOME=\"/var/mail/anonymous\"" "-DACTIVEFILE=\"/var/news/db/active\"" "-DNEWSSPOOL=\"/var/news\"" "-DRSHPATH=\"/usr/bin/rsh\"" "-DLOCKPGM=\"/etc/mlock\"" "-DMD5ENABLE=\"/etc/cram-md5.pwd\"" "-I/var/work/obj/mail/imap-uw/work/.buildlink/include/openssl" "-DSSL_CERT_DIRECTORY=\"/usr/pkg/etc/openssl/certs\"" "-DSSL_KEY_DIRECTORY=\"/usr/pkg/etc/openssl/private\"" "-c" "osdep.c"  -DPIC -o .libs/osdep.o
cc: Error: getspnam.c, line 32: In this declaration, "socklen_t" must specify a
type. (badparsedecl)
  socklen_t len = (socklen_t) *namelen;
--^
cc: Error: getspnam.c, line 49: In this declaration, "socklen_t" must specify a
type. (badparsedecl)
  socklen_t len = (socklen_t) *namelen;
--^
  (snip)


I think that "$(MAKE) neb" is used in this build.


>How-To-Repeat:
cd mail/imap-uw; bmake

>Fix:
add OPSYS == "OSF1" switch into Makefile as following:

# cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/imap-uw/Makefile,v
retrieving revision 1.99
diff -u -r1.99 Makefile
--- Makefile    28 Sep 2005 20:52:23 -0000      1.99
+++ Makefile    2 Oct 2005 13:04:39 -0000
@@ -37,6 +37,8 @@
 .  else
 BUILD_TARGET=  sgi
 .  endif
+.elif ${OPSYS} == "OSF1"
+BUILD_TARGET=  osf
 .else
 BUILD_TARGET=  neb