From e1b84cb03d8fd1ef230a385429f6b768687ff944 Mon Sep 17 00:00:00 2001 From: Yuri Pankov Date: Wed, 24 Aug 2011 02:23:20 +0400 Subject: [PATCH] 1242 libwrap has undefined symbols Reviewed by: Gordon Ross Reviewed by: Richard Lowe Reviewed by: Garrett D'Amore Reviewed by: Albert Lee Approved by: Richard Lowe --- usr/src/lib/libwrap/Makefile.com | 2 +- usr/src/lib/libwrap/libvars.c | 22 ++++++++++++++++++++++ usr/src/lib/libwrap/mapfile | 5 +++-- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 usr/src/lib/libwrap/libvars.c diff --git a/usr/src/lib/libwrap/Makefile.com b/usr/src/lib/libwrap/Makefile.com index 9187bc24bc..aeafc46ffe 100644 --- a/usr/src/lib/libwrap/Makefile.com +++ b/usr/src/lib/libwrap/Makefile.com @@ -31,7 +31,7 @@ VERS = $(MAJOR)$(MINOR) 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 diff --git a/usr/src/lib/libwrap/libvars.c b/usr/src/lib/libwrap/libvars.c new file mode 100644 index 0000000000..fa7a8656c0 --- /dev/null +++ b/usr/src/lib/libwrap/libvars.c @@ -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; diff --git a/usr/src/lib/libwrap/mapfile b/usr/src/lib/libwrap/mapfile index e02d7e8c9e..a6ccfe109b 100644 --- a/usr/src/lib/libwrap/mapfile +++ b/usr/src/lib/libwrap/mapfile @@ -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 @@ $mapfile_version 2 SYMBOL_SCOPE { global: - allow_severity { FLAGS = extern }; - deny_severity { FLAGS = extern }; + allow_severity { FLAGS = NODIRECT; }; + deny_severity { FLAGS = NODIRECT; }; }; -- 2.11.4.GIT