LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   kyotocabinet (1.2.76) Sbo and Slackware Current (http://www.linuxquestions.org/questions/slackware-14/kyotocabinet-1-2-76-sbo-and-slackware-current-4175452713/)

carlitoco 03-04-2013 06:29 PM

kyotocabinet (1.2.76) Sbo and Slackware Current
 
If I run the script, got these error:
Code:

ar: creating libkyotocabinet.a
a - kcutil.o
a - kcthread.o
a - kcfile.o
a - kccompress.o
a - kccompare.o
a - kcmap.o
a - kcregex.o
a - kcdb.o
a - kcplantdb.o
a - kcprotodb.o
a - kcstashdb.o
a - kccachedb.o
a - kchashdb.o
a - kcdirdb.o
a - kctextdb.o
a - kcpolydb.o
a - kcdbext.o
a - kclangc.o
if uname -a | egrep -i 'SunOS' > /dev/null ; \
  then \
    g++ -march=native -O2 -march=i486 -mtune=i686 -Wall -fPIC -fsigned-char -g0 -O2 -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -shared -Wl,-G,-h,libkyotocabinet.so.16 -o libkyotocabinet.so.16.13.0 \
      kcutil.o kcthread.o kcfile.o kccompress.o kccompare.o kcmap.o kcregex.o kcdb.o kcplantdb.o kcprotodb.o kcstashdb.o kccachedb.o kchashdb.o kcdirdb.o kctextdb.o kcpolydb.o kcdbext.o kclangc.o -L. -L/usr/lib -L/usr/local/lib -Wl,-rpath-link,.:/usr/local/lib:.:/usr/local/lib: -Wl,--as-needed -lz -lstdc++ -lrt -lpthread -lm -lc  ; \
  else \
    g++ -march=native -O2 -march=i486 -mtune=i686 -Wall -fPIC -fsigned-char -g0 -O2 -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -shared -Wl,-soname,libkyotocabinet.so.16 -o libkyotocabinet.so.16.13.0 \
      kcutil.o kcthread.o kcfile.o kccompress.o kccompare.o kcmap.o kcregex.o kcdb.o kcplantdb.o kcprotodb.o kcstashdb.o kccachedb.o kchashdb.o kcdirdb.o kctextdb.o kcpolydb.o kcdbext.o kclangc.o -L. -L/usr/lib -L/usr/local/lib -Wl,-rpath-link,.:/usr/local/lib:.:/usr/local/lib: -Wl,--as-needed -lz -lstdc++ -lrt -lpthread -lm -lc  ; \
  fi
ln -f -s libkyotocabinet.so.16.13.0 libkyotocabinet.so.16
ln -f -s libkyotocabinet.so.16.13.0 libkyotocabinet.so
g++ -c -I. -I/usr/include -I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__ -D_MYZLIB -D_MYGCCATOMIC -D_KC_PREFIX="\"/usr\"" -D_KC_INCLUDEDIR="\"/usr/include\"" -D_KC_LIBDIR="\"/usr/lib\"" -D_KC_BINDIR="\"/usr/bin\"" -D_KC_LIBEXECDIR="\"/usr/libexec\"" -D_KC_APPINC="\"-I/usr/include\"" -D_KC_APPLIBS="\"-L/usr/lib -lkyotocabinet -lz -lstdc++ -lrt -lpthread -lm -lc \"" -march=native -O2 -march=i486 -mtune=i686 -Wall -fPIC -fsigned-char -g0 -O2 -Wno-unused-but-set-variable -Wno-unused-but-set-parameter kcutiltest.cc
g++ -march=native -O2 -march=i486 -mtune=i686 -Wall -fPIC -fsigned-char -g0 -O2 -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -o kcutiltest kcutiltest.o -L. -L/usr/lib -L/usr/local/lib -Wl,-rpath-link,.:/usr/local/lib:.:/usr/local/lib: -Wl,--as-needed  -lkyotocabinet
./libkyotocabinet.so: undefined reference to `__sync_lock_test_and_set_8'
./libkyotocabinet.so: undefined reference to `__sync_fetch_and_add_8'
./libkyotocabinet.so: undefined reference to `__sync_bool_compare_and_swap_8'
collect2: error: ld returned 1 exit status
make: *** [kcutiltest] Error 1

anny ideas ? thank you!

ponce 03-04-2013 11:24 PM

could you please check if this works for you? :)

http://ponce.cc/slackware/testing/kyotocabinet/

carlitoco 03-05-2013 01:33 PM

thank you!
 
Code:

usr/doc/kyotocabinet-1.2.76/README

Slackware package /tmp/kyotocabinet-1.2.76-i486-2_SBo.tgz created.


carlitoco 03-06-2013 04:51 AM

Same error with slackware 14 !

ponce 03-06-2013 05:23 AM

I'll push the testing script above soon ;)


All times are GMT -5. The time now is 08:12 AM.