Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107958 - Bestcrypt-1.6_p1-r2 will not compile while trying to emerge
Summary: Bestcrypt-1.6_p1-r2 will not compile while trying to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High blocker
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-02 23:44 UTC by Wraith
Modified: 2005-11-10 10:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wraith 2005-10-02 23:44:43 UTC
I've been trying to emerge bestcrypt using different flags in CFLAGS, taken from
what I'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't been able to find anything regarding this specific error, if I'm doing
something wrong, I would appreciate some feedback.

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


Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/bestcrypt-1.6_p1-r2 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) bestcrypt-1.5_p10.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1-r1.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1.ebuild
>>> md5 files   ;-) bestcrypt-1.5_p11.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1-r2.ebuild
>>> md5 files   ;-) files/bestcrypt.devfs
>>> md5 files   ;-) files/bcrypt3
>>> md5 files   ;-) files/bestcrypt-1.5_p10-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.5_p10
>>> md5 files   ;-) files/bestcrypt-1.6_p1-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1-r1
>>> md5 files   ;-) files/bestcrypt-1.5_p11-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.5_p11
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1-r2
>>> md5 src_uri ;-) BestCrypt-1.6-1.tar.gz
>>> 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
>>> Unpacking source...
>>> Unpacking BestCrypt-1.6-1.tar.gz to /var/tmp/portage/bestcrypt-1.6_p1-r2/work
>>> 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 ]>>> Source unpacked.
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha'
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'
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256'
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' 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'

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

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="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~amd64"
USE="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"


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

Actual Results:  
compile failed

Expected Results:  
It should have emerged


Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/bestcrypt-1.6_p1-r2 to /
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) bestcrypt-1.5_p10.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1-r1.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1.ebuild
>>> md5 files   ;-) bestcrypt-1.5_p11.ebuild
>>> md5 files   ;-) bestcrypt-1.6_p1-r2.ebuild
>>> md5 files   ;-) files/bestcrypt.devfs
>>> md5 files   ;-) files/bcrypt3
>>> md5 files   ;-) files/bestcrypt-1.5_p10-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.5_p10
>>> md5 files   ;-) files/bestcrypt-1.6_p1-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1-r1
>>> md5 files   ;-) files/bestcrypt-1.5_p11-makefile_fix.patch
>>> md5 files   ;-) files/digest-bestcrypt-1.5_p11
>>> md5 files   ;-) files/digest-bestcrypt-1.6_p1-r2
>>> md5 src_uri ;-) BestCrypt-1.6-1.tar.gz
>>> 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
>>> Unpacking source...
>>> Unpacking BestCrypt-1.6-1.tar.gz to /var/tmp/portage/bestcrypt-1.6_p1-r2/work
>>> 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 ]>>> Source unpacked.
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha'
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'
make: Entering directory `/var/tmp/portage/bestcrypt-1.6_p1-r2/work/bcrypt/kgsha256'
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' 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'

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

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="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~amd64"
USE="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"
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-11-10 10:55:40 UTC
sorry I took so long   
   
this has been fixed in bestcrypt-1.6_p1-r2 that should appear next sync  
  
FYI for next time - "emerge info" output is a bit more consistant  
that /etc/make.conf pastings and is preferred. 
 
I'll try to do a version bump too soon.