Hi,
>>>>> On Mon, 3 Dec 2007 18:50:22 -0800
>>>>> Randall Gellens <[EMAIL PROTECTED]> said:
randy> At 6:21 PM -0600 12/3/07, Vic Summerour wrote:
>>> Currently with Tru64 V5.1A with PK6, I have successfully
>>> compiled and run 4.1a4 with the following compiler:
>>>
>>> alpha> cc -V
>>> Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885)
>>> Compiler Driver V6.4-215 (sys) cc Driver
>>>
>>>
>>> Unfortunately, 4.1a5 will not successfully compile based on the
>>> same configure. It stop with the error:
>>>
>>> cc -c -I.. -I.. -I. \
>>> -I../mmangle -I../common \
>>> -g -DHAVE_CONFIG_H -DOSF1 -DUNIX main.c -o main.o
>>> cc: Error: main.c, line 150: Missing type specifier or type
>>> qualifier. (missingtype)
>>> socklen_t ai_addrlen;
>>> --------^
>>> make[1]: *** [main.o] Error 1
>>> make[1]: Leaving directory `/dsk1/vic/qpopper/qpopper4.1a5/popper'
>>> make: *** [popper_server] Error 2
Oops, it seems my fault. The socklen_t is used in an offhand.
Please try this patch:
Index: config.h.in
diff -u config.h.in.orig config.h.in
--- config.h.in.orig 2007-04-27 06:59:36.000000000 +0900
+++ config.h.in 2007-12-05 03:46:16.000000000 +0900
@@ -197,6 +197,9 @@
/* Define if you have the iruserok_sa function. */
#undef HAVE_IRUSEROK_SA
+/* do we have socklen_t? */
+#undef HAVE_SOCKLEN_T
+
/* Define if you have the <dbm.h> header file. */
#undef HAVE_DBM_H
Index: configure.in
diff -u configure.in.orig configure.in
--- configure.in.orig 2007-04-27 06:59:36.000000000 +0900
+++ configure.in 2007-12-05 03:43:57.000000000 +0900
@@ -991,6 +991,7 @@
IPv6_CHECK_FUNC(iruserok_sa)
fi
+AC_EGREP_HEADER(socklen_t, sys/socket.h, AC_DEFINE(HAVE_SOCKLEN_T))
AC_ARG_ENABLE(tempnam, [ --enable-tempnam Use tempnam() instead of
mkstemp()],
Index: popper/main.c
diff -u -p popper/main.c.orig popper/main.c
--- popper/main.c.orig 2007-04-27 07:11:00.000000000 +0900
+++ popper/main.c 2007-12-05 03:51:07.000000000 +0900
@@ -138,6 +138,10 @@
# endif /* HAVE_PAM_PAM_APPL_H */
#endif /* USE_PAM */
+#ifndef HAVE_SOCKLEN_T
+typedef unsigned int socklen_t;
+#endif /* HAVE_SOCKLEN_T */
+
#ifdef INET6
# include <netdb.h>
#else /* not INET6 */
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
[EMAIL PROTECTED] [EMAIL PROTECTED],jp.}FreeBSD.org
http://www.imasy.org/~ume/