GNOME Bugzilla – Bug 751535
[review] fix backporting symbols from master to 1.0 branch [ th/libnm-version-1-2-bgo751535, th/libnm-version-1-0-4-bgo751535 ]
Last modified: 2015-06-26 14:35:35 UTC
There is a patch on nm-1-0 branch that adds: + nm_setting_connection_autoconnect_slaves_get_type; + nm_setting_connection_get_autoconnect_slaves; to libnm_1_0_0 section in libnm/libnm.ver $ git log -p -n1 408b6316734e3dc5ce17ee66193d0c86ded91d96 -- :libnm/libnm.ver See also: https://bugzilla.gnome.org/show_bug.cgi?id=742993#c21
Please review the branches th/libnm-version-1-2-bgo751535 th/libnm-version-1-0-4-bgo751535 they go together. According to my test, this works as one would expect... The only strange thing is if I start nmcli from 1-0 branch, it links against the 1_2 version... cp /data/src/NetworkManager/libnm/.libs/libnm.so.0.1.0 libnm/.libs/libnm.so.0.0.0 LD_DEBUG=all ./clients/cli/nmcli connection show 2573: symbol=nm_setting_connection_autoconnect_slaves_get_type; lookup in file=/data/src/_NetworkManager/clients/cli/.libs/lt-nmcli [0] 2573: symbol=nm_setting_connection_autoconnect_slaves_get_type; lookup in file=/lib64/libreadline.so.6 [0] 2573: symbol=nm_setting_connection_autoconnect_slaves_get_type; lookup in file=/data/src/_NetworkManager/libnm/.libs/libnm.so.0 [0] 2573: binding file /data/src/_NetworkManager/libnm/.libs/libnm.so.0 [0] to /data/src/_NetworkManager/libnm/.libs/libnm.so.0 [0]: normal symbol `nm_setting_connection_autoconnect_slaves_get_type' [libnm_1_2_0] but it seems to work... anyone experienced with linker details?
Works fine. (For the record: we've taken a look at this with Thomas -- the @libnm_1_2_0 call in the comment above is actually for an internal call within libnm: "binding libnm.so.0 to libnm.so.0")
merged. master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=f5cc6da8cf73eb4e3ebfac80a96733e8081e8bcf nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=nm-1-0