Hi,

Here's a simple diff to tighten things up.

check_sym output:
/usr/lib/libsndio.so.6.1 --> obj/libsndio.so.7.0
Dynamic export changes:
removed:
        __bss_start
        __data_start
        _aucat_close
        _aucat_open
        _aucat_pollfd
        _aucat_rdata
        _aucat_revents
        _aucat_rmsg
        _aucat_setfl
        _aucat_wdata
        _aucat_wmsg
        _edata
        _end
        _fini
        _init
        _mio_aucat_open
        _mio_create
        _mio_rmidi_open
        _sio_aucat_open
        _sio_create
        _sio_onmove_cb
        _sio_onvol_cb
        _sio_printpos
        _sio_sun_open
        _sndio_debug
        _sndio_debug_init
        _sndio_parsenum
        _sndio_parsetype

PLT removed:
        _aucat_close
        _aucat_open
        _aucat_pollfd
        _aucat_rdata
        _aucat_rmsg
        _aucat_setfl
        _aucat_wdata
        _aucat_wmsg
        _mio_aucat_open
        _mio_create
        _mio_rmidi_open
        _sio_aucat_open
        _sio_create
        _sio_onmove_cb
        _sio_onvol_cb
        _sio_printpos
        _sio_sun_open
        _sndio_debug_init
        _sndio_parsenum
        _sndio_parsetype


The symbols in Symbols.map are ordered after decls in sndio.h.  Diff
already discussed with ratchov@, who gave his ok and is confident that
nothing actually uses those symbols.

Anyone else with a shared lib version crank?

ok?


Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -7,4 +7,6 @@ SRCS=   debug.c aucat.c sio_aucat.c sio_su
 CFLAGS+=-DDEBUG
 COPTS+=        -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 
-Wundef
 
+VERSION_SCRIPT=        ${.CURDIR}/Symbols.map
+
 .include <bsd.lib.mk>
Index: Symbols.map
===================================================================
--- /dev/null
+++ Symbols.map
@@ -0,0 +1,36 @@
+{
+       global:
+               sio_initpar;
+               sio_open;
+               sio_close;
+               sio_setpar;
+               sio_getpar;
+               sio_getcap;
+               sio_onmove;
+               sio_write;
+               sio_read;
+               sio_start;
+               sio_stop;
+               sio_nfds;
+               sio_pollfd;
+               sio_revents;
+               sio_eof;
+               sio_setvol;
+               sio_onvol;
+
+               mio_open;
+               mio_close;
+               mio_write;
+               mio_read;
+               mio_nfds;
+               mio_pollfd;
+               mio_revents;
+               mio_eof;
+
+               mio_rmidi_getfd;
+               mio_rmidi_fdopen;
+               sio_sun_getfd;
+               sio_sun_fdopen;
+       local:
+               *;
+};
Index: shlib_version
===================================================================
--- shlib_version.orig
+++ shlib_version
@@ -1,2 +1,2 @@
-major=6
-minor=1
+major=7
+minor=0


-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to