<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>47057</bug_id>
          
          <creation_ts>2004-04-07 02:52 0000</creation_ts>
          <short_desc>chkrootkit ebuild needs to strip -pie from LDFLAGS</short_desc>
          <delta_ts>2004-04-09 03:49:24 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ka0ttic@gentoo.org</reporter>
          <assigned_to>solar@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ka0ttic@gentoo.org</who>
            <bug_when>2004-04-07 02:52:58 0000</bug_when>
            <thetext>When running chkrootkit (emerged with -pie in LDFLAGS), bash emits a &apos;/usr/sbin/strings-static: No such file or directory&apos; message even though it actually exists. This problem is temporarily solved by re-emerging chkrootkit w/o -pie in LDFLAGS.

Reproducible: Always
Steps to Reproduce:
1. Add -pie to LDFLAGS var in make.conf
2. emerge chkrootkit
3. run chkrootkit

Actual Results:  
Checking `amd&apos;... not found
Checking `basename&apos;... /usr/sbin/chkrootkit: line 1504:
/usr/sbin/strings-static: No such file or directory
not infected

Expected Results:  
Checking `amd&apos;... not found
Checking `basename&apos;... not infected

Portage 2.0.50-r3 (hardened-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-hardened-r3)
=================================================================
System uname: 2.6.4-hardened-r3 i686 Celeron (Mendocino)
Gentoo Base System version 1.4.3.13p1
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -march=pentium2 -fomit-frame-pointer -fstack-protector -fPIC
-fforce-addr -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium2 -fomit-frame-pointer -fstack-protector -fPIC
-fforce-addr -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://192.168.1.3/gentoo/
        ftp://mirror.iawnet.sandia.gov/pub/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://192.168.1.3/gentoo-portage/&quot;
USE=&quot;acl apache2 berkdb crypt fastcgi gdbm hardened imap maildir mmx ncurses
nptl pam perl png prelude python readline sasl ssl tcpd x86 zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-04-08 22:51:41 0000</bug_when>
            <thetext>Updated in portage chkrootkit-0.42b

Could you please tell me if &apos;/usr/sbin/strings-static&apos; 
has an invalid interp section set? 

user@localhost $ readelf -e /usr/sbin/strings-static | grep interpreter
# Please paste the results here.

What I&apos;m guessing is going on here is when the -static/-pie flags are
used together we are ending up with the ibcs interp.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-04-08 23:23:29 0000</bug_when>
            <thetext>Also note.. chkrootkit-0.43 is in portage but it&apos;s -* masked. No changes 
were made to that ebuild.

http://bugs.gentoo.org/show_bug.cgi?id=41040</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ka0ttic@gentoo.org</who>
            <bug_when>2004-04-09 03:02:11 0000</bug_when>
            <thetext>solar,

hardcore root # readelf -e /usr/sbin/strings-static | grep interpreter
      [Requesting program interpreter: /usr/lib/libc.so.1]
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>solar@gentoo.org</who>
            <bug_when>2004-04-09 03:49:24 0000</bug_when>
            <thetext>Thanks thats exactly what I thought it would be..
I&apos;m going to make another guess that /usr/lib/libc.so.1 does not exist either.
Sigh.. Freaky longterm toolchain love needed...

Anyway this should be fixed now for chkrootkit. Closing bug as FIXED.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>