mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
sunrpc: Remove stray exports without --enable-obsolete-rpc [BZ #23166]
This is needed to avoid a warning when linking against libtirpc:
/lib64/libc.so.6: warning: common of `rpc_createerr@@TIRPC_0.3.0' overridden by definition
/usr/lib64/libtirpc.so: warning: defined here
This ld warning is not enabled by default; -Wl,--warn-common enables it.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
(cherry picked from commit 89aacb513e
)
This commit is contained in:
parent
0c65d0085d
commit
da768de04f
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
|||||||
|
2018-05-11 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
[BZ #23166]
|
||||||
|
* include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
|
||||||
|
* include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
|
||||||
|
Likewise.
|
||||||
|
* sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
|
||||||
|
(svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
|
||||||
|
export without --enable-obsolete-rpc.
|
||||||
|
* sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
|
||||||
|
symbol. This should not have been exported, ever.
|
||||||
|
|
||||||
2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
|
2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
|
||||||
|
|
||||||
[BZ #23152]
|
[BZ #23152]
|
||||||
|
1
NEWS
1
NEWS
@ -47,6 +47,7 @@ The following bugs are resolved with this release:
|
|||||||
[23137] s390: pthread_join sometimes block indefinitely (on 31bit and libc
|
[23137] s390: pthread_join sometimes block indefinitely (on 31bit and libc
|
||||||
build with -Os)
|
build with -Os)
|
||||||
[23152] gd_GB: Fix typo in "May" (abbreviated)
|
[23152] gd_GB: Fix typo in "May" (abbreviated)
|
||||||
|
[23166] sunrpc: Remove stray exports without --enable-obsolete-rpc
|
||||||
|
|
||||||
|
|
||||||
Version 2.27
|
Version 2.27
|
||||||
|
@ -28,6 +28,7 @@ libc_hidden_proto (clntudp_create)
|
|||||||
libc_hidden_proto (get_myaddress)
|
libc_hidden_proto (get_myaddress)
|
||||||
libc_hidden_proto (clntunix_create)
|
libc_hidden_proto (clntunix_create)
|
||||||
libc_hidden_proto (__libc_clntudp_bufcreate)
|
libc_hidden_proto (__libc_clntudp_bufcreate)
|
||||||
|
libc_hidden_proto (rpc_createerr)
|
||||||
|
|
||||||
# endif /* !_ISOMAC */
|
# endif /* !_ISOMAC */
|
||||||
#endif
|
#endif
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
|
|
||||||
# ifndef _ISOMAC
|
# ifndef _ISOMAC
|
||||||
|
|
||||||
|
libc_hidden_proto (svc_pollfd)
|
||||||
|
libc_hidden_proto (svc_max_pollfd)
|
||||||
|
libc_hidden_proto (svc_fdset)
|
||||||
|
|
||||||
libc_hidden_proto (xprt_register)
|
libc_hidden_proto (xprt_register)
|
||||||
libc_hidden_proto (xprt_unregister)
|
libc_hidden_proto (xprt_unregister)
|
||||||
libc_hidden_proto (svc_register)
|
libc_hidden_proto (svc_register)
|
||||||
|
@ -46,7 +46,14 @@
|
|||||||
the variable is declared. So we use the section attribute. */
|
the variable is declared. So we use the section attribute. */
|
||||||
struct opaque_auth _null_auth __attribute__ ((nocommon));
|
struct opaque_auth _null_auth __attribute__ ((nocommon));
|
||||||
libc_hidden_nolink_sunrpc (_null_auth, GLIBC_2_0)
|
libc_hidden_nolink_sunrpc (_null_auth, GLIBC_2_0)
|
||||||
fd_set svc_fdset;
|
|
||||||
struct rpc_createerr rpc_createerr;
|
/* The variables need the nocommon attribute, so that it is possible
|
||||||
struct pollfd *svc_pollfd;
|
to create aliases and specify symbol versions. */
|
||||||
int svc_max_pollfd;
|
fd_set svc_fdset __attribute__ ((nocommon));
|
||||||
|
libc_hidden_nolink_sunrpc (svc_fdset, GLIBC_2_0)
|
||||||
|
struct rpc_createerr rpc_createerr __attribute__ ((nocommon));
|
||||||
|
libc_hidden_nolink_sunrpc (rpc_createerr, GLIBC_2_0)
|
||||||
|
struct pollfd *svc_pollfd __attribute__ ((nocommon));
|
||||||
|
libc_hidden_nolink_sunrpc (svc_pollfd, GLIBC_2_2)
|
||||||
|
int svc_max_pollfd __attribute__ ((nocommon));
|
||||||
|
libc_hidden_nolink_sunrpc (svc_max_pollfd, GLIBC_2_2)
|
||||||
|
@ -87,16 +87,21 @@ static void cache_ref (uint32_t sid); /* note that sid was ref'd */
|
|||||||
|
|
||||||
static void invalidate (char *cred); /* invalidate entry in cache */
|
static void invalidate (char *cred); /* invalidate entry in cache */
|
||||||
|
|
||||||
/*
|
/* Cache statistics. Accidental historic export without a matching
|
||||||
* cache statistics
|
declaration in any header file. */
|
||||||
*/
|
#ifndef SHARED
|
||||||
|
static
|
||||||
|
#endif
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
u_long ncachehits; /* times cache hit, and is not replay */
|
u_long ncachehits; /* times cache hit, and is not replay */
|
||||||
u_long ncachereplays; /* times cache hit, and is replay */
|
u_long ncachereplays; /* times cache hit, and is replay */
|
||||||
u_long ncachemisses; /* times cache missed */
|
u_long ncachemisses; /* times cache missed */
|
||||||
}
|
}
|
||||||
svcauthdes_stats;
|
svcauthdes_stats __attribute__ ((nocommon));
|
||||||
|
#ifdef SHARED
|
||||||
|
compat_symbol (libc, svcauthdes_stats, svcauthdes_stats, GLIBC_2_0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Service side authenticator for AUTH_DES
|
* Service side authenticator for AUTH_DES
|
||||||
|
Loading…
Reference in New Issue
Block a user