libnl linker versioning is off

Thomas Haller thaller at redhat.com
Mon Oct 6 04:43:08 PDT 2014


On Mon, 2014-10-06 at 12:05 +0100, Thomas Graf wrote:
> Copying the list
> 
> On 10/02/14 at 11:31am, Jan Engelhardt wrote:
> > 
> > Between libnl-3.2.24 and libnl-3.2.25, the function
> > 
> > diff --git a/include/netlink/cli/ct.h b/include/netlink/cli/ct.h
> > index bed776b..ebe7c9d 100644
> > --- a/include/netlink/cli/ct.h
> > +++ b/include/netlink/cli/ct.h
> > @@ -30,5 +30,6 @@ extern void nl_cli_ct_parse_src_port(struct nfnl_ct *, int, char *);
> >  extern void nl_cli_ct_parse_dst_port(struct nfnl_ct *, int, char *);
> >  extern void nl_cli_ct_parse_tcp_state(struct nfnl_ct *, char *);
> >  extern void nl_cli_ct_parse_status(struct nfnl_ct *, char *);
> > +extern void nl_cli_ct_parse_zone(struct nfnl_ct *, char *);
> >  
> >  #endif
> > 
> > appears to have been added (as have others). However, libnl.sym.in was 
> > not updated to reflect this at all. Whenever symbols are added, a new 
> > version section is to be appended. One must not add symbols to 
> > preexisting sections.
> > 
> > 	LIBNL_3.2.25 {
> > 	global:
> > 		nl_cli_ct_parse_zone;
> > 	} LIBNL_3.2.24;
> > 


This issue would be present since the beginning.
Why do we need different sections libnl_3.2.* instead
of one libnl_3?
What is wrong with:

>>>

libnl_ at MAJ_VERSION@ {
global:
        *;
local:
        _nl_socket_generate_local_port_no_release;
        _nl_socket_is_local_port_unspecified;
        _nl_socket_used_ports_release_all;
        _nl_socket_used_ports_set;
};

<<<

(MAJ_VERSION being "3")



Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20141006/448d811b/attachment.sig>


More information about the libnl mailing list