naterkane
unread,Nov 12, 2009, 6:54:37 PM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Tokyo Cabinet Users
running into an issue installing tokyocabinet-1.4.38, and I need to
figure this out ASAP!
libbz2 seems to be complaining, but everything previously was working
fine.
this machine runs CentOS 5.3 and I'm trying to upgrade it from
tokyocabinet-1.4.15
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) installed w/ yum
previous versions of Cabinet and Tyrant have already been uninstalled.
# ./configure --enable-devel
#================================================================
# Configuring Tokyo Cabinet version 1.4.38 (devel).
#================================================================
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for main in -lc... yes
checking for main in -lm... yes
checking for main in -lpthread... yes
checking for main in -lrt... yes
checking for main in -lz... yes
checking for main in -lbz2... yes
checking for main in -ltokyocabinet... no
checking for stdlib.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tokyocabinet.pc
#================================================================
# Ready to make.
#================================================================
# make
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tcutil.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tchdb.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tcbdb.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tcfdb.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tctdb.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe tcadb.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe myconf.c
gcc -c -I. -I/usr/local/include -I/root/include -I/usr/local/include -
DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT -D__EXTENSIONS__ -UNDEBUG -
D_TC_PREFIX="\"/usr/local\"" -D_TC_INCLUDEDIR="\"/usr/local/include\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\"" -
D_TC_LIBEXECDIR="\"/usr/local/libexec\"" -D_TC_APPINC="\"-I/usr/local/
include\"" -D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -
lrt -lpthread -lm -lc \"" -g -O2 -std=c99 -Wall -fPIC -pedantic -
fsigned-char -g -O2 -pipe md5.c
ar rv libtokyocabinet.a tcutil.o tchdb.o tcbdb.o tcfdb.o tctdb.o
tcadb.o myconf.o md5.o
ar: creating libtokyocabinet.a
a - tcutil.o
a - tchdb.o
a - tcbdb.o
a - tcfdb.o
a - tctdb.o
a - tcadb.o
a - myconf.o
a - md5.o
if uname -a | egrep -i 'SunOS' > /dev/null ; \
then \
gcc -g -O2 -std=c99 -Wall -fPIC -pedantic -fsigned-char -g
-O2 -pipe -shared -Wl,-G,-h,libtokyocabinet.so.9 -o libtokyocabinet.so.
9.1.0 \
tcutil.o tchdb.o tcbdb.o tcfdb.o tctdb.o tcadb.o
myconf.o md5.o -L. -L/usr/local/lib -L/root/lib -L/usr/local/lib -lbz2
-lz -lrt -lpthread -lm -lc ; \
else \
gcc -g -O2 -std=c99 -Wall -fPIC -pedantic -fsigned-char -g
-O2 -pipe -shared -Wl,-soname,libtokyocabinet.so.9 -o
libtokyocabinet.so.9.1.0 \
tcutil.o tchdb.o tcbdb.o tcfdb.o tctdb.o tcadb.o
myconf.o md5.o -L. -L/usr/local/lib -L/root/lib -L/usr/local/lib -lbz2
-lz -lrt -lpthread -lm -lc ; \
fi
/usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libbz2.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libtokyocabinet.so.9.1.0] Error 1