1242 libwrap has undefined symbols
Reviewed by: Gordon Ross <
[email protected]>
Reviewed by: Richard Lowe <
[email protected]>
Reviewed by: Garrett D'Amore <
[email protected]>
Reviewed by: Albert Lee <
[email protected]>
Approved by: Richard Lowe <
[email protected]>
--- a/usr/src/lib/libwrap/Makefile.com Mon Aug 22 11:37:10 2011 -0400
+++ b/usr/src/lib/libwrap/Makefile.com Wed Aug 24 02:23:20 2011 +0400
@@ -31,7 +31,7 @@
OBJECTS = hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
hosts_ctl.o refuse.o percent_x.o clean_exit.o \
fromhost.o fix_options.o socket.o tli.o workarounds.o \
- update.o misc.o diag.o percent_m.o
+ update.o misc.o diag.o percent_m.o libvars.o
include ../../Makefile.lib
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/lib/libwrap/libvars.c Wed Aug 24 02:23:20 2011 +0400
@@ -0,0 +1,22 @@
+/*
+ * This file and its contents are supplied under the terms of the
+ * Common Development and Distribution License ("CDDL"), version 1.0.
+ * You may only use this file in accordance with the terms of version
+ * 1.0 of the CDDL.
+ *
+ * A full copy of the text of the CDDL should have accompanied this
+ * source. A copy of the CDDL is also available via the Internet at
+ * http://www.illumos.org/license/CDDL.
+ */
+
+/*
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+ */
+
+/*
+ * Add data storage for two variables which should be defined by consumers
+ * of libwrap to fix GNU configure's libwrap test.
+ */
+
+int allow_severity;
+int deny_severity;
--- a/usr/src/lib/libwrap/mapfile Mon Aug 22 11:37:10 2011 -0400
+++ b/usr/src/lib/libwrap/mapfile Wed Aug 24 02:23:20 2011 +0400
@@ -1,5 +1,6 @@
#
# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
#
@@ -25,6 +26,6 @@
SYMBOL_SCOPE {
global:
- allow_severity { FLAGS = extern };
- deny_severity { FLAGS = extern };
+ allow_severity { FLAGS = NODIRECT; };
+ deny_severity { FLAGS = NODIRECT; };
};