[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to correctly select gcc / why dkms rebuild failed on xtables-addons



On Tue 20 Mar 2018 at 23:18:29 (+0100), Neo wrote:
> Hey folks
> 
> I've had a setup with xtables-addons running (on jessie with
> standard repos), especially the geoip module in this case. The
> normal upgrade path installed gcc-4.9 and broke my dkms setup and in
> turn my iptables setup. So it fell back on my fail2ban protection
> against ssh scripts.
> 
> /usr/bin/gcc-4.8 was on strange file permissions, with not even
> execute perms for root. Thus de dkms rebuild failed.
> 
> now my questions:
> 
> why was gcc-4.8 binary set to no execution, even for root?
> 
> why is xtables-addons-dkms not using gcc-4.9?
> 
> a simple chmod 700 /usr/bin/gcc-4.8 fixed the problem.
> 
> Thank you for any enlightenment

Your fixup might give a clue as to how it got the wrong permissions:
you've just broken your gcc-4.8 which ought to be executable by all
(as should everything in /usr/bin).

lrwxrwxrwx 1 root   root             7 Feb 25  2015 gcc -> gcc-4.9*
-rwxr-xr-x 1 root   root        715448 Dec 20  2014 gcc-4.8*
-rwxr-xr-x 1 root   root        806344 Feb 10 18:17 gcc-4.9*

Cheers,
David.


Reply to: