You are not logged in.

#1 2013-10-01 13:18:55

Perfect Gentleman
Member
Registered: 2012-10-25
Posts: 218

Recompling sudo & zlib brakes the system

x86_64

CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j5"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
$ sudo pacman -Syu                                                                                                            
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'                                                                                  
sudo: unable to dlopen /usr/lib/sudo/sudoers.so: (null)                                                                                                      
sudo: fatal error, unable to load plugins
# pacman -S sudo
pacman: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
# pacman -S zlib
pacman: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

in live-cd

# pacman -r /mnt -S sudo
# arch-chroot /mnt
# pacman -S zlib
pacman: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

only booting in live-cd and 'pacman -r /mnt -S sudo zlib' solves it

Last edited by Perfect Gentleman (2013-10-01 15:24:19)

Offline

Board footer

Powered by FluxBB