The contents of version.script are not shown so potentially it could do anything.
Also when linking moreshared it does not link against libshared. This is probably what screws up symbol lookup (and why you should always use -Wl,–no-undefined).