ports/117576: fix net/tac_plus-libradius gcc4 issue
Juergen Lock
nox at jelal.kn-bremen.de
Sat Oct 27 21:10:04 UTC 2007
>Number: 117576
>Category: ports
>Synopsis: fix net/tac_plus-libradius gcc4 issue
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Oct 27 21:10:03 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Juergen Lock
>Release: FreeBSD 6.2-RELEASE-p8 i386
>Organization:
me? organized??
>Environment:
System: FreeBSD saturn 6.2-RELEASE-p8 FreeBSD 6.2-RELEASE-p8 #0: Wed Oct 17 18:53:56 CEST 2007 nox at saturn:/usr/obj/usr/home/nox/62new/usr/src/sys/GENERICua i386
>Description:
Fix build on 7
>How-To-Repeat:
n/a
>Fix:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/tac_plus-libradius/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile 1 Oct 2007 07:38:16 -0000 1.6
+++ Makefile 27 Oct 2007 21:03:03 -0000
@@ -25,10 +25,6 @@
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 700042
-BROKEN= Does not compile with GCC 4.2
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man1/tac_plus.1
Index: files/patch-ab
===================================================================
RCS file: /home/pcvs/ports/net/tac_plus-libradius/files/patch-ab,v
retrieving revision 1.1
diff -u -r1.1 patch-ab
--- files/patch-ab 20 Sep 2002 20:31:30 -0000 1.1
+++ files/patch-ab 27 Oct 2007 19:44:13 -0000
@@ -1,17 +1,23 @@
-*** config.c Fri Mar 16 10:04:27 2001
---- ../../tac_plus.F5.0.0.alpha/config.c Sun Jan 20 19:49:48 2002
-***************
-*** 603,608 ****
---- 603,614 ----
- authen_default_method = sym_code;
- break;
- #endif
-+ #ifdef USE_RADIUS
-+ case S_radius:
-+ fprintf(stderr,"sym_code=%i, radius\n",sym_code);
-+ authen_default_method = sym_code;
-+ break;
-+ #endif
-
-
- default:
+Index: config.c
+@@ -109,7 +109,7 @@
+ static int no_user_dflt = 0; /* default if user doesn't exist */
+ static char *authen_default = NULL; /* top level authentication default */
+ static int authen_default_method = 0; /*For method check */
+-static char *nopasswd_str = "nopassword";
++char *nopasswd_str = "nopassword";
+
+ /* A host definition structure. Currently unused, but when we start
+ configuring host-specific information e.g. per-host keys, this is
+@@ -602,6 +602,12 @@
+ fprintf(stderr,"sym_code=%i, ldap\n",sym_code);
+ authen_default_method = sym_code;
+ break;
++#endif
++#ifdef USE_RADIUS
++ case S_radius:
++ fprintf(stderr,"sym_code=%i, radius\n",sym_code);
++ authen_default_method = sym_code;
++ break;
+ #endif
+
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list