Atrfter upgrading mc not works

sudo pkg install glib
Password:
Sorry, try again.
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
pal@boss:~ % mc
ld-elf.so.1: /usr/local/bin/mc: Undefined symbol "g_free"
 
Code:
~$ldd /usr/local/bin/mc|grep /lib/|cut -w -f 4|while read a;do nm -D $a|grep "T g_free$" && echo ==== $a === && break;done
00000000000e3590 T g_free
==== /usr/local/lib/libglib-2.0.so.0 ===
try
ldd /usr/local/bin/mc
 
ldd /usr/local/bin/mc|grep /lib/|cut -w -f 4|while read a;do nm -D $a|grep "T g_free$" && echo ==== $a === && break;done
Illegal variable name.
pal@boss:~ % 00000000000e3590 T g_free
 
ldd /usr/local/bin/mc
/usr/local/bin/mc:
libslang.so.2 => /usr/local/lib/libslang.so.2 (0x800336000)
libncursesw.so.9 => /lib/libncursesw.so.9 (0x800752000)
libssh2.so.1 => /usr/local/lib/libssh2.so.1 (0x8007c5000)
libgmodule-2.0.so.0 => /usr/local/lib/libgmodule-2.0.so.0 (0x800804000)
libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x80080a000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x80094b000)
libutil.so.9 => /lib/libutil.so.9 (0x80095a000)
libthr.so.3 => /lib/libthr.so.3 (0x800972000)
libc.so.7 => /lib/libc.so.7 (0x8009a0000)
libdl.so.1 => /usr/lib/libdl.so.1 (0x800daa000)
libm.so.5 => /lib/libm.so.5 (0x800dae000)
libz.so.6 => /lib/libz.so.6 (0x800de9000)
libssl.so.111 => /usr/lib/libssl.so.111 (0x800e06000)
libcrypto.so.111 => /lib/libcrypto.so.111 (0x800e9e000)
 
nm -D /usr/local/lib/libglib-2.0.so.0|grep g_free
nm: /usr/local/lib/libglib-2.0.so.0: no symbols
 
ls -l /usr/local/lib/libglib-2.0.so.0
lrwxr-xr-x 1 root wheel 23 Nov 22 03:20 /usr/local/lib/libglib-2.0.so.0 -> libglib-2.0.so.0.7400.1
 
file -L /usr/local/lib/libglib-2.0.so.0
/usr/local/lib/libglib-2.0.so.0: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, stripped
 
You did sudo freebsd-update fetch but have you actually installed the updates with sudo freebsd-update install?
 
nm: /usr/local/lib/libglib-2.0.so.0: no symbols
this is weird
does this show no symbols too ?
nm -D /usr/local/lib/libgmodule-2.0.so.0
 
now any command associated with the update leads to a reboot of the system than I can't even do freebsd-update rollback
 
nm -D /usr/local/lib/libgmodule-2.0.so.0
w _Jv_RegisterClasses
w __cxa_finalize
U __error
U __stack_chk_fail
U __stack_chk_guard
000000000000357c T _fini
000000000000356c T _init
U close
U dlclose
U dlerror
U dlopen
U dlsym
U g_assertion_message_expr
U g_file_test
U g_filename_display_name
U g_free
U g_getenv
U g_malloc
0000000000003470 T g_module_build_path
0000000000003250 T g_module_close
00000000000030a0 T g_module_error
00000000000026c0 T g_module_error_quark
00000000000033f0 T g_module_make_resident
0000000000003430 T g_module_name
0000000000003420 T g_module_open
0000000000002720 T g_module_open_full
00000000000026f0 T g_module_supported
00000000000030c0 T g_module_symbol
U g_parse_debug_string
U g_path_get_dirname
U g_private_get
U g_private_replace
U g_quark_from_static_string
U g_rec_mutex_lock
U g_rec_mutex_unlock
U g_return_if_fail_warning
U g_scanner_destroy
U g_scanner_eof
U g_scanner_get_next_token
U g_scanner_input_file
U g_scanner_new
U g_scanner_scope_add_symbol
U g_set_error_literal
U g_str_has_suffix
U g_strconcat
U g_strdup
U g_strdup_printf
U open
U strcmp
U strncmp
U strrchr
 
output of nm -D /usr/local/lib/libgmodule-2.0.so.0 looks ok
so either there is something wrong with the glib package or other system stuff is broken too if the system reboots while executing freebsd-update
 
And how to roll back the system if the update leads to a reboot?On linux, I just pick the old kernel from the list on boot
 
Back
Top