<?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>107958</bug_id>
          
          <creation_ts>2005-10-02 23:44 0000</creation_ts>
          <short_desc>Bestcrypt-1.6_p1-r2 will not compile while trying to emerge</short_desc>
          <delta_ts>2005-11-10 10:55: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>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>advocate4all@netcommander.com</reporter>
          <assigned_to>crypto@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>advocate4all@netcommander.com</who>
            <bug_when>2005-10-02 23:44:43 0000</bug_when>
            <thetext>I&apos;ve been trying to emerge bestcrypt using different flags in CFLAGS, taken from
what I&apos;ve read here about other ebuilds.  So far, nothing seems to work and I
get the same error message regardless, even when I add -fPIC.

I haven&apos;t been able to find anything regarding this specific error, if I&apos;m doing
something wrong, I would appreciate some feedback.

**************************************


Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) app-crypt/bestcrypt-1.6_p1-r2 to /
&gt;&gt;&gt; md5 files   ;-) ChangeLog
&gt;&gt;&gt; md5 files   ;-) metadata.xml
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.5_p10.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.5_p11.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1-r2.ebuild
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt.devfs
&gt;&gt;&gt; md5 files   ;-) files/bcrypt3
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.5_p10-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.5_p10
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.6_p1-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1-r1
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.5_p11-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.5_p11
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1-r2
&gt;&gt;&gt; md5 src_uri ;-) BestCrypt-1.6-1.tar.gz
&gt;&gt;&gt; md5 src_uri ;-) bcrypt-rc6-serpent-c.diff.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.12-gentoo-r5
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking BestCrypt-1.6-1.tar.gz to /var/tmp/portage/bestcrypt-1.6_p1-r2/work
&gt;&gt;&gt; Unpacking bcrypt-rc6-serpent-c.diff.gz to
/var/tmp/portage/bestcrypt-1.6_p1-r2/work
 * Applying bestcrypt-1.6_p1-makefile_fix.patch ...                            
                                                                               
      [ ok ] * Applying bcrypt-rc6-serpent-c.diff ...                          
                                                                               
                  [ ok ]&gt;&gt;&gt; Source unpacked.
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha&apos;
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o alg.o alg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kblock.o kblock.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kg_misc.o kg_misc.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kgsha.o kgsha.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o pwldlg.o pwldlg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o sha1.o sha1.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o random.o random.cpp
ld -d -shared alg.o kblock.o kg_misc.o kgsha.o pwldlg.o sha1.o random.o  -o
libkgsha.so
cp -f libkgsha.so ../lib
make: Leaving directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha&apos;
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256&apos;
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o alg.o alg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kblock.o kblock.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kg_misc.o kg_misc.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kgsha.o kgsha.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o pwldlg.o pwldlg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o sha256.o sha256.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o random.o random.cpp
ld -d -shared alg.o kblock.o kg_misc.o kgsha.o pwldlg.o sha256.o random.o  -o
libkgsha256.so
ld: kblock.o: relocation R_X86_64_32 against `a local symbol&apos; can not be used
when making a shared object; recompile with -fPIC
kblock.o: could not read symbols: Bad value
make: *** [libkgsha256.so] Error 1
make: Leaving directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256&apos;

***********************************

This is a copy of /etc/make.conf:

***********************************

 These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS=&quot;-march=k8 -pipe -O2&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
MAKEOPTS=&quot;-j2&quot;
ACCEPT_KEYWORDS=&quot;~amd64&quot;
USE=&quot;amd64 alsa oss apm arts avi bitmap-fonts crypt cups dvd dvdr dvdread
divx4linux kdexdeltas
     encode fortran f77 foomaticdb -gdbm berkdb gif gpm gtk gtk2 imlib jpeg kde
gnome libg++ libwww mad
     mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt
     quicktime readline sdl spell ssl svga tcpd truetype X xml2 xmms xv zlib&quot;


Reproducible: Always
Steps to Reproduce:
1.emerge bestcrypt
2.
3.

Actual Results:  
compile failed

Expected Results:  
It should have emerged


Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) app-crypt/bestcrypt-1.6_p1-r2 to /
&gt;&gt;&gt; md5 files   ;-) ChangeLog
&gt;&gt;&gt; md5 files   ;-) metadata.xml
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.5_p10.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1-r1.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.5_p11.ebuild
&gt;&gt;&gt; md5 files   ;-) bestcrypt-1.6_p1-r2.ebuild
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt.devfs
&gt;&gt;&gt; md5 files   ;-) files/bcrypt3
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.5_p10-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.5_p10
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.6_p1-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1-r1
&gt;&gt;&gt; md5 files   ;-) files/bestcrypt-1.5_p11-makefile_fix.patch
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.5_p11
&gt;&gt;&gt; md5 files   ;-) files/digest-bestcrypt-1.6_p1-r2
&gt;&gt;&gt; md5 src_uri ;-) BestCrypt-1.6-1.tar.gz
&gt;&gt;&gt; md5 src_uri ;-) bcrypt-rc6-serpent-c.diff.gz
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.12-gentoo-r5
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking BestCrypt-1.6-1.tar.gz to /var/tmp/portage/bestcrypt-1.6_p1-r2/work
&gt;&gt;&gt; Unpacking bcrypt-rc6-serpent-c.diff.gz to
/var/tmp/portage/bestcrypt-1.6_p1-r2/work
 * Applying bestcrypt-1.6_p1-makefile_fix.patch ...                            
                                                                               
      [ ok ] * Applying bcrypt-rc6-serpent-c.diff ...                          
                                                                               
                  [ ok ]&gt;&gt;&gt; Source unpacked.
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha&apos;
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o alg.o alg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kblock.o kblock.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kg_misc.o kg_misc.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o kgsha.o kgsha.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o pwldlg.o pwldlg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o sha1.o sha1.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -march=k8 -pipe -O2 -fPIC
-c -o random.o random.cpp
ld -d -shared alg.o kblock.o kg_misc.o kgsha.o pwldlg.o sha1.o random.o  -o
libkgsha.so
cp -f libkgsha.so ../lib
make: Leaving directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha&apos;
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256&apos;
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o alg.o alg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kblock.o kblock.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kg_misc.o kg_misc.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o kgsha.o kgsha.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o pwldlg.o pwldlg.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o sha256.o sha256.cpp
g++ -Wall -Werror -fno-strength-reduce -I../include  -c -o random.o random.cpp
ld -d -shared alg.o kblock.o kg_misc.o kgsha.o pwldlg.o sha256.o random.o  -o
libkgsha256.so
ld: kblock.o: relocation R_X86_64_32 against `a local symbol&apos; can not be used
when making a shared object; recompile with -fPIC
kblock.o: could not read symbols: Bad value
make: *** [libkgsha256.so] Error 1
make: Leaving directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256&apos;

***********************************

This is a copy of /etc/make.conf:

***********************************

 These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS=&quot;-march=k8 -pipe -O2&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CXXFLAGS=&quot;${CFLAGS}&quot;
MAKEOPTS=&quot;-j2&quot;
ACCEPT_KEYWORDS=&quot;~amd64&quot;
USE=&quot;amd64 alsa oss apm arts avi bitmap-fonts crypt cups dvd dvdr dvdread
divx4linux kdexdeltas
     encode fortran f77 foomaticdb -gdbm berkdb gif gpm gtk gtk2 imlib jpeg kde
gnome libg++ libwww mad
     mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt
     quicktime readline sdl spell ssl svga tcpd truetype X xml2 xmms xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-11-10 10:55:40 0000</bug_when>
            <thetext>sorry I took so long   
   
this has been fixed in bestcrypt-1.6_p1-r2 that should appear next sync  
  
FYI for next time - &quot;emerge info&quot; output is a bit more consistant  
that /etc/make.conf pastings and is preferred. 
 
I&apos;ll try to do a version bump too soon. </thetext>
          </long_desc>
      
    </bug>

</bugzilla>