<?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>61868</bug_id>
          
          <creation_ts>2004-08-26 16:33 0000</creation_ts>
          <short_desc>zlib doesn&apos;t create/install shared library</short_desc>
          <delta_ts>2004-09-01 20:16:40 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>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lorenb@lbtechservices.com</reporter>
          <assigned_to>lv@gentoo.org</assigned_to>
          <cc>1i5t5.duncan@cox.net</cc>
    
    <cc>rmsand@alienkiss.com</cc>

      

      
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-26 16:33:24 0000</bug_when>
            <thetext>I was doing on update on my amd64 box and zlib was upgraded to v1.2.1-r3 (due to a security fix). Something is wrong though because it never builds and/or installs libz.so.1.2.1. 

I tried using gcc 3.3 to compile.  I tried to downgrade.  Nothing worked for me.

From the emerge:

&gt;&gt;&gt; Install zlib-1.2.1-r3 into /var/tmp/portage/zlib-1.2.1-r3/image/ category sys-libs
cp libz.a /var/tmp/portage/zlib-1.2.1-r3/image//lib64
cd /var/tmp/portage/zlib-1.2.1-r3/image//lib64; chmod 755 libz.a
cd /var/tmp/portage/zlib-1.2.1-r3/image//lib64; if test -f libz.so.1.2.1; then \ rm -f libz.so libz.so.1; \
ln -s libz.so.1.2.1 libz.so; \
ln -s libz.so.1.2.1 libz.so.1; \
(ldconfig || true) &gt;/dev/null 2&gt;&amp;1; \
fi
cp zlib.3 /var/tmp/portage/zlib-1.2.1-r3/image//usr/share/man/man3
chmod 644 /var/tmp/portage/zlib-1.2.1-r3/image//usr/share/man/man3/zlib.3
cp zlib.h zconf.h /var/tmp/portage/zlib-1.2.1-r3/image//usr/include
chmod 644 /var/tmp/portage/zlib-1.2.1-r3/image//usr/include/zlib.h /var/tmp/portage/zlib-1.2.1-r3/image//usr/include/zconf.h
/usr/lib/portage/bin/dolib: libz.so.1.2.1 does not exist
chmod: cannot access `libz.so.*&apos;: No such file or directory
ln: creating symbolic link `/var/tmp/portage/zlib-1.2.1-r3/image//usr/lib64/libz.so&apos; to `/lib64/libz.so.1.2.1&apos;: No such file or directory
man:
prepallstrip:
strip:
&gt;&gt;&gt; Completed installing into /var/tmp/portage/zlib-1.2.1-r3/image/

Reproducible: Always
Steps to Reproduce:
1. emerge zlib


Actual Results:  
An upgraded zlib

Expected Results:  
Most of the services on my machine won&apos;t start because they can&apos;t find
libz.so.1.  For example:

/usr/sbin/named: error while loading shared libraries: libz.so.1: cannot open
shared object file: No such file or directory


Portage 2.0.50-r10 (gcc34-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3800+
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/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;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;amd64 apache2 berkdb crypt cups encode foomaticdb gdbm gif imlib jpeg ldap
libg++ mysql ncurses nptl pam png procmail python readline samba sasl slang ssl
tcpd xml2 zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-26 21:43:43 0000</bug_when>
            <thetext>...do you have CONF_LIBDIR set for some reason?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-26 21:59:38 0000</bug_when>
            <thetext>i think i might have fixed your bug. the fixed ebuild has the following md5sum:

ayanami zlib # md5sum zlib-1.2.1-r3.ebuild
d90fb61ad477289ef8b45327a8583bf3  zlib-1.2.1-r3.ebuild

it&apos;ll take at least 15 minutes to make it to rsync</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-26 22:12:45 0000</bug_when>
            <thetext>i&apos;d also like to note that you need portage 2.0.51_pre20 if you want (mostly) working CONF_LIBDIR support</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 02:28:23 0000</bug_when>
            <thetext>I don&apos;t know what CONF_LIBDIR does (is that like LD_LIBRARY_PATH?).  I&apos;m not even sure where I would set that.  If it&apos;s just an environment variable, I don&apos;t have it set:

# echo $CONF_LIBDIR

#

I just tired out the new ebuild and it doesn&apos;t seem to have worked. Here is another snip from my emerge:

&gt;&gt;&gt; Install zlib-1.2.1-r3 into /var/tmp/portage/zlib-1.2.1-r3/image/ category sys-libs
cp libz.a /var/tmp/portage/zlib-1.2.1-r3/image//lib
cd /var/tmp/portage/zlib-1.2.1-r3/image//lib; chmod 755 libz.a
cd /var/tmp/portage/zlib-1.2.1-r3/image//lib; if test -f libz.so.1.2.1; then \
  rm -f libz.so libz.so.1; \
  ln -s libz.so.1.2.1 libz.so; \
  ln -s libz.so.1.2.1 libz.so.1; \
  (ldconfig || true)  &gt;/dev/null 2&gt;&amp;1; \
fi
cp zlib.3 /var/tmp/portage/zlib-1.2.1-r3/image//usr/share/man/man3
chmod 644 /var/tmp/portage/zlib-1.2.1-r3/image//usr/share/man/man3/zlib.3
cp zlib.h zconf.h /var/tmp/portage/zlib-1.2.1-r3/image//usr/include
chmod 644 /var/tmp/portage/zlib-1.2.1-r3/image//usr/include/zlib.h /var/tmp/portage/zlib-1.2.1-r3/image//usr/include/zconf.h
/usr/lib/portage/bin/dolib: libz.so.1.2.1 does not exist
chmod: cannot access `libz.so.*&apos;: No such file or directory
man:
prepallstrip:
strip:
&gt;&gt;&gt; Completed installing into /var/tmp/portage/zlib-1.2.1-r3/image/

I had to go back to the binary I grabbed from the AMD64 2004.2 LiveCD. 

To try and figure out what the problem is, I manually unpacked the source code and applied the gentoo patches.   I then tried to build the library myself using gcc 3.3 and 3.4. Here are my results:


# tar jxvf /usr/portage/distfiles/zlib-1.2.1.tar.bz2
# cd zlib-1.2.1
# patch -p1 &lt; /usr/portage/sys-libs/zlib/files/zlib-1.2.1-glibc.patch
patching file Makefile.in
death zlib-1.2.1 # patch -p1 &lt; /usr/portage/sys-libs/zlib/files/zlib-1.2.1-build-fPIC.patch
patching file Makefile.in
patching file configure
death zlib-1.2.1 # patch -p0 &lt; /usr/portage/sys-libs/zlib/files/zlib-1.2.1-mapfile.patch
patching file configure
patching file mapfile
death zlib-1.2.1 # patch -p0 &lt; /usr/portage/sys-libs/zlib/files/zlib-1.2.1-configure.patch
patching file configure
# ./configure
Building static library libz.a version 1.2.1 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
# make
# gcc -o libz.so adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../crt1.o(.text+0x21): In function `_start&apos;:
: undefined reference to `main&apos;
collect2: ld returned 1 exit status

# gcc-config x86_64-pc-linux-gnu-3.3.4
# source /etc/profile
#  gcc -o libz.so adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o -lc
/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.3.4/../../../crt1.o(.text+0x21): In function `_start&apos;:
: undefined reference to `main&apos;
collect2: ld returned 1 exit status</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 02:33:40 0000</bug_when>
            <thetext>Forgot to include in my cut/paste, when trying to build the zlib shared object by hand, I did &quot;make clean&quot; and &quot;make&quot; after I switched from gcc 3.4 to 3.3.  But they both still gave the same error.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 05:57:11 0000</bug_when>
            <thetext>Realized I made a mistake trying to compile zlib by hand, I didn&apos;t pass --shared to ./configure.  It does work when I do it by hand:

# pwd
/root/zlib-1.2.1

# make clean
rm -f *.o *~ example minigzip \
   libz.* foo.gz so_locations \
   _match.s maketree contrib/infback9/*.o

# ./configure --shared
Checking for shared library support...
Building shared library libz.so.1.2.1 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.

# make
gcc -fPIC -O3 -DUSE_MMAP   -c -o example.o example.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o adler32.o adler32.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o compress.o compress.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o crc32.o crc32.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o gzio.o gzio.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o uncompr.o uncompr.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o deflate.o deflate.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o trees.o trees.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o zutil.o zutil.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o inflate.o inflate.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o infback.o infback.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o inftrees.o inftrees.c
gcc -fPIC -O3 -DUSE_MMAP   -c -o inffast.o inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
gcc -shared -Wl,-soname,libz.so.1 -Wl,--version-script,mapfile -o libz.so.1.2.1 adler32.lo compress.lo crc32.lo gzio.lo uncompr.lo deflate.lo trees.lo zutil.lo inflate.lo infback.lo inftrees.lo inffast.lo -lc
rm -f libz.so libz.so.1
ln -s libz.so.1.2.1 libz.so
ln -s libz.so.1.2.1 libz.so.1
gcc -fPIC -O3 -DUSE_MMAP -o example example.o -L. libz.so.1.2.1
gcc -fPIC -O3 -DUSE_MMAP   -c -o minigzip.o minigzip.c
gcc -fPIC -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.so.1.2.1

# ls -la libz.so*
lrwxrwxrwx  1 root root    13 Aug 27 08:56 libz.so -&gt; libz.so.1.2.1
lrwxrwxrwx  1 root root    13 Aug 27 08:56 libz.so.1 -&gt; libz.so.1.2.1
-rwxr-xr-x  1 root root 90966 Aug 27 08:56 libz.so.1.2.1


It still fails however when I try and build from the ebuild.  Strange.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 06:14:44 0000</bug_when>
            <thetext>I think I&apos;ve found the source of the problem.  Trying to build using the ebuild again:

# emerge -B zlib
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) sys-libs/zlib-1.2.1-r3 to /
&gt;&gt;&gt; md5 src_uri ;-) zlib-1.2.1.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking zlib-1.2.1.tar.bz2 to /var/tmp/portage/zlib-1.2.1-r3/work
 * Applying zlib-1.2.1-glibc.patch...                                     [ ok ]
 * Applying zlib-1.2.1-build-fPIC.patch...                                [ ok ]
 * Applying zlib-1.2.1-mapfile.patch...                                   [ ok ]
 * Applying zlib-1.2.1-configure.patch...                                 [ ok ]
 * Applying zlib-1.2.1-CAN-2004-0797.patch...                             [ ok ]
&gt;&gt;&gt; Source unpacked.
Checking for shared library support...
No shared library support; try without defining CC and CFLAGS
Building static library libz.a version 1.2.1 with gcc.


It doesn&apos;t find shared library support.  As you can see in my last comment, when I do this by hand, it works fine.  Getting closer to finding a solution.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kugelfang@gentoo.org</who>
            <bug_when>2004-08-27 07:09:35 0000</bug_when>
            <thetext>*** Bug 61912 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-27 07:14:53 0000</bug_when>
            <thetext>...can you try doing an rm -rf /var/tmp/portage? and then trying again? i know it&apos;s sounds like a strange request, but really that&apos;s just the sound of me grasping at straws. ^^;
but i think we might be seeing a portage bug here...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 07:23:06 0000</bug_when>
            <thetext>
# rm -r /var/tmp/portage
# mkdir /var/tmp/portage
# emerge -B zlib
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) sys-libs/zlib-1.2.1-r3 to /
&gt;&gt;&gt; md5 src_uri ;-) zlib-1.2.1.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking zlib-1.2.1.tar.bz2 to /var/tmp/portage/zlib-1.2.1-r3/work
 * Applying zlib-1.2.1-glibc.patch...                                     [ ok ]
 * Applying zlib-1.2.1-build-fPIC.patch...                                [ ok ]
 * Applying zlib-1.2.1-mapfile.patch...                                   [ ok ]
 * Applying zlib-1.2.1-configure.patch...                                 [ ok ]
 * Applying zlib-1.2.1-CAN-2004-0797.patch...                             [ ok ]
&gt;&gt;&gt; Source unpacked.
Checking for shared library support...
No shared library support; try without defining CC and CFLAGS

Didn&apos;t seem to have any effect.  

Just for the hell of it (I&apos;m grasping at straws too!) I tried to build zlib 1.1.4-r4.  Same error:

# emerge -B =sys-libs/zlib-1.1.4-r4
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) sys-libs/zlib-1.1.4-r4 to /
&gt;&gt;&gt; md5 src_uri ;-) zlib-1.1.4.tar.bz2
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking zlib-1.1.4.tar.bz2 to /var/tmp/portage/zlib-1.1.4-r4/work
 * Applying zlib-1.1.4-gzprintf.patch...                                  [ ok ]
 * Applying zlib-1.1.4-glibc.patch...                                     [ ok ]
 * Applying zlib-1.1.4-build-fPIC.patch...                                [ ok ]
 * Applying zlib-1.1.4-mapfile.patch...                                   [ ok ]
&gt;&gt;&gt; Source unpacked.
Checking for shared library support...
No shared library suppport; try without defining CC and CFLAGS

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mikko.tiihonen@iki.fi</who>
            <bug_when>2004-08-27 08:26:17 0000</bug_when>
            <thetext>Just found a reason why the build won&apos;t build a shared library but running configure directly will. This is what I get when I remove some redirects to dev null from the shared library test in configure script.

./configure --shared
CC=gcc
CFLAGS=-march=k8 -pipe -O2 -fomit-frame-pointer -frename-registers -fweb --param max-delay-slot-insn-search=300 --param max-delay-slot-live-search=1000 --param max-pending-list-length=100 --param max-gcse-passes=4 --param max-gcse-memory=104857600 --param max-crossjump-edges=400
SFLAGS=-march=k8 -pipe -O2 -fomit-frame-pointer -frename-registers -fweb --param max-delay-slot-insn-search=300 --param max-delay-slot-live-search=1000 --param max-pending-list-length=100 --param max-gcse-passes=4 --param max-gcse-memory=104857600 --param max-crossjump-edges=400
Checking for shared library support...
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: ztest1503.o: relocation R_X86_64_PC32 against `getchar@@GLIBC_2.2.5&apos; can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
No shared library support; try without defining CC and CFLAGS

And adding a CFLAGS=&quot;$CFLAGS -fPIC&quot; to the build src_compile ./configure line cured the ebuild problem.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-27 09:34:45 0000</bug_when>
            <thetext>...what binutils version are you all using? and glibc</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-27 13:30:31 0000</bug_when>
            <thetext>I&apos;ve got:

binutils-2.14.90.0.8-r1
glibc-2.3.4.20040808

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>orpheus@primeinteractive.net</who>
            <bug_when>2004-08-27 14:10:32 0000</bug_when>
            <thetext>Confirmed, after adding -fPIC to CFLAGS in /etc/make.conf the biuld was succesfull.

gcc-3.4.1-r2
binutils-2.15.91.0.2
portage-2.0.51_pre20</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-27 16:21:17 0000</bug_when>
            <thetext>pavol, your binutils version is known to be broken. stop using -U, i masked that version aug11. the latest stable binutils is binutils-2.15.90.0.1.1-r3

but since loren is using a version of binutils known to work, that cant be it.

mikko - when you ran configure by hand, were you using a clean unpatched zlib, or a zlib with all the gentoo patches applied? there is one that patches configure... and it touches that test. :|

can you edit the ebuild to not apply the configure patch and see if that fixes it?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mikko.tiihonen@iki.fi</who>
            <bug_when>2004-08-28 03:07:04 0000</bug_when>
            <thetext>Travis, when running by hand I run the zlib that had been patched with all gentoo patches. (I&apos;m also running binutils 2.15.91.0.2, but I don&apos;t think it matters).

I now tried removing the zlib-1.2.1-configure.patch from the ebuild but it still fails. Also removing the other patches didn&apos;t help.

The reason why running configure by hand works and the ebuild doesn&apos;t is that if no CFLAGS are defined when the configure is run it defaults to &quot;-O3 -fPIC&quot;. But when ebuild is run it of course has some other CFLAGS already defined and they do not include -fPIC.

So I would just add the following line to the ebuild as so many other ebuilds already do:
use amd64 &amp;&amp; append-flags -fPIC
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-28 05:33:41 0000</bug_when>
            <thetext>mikko - i have cflags set and it works fine for me. they dont include -fPIC either, which is why i&apos;m confused. but after looking at the configure it seems that this test is horribly wrong anyways, as shared libs always need to be PIC on amd64 and a few other archs.

i&apos;ll post a patch that i would like you to try...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-28 05:35:24 0000</bug_when>
            <thetext>Created an attachment (id=38382)
always use -fPIC in shared library test
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lorenb@lbtechservices.com</who>
            <bug_when>2004-08-28 06:03:55 0000</bug_when>
            <thetext>I added the patch to the zlib-1.2.1-r3.ebuild and tried it.  It works fine for me.  I&apos;m able to build and install zlib again.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mikko.tiihonen@iki.fi</who>
            <bug_when>2004-08-28 11:35:20 0000</bug_when>
            <thetext>The patch fixes the ebuild also for me.

I&apos;m just wondering what could cause the different behaviour. Is it a new bash that runs the tests differently, different version of binutils/gcc/glibc or something else?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-08-28 20:10:18 0000</bug_when>
            <thetext>i guess it all depends on the behavior of gcc. for example, hardened gcc builds everything either -fPIC or -fPIE unless told not to. *shrug*

anyways, this bug is now fixed in cvs. give it some time to reach rsync :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lv@gentoo.org</who>
            <bug_when>2004-09-01 02:24:58 0000</bug_when>
            <thetext>...closing bug</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-09-01 20:16:38 0000</bug_when>
            <thetext>*** Bug 62467 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>38382</attachid>
            <date>2004-08-28 05:35 0000</date>
            <desc>always use -fPIC in shared library test</desc>
            <filename>zlib-fPIC.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHpsaWItMS4yLjEub2xkL2NvbmZpZ3VyZQkyMDA0LTA4LTI4IDA4OjE5OjQ5LjAwMDAwMDAw
MCAtMDQwMAorKysgemxpYi0xLjIuMS9jb25maWd1cmUJMjAwNC0wOC0yOCAwODozMzo1Ny43NDU4
NjQwNjQgLTA0MDAKQEAgLTczLDcgKzczLDExIEBACiAKIGlmIHRlc3QgIiRnY2MiIC1lcSAxICYm
ICgkY2MgLWMgJGNmbGFncyAkdGVzdC5jKSAyPi9kZXYvbnVsbDsgdGhlbgogICBDQz0iJGNjIgot
ICBTRkxBR1M9JHtDRkxBR1MtIi1mUElDIC1PMyJ9CisgICNTRkxBR1M9JHtDRkxBR1MtIi1mUElD
IC1PMyJ9CisgICMgdGhlIGFib3ZlIGlzIGhvcnJpYmx5IHdyb25nIG9uIGEgZmV3IGFyY2hzIHdo
ZXJlIC1mUElDIHNob3VsZCBBTFdBWVMgYmUKKyAgIyB1c2VkIGluIHRoZSBjcmVhdGlvbiBvZiBz
aGFyZWQgbGlicmFyaWVzLiB3aXRob3V0IHRoZSBmb2xsb3dpbmcsIHRoZQorICAjIHNoYXJlZCBs
aWIgdGVzdCB3aWxsIHNvbWV0aW1lcyBmYWlsIGV2ZW4gd2hlbiBzaGFyZWQgbGlicyAtY2FuLSBi
ZSBjcmVhdGVkLgorICBTRkxBR1M9IiR7Q0ZMQUdTLSItTzMifSAtZlBJQyIKICAgQ0ZMQUdTPSIk
Y2ZsYWdzIgogICBjYXNlIGAodW5hbWUgLXMgfHwgZWNobyB1bmtub3duKSAyPi9kZXYvbnVsbGAg
aW4KICAgTGludXggfCBsaW51eCB8IEdOVSB8IEdOVS8qKQo=
</data>        

          </attachment>
    </bug>

</bugzilla>