Twister on Mac OS X Mavericks

Правила форума
keoskes
Сообщения: 26
Зарегистрирован: 27 окт 2013, 20:25
Откуда: Москва

Twister on Mac OS X Mavericks

Сообщение keoskes » 16 мар 2014, 10:06

При компиляции ошибка.

Код: Выделить всё

/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/__split_buffer:357:25: note: in
      instantiation of member function 'std::__1::allocator_traits<secure_allocator<unsigned
      char> >::deallocate' requested here
        __alloc_traits::deallocate(__alloc(), __first_, capacity());
                        ^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:994:53: note: in
      instantiation of member function 'std::__1::__split_buffer<unsigned char,
      secure_allocator<unsigned char> &>::~__split_buffer' requested here
        __split_buffer<value_type, allocator_type&> __v(__recommend(size() + __n), si...
                                                    ^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:1928:15: note: in
      instantiation of member function 'std::__1::vector<unsigned char,
      secure_allocator<unsigned char> >::__append' requested here
        this->__append(__sz - __cs);
              ^
src/key.cpp:176:17: note: in instantiation of member function 'std::__1::vector<unsigned
      char, secure_allocator<unsigned char> >::resize' requested here
        privkey.resize(nSize);
                ^
/usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here
void OPENSSL_cleanse(void *ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
180 warnings and 6 errors generated.
make[1]: *** [src/key.o] Error 1
make: *** [all-recursive] Error 1
Последние 20 строк.



P.S. Mac OS на виртуалке.

Аватара пользователя
Shift
Администратор
Сообщения: 577
Зарегистрирован: 15 сен 2013, 13:27

Re: Twister on Mac OS X Mavericks

Сообщение Shift » 16 мар 2014, 16:04

keoskes писал(а):При компиляции ошибка.

Код: Выделить всё

/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/__split_buffer:357:25: note: in
      instantiation of member function 'std::__1::allocator_traits<secure_allocator<unsigned
      char> >::deallocate' requested here
        __alloc_traits::deallocate(__alloc(), __first_, capacity());
                        ^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:994:53: note: in
      instantiation of member function 'std::__1::__split_buffer<unsigned char,
      secure_allocator<unsigned char> &>::~__split_buffer' requested here
        __split_buffer<value_type, allocator_type&> __v(__recommend(size() + __n), si...
                                                    ^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:1928:15: note: in
      instantiation of member function 'std::__1::vector<unsigned char,
      secure_allocator<unsigned char> >::__append' requested here
        this->__append(__sz - __cs);
              ^
src/key.cpp:176:17: note: in instantiation of member function 'std::__1::vector<unsigned
      char, secure_allocator<unsigned char> >::resize' requested here
        privkey.resize(nSize);
                ^
/usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here
void OPENSSL_cleanse(void *ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
     ^
180 warnings and 6 errors generated.
make[1]: *** [src/key.o] Error 1
make: *** [all-recursive] Error 1
Последние 20 строк.



P.S. Mac OS на виртуалке.
Пакеты все установил? попробуй по новой четко соблюдая инструкцию

keoskes
Сообщения: 26
Зарегистрирован: 27 окт 2013, 20:25
Откуда: Москва

Re: Twister on Mac OS X Mavericks

Сообщение keoskes » 16 апр 2014, 14:20

все по инструкции с гитхаба.

Код: Выделить всё

Admins-Mac:twister-core admin$ sudo ./configure --enable-logging --with-openssl=/usr/local/opt/openssl --with-libdb=/usr/local/opt/berkeley-db4
Password:
configure: WARNING: unrecognized options: --with-libdb
checking whether make supports nested variables... yes

Building twister 0.9.0

Checking for a C/C++ compiler to use:
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc and cc understand -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking whether g++ understands -c and -o together... yes

Checking system type:
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking target system type... x86_64-apple-darwin13.1.0

Initializing Automake:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3

Initializing Libtool:
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin13.1.0 file names to x86_64-apple-darwin13.1.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin13.1.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate

Checking for posix thread support:
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies... no
checking whether -pthread is sufficient with -shared... no
checking whether -lpthread fixes that... no
checking whether -lc_r fixes that... no
configure: WARNING: Impossible to determine how to use pthreads with shared libraries
Checking for visibility support:
checking for __attribute__((visibility("hidden")))... found
yes

Checking for boost libraries:
checking for boostlib >= 1.44... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system-mt... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-mt... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt... yes
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono-mt... yes
checking for Berkeley DB (C++) >= 4.8... not found

Checking for pkg-config:
checking for pkg-config... no

Checking for functions and headers:
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gethostbyname... yes
checking for gethostbyname_r... no
checking for clock_gettime... no
checking for clock_gettime in -lrt... no
checking for clock_gettime in -lposix4... no
configure: WARNING: clock_gettime function not found.

Checking build options:
checking whether deprecated functions should be enabled... yes
checking whether debug build should be enabled... yes
checking whether invariant check should be enabled... yes
checking whether logging to disk should be enabled... yes
checking whether statistics logging should be enabled... no
checking whether disk activity logging should be enabled... no

Checking features to be enabled:
checking whether encryption support should be enabled... yes
configure: encryption support: now checking for the OpenSSL library...
checking for openssl/ssl.h in /usr/local/opt/openssl... yes
checking whether compiling and linking against OpenSSL works... yes
checking whether SSE2 should be enabled... yes
checking whether miniupnp should be enabled... yes
checking whether geoip support should be enabled... yes
checking whether dht support should be enabled... yes
checking whether pool allocators should be enabled... yes

Checking for extra build files:
checking whether example files should be built... no
checking whether test files should be built... no
checking whether python bindings should be built... no

Checking for external libraries:
checking for FIEMAP support... checking linux/types.h usability... no
checking linux/types.h presence... no
checking for linux/types.h... no
checking for linux/fiemap.h... no
checking whether to link against system libgeoip... no
checking whether to link against system libiconv... checking for shared library run path origin... done
sed: include/libtorrent/version.hpp: No such file or directory

Generating Makefiles:
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-libdb

Configure script has finished system check.

   Config results:
  -=-=-=-=-=-=-=-=-

Package:
  name:                 twister
  version:              0.9.0
  svn revision:

Build environment:
  build system:         x86_64-apple-darwin13.1.0
  host system:          x86_64-apple-darwin13.1.0
  target system:        x86_64-apple-darwin13.1.0

Compiler and linker flags:
  CPPFlags:             -pthread -I/usr/local/include
  CFlags:               -D_THREAD_SAFE  -g -O2 -fvisibility=hidden
  CXXFlags:             -g -O2 -fvisibility-inlines-hidden -DUSE_SSE2 -msse2
  LDFlags:              -L/usr/local/lib  -lboost_chrono-mt
  Libs:
  Defs:                 -DPACKAGE_NAME=\"twister\" -DPACKAGE_TARNAME=\"twister\" -DPACKAGE_VERSION=\"0.9.0\" -DPACKAGE_STRING=\"twister\ 0.9.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"twister\" -DVERSION=\"0.9.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DHAVE_BOOST=/\*\*/ -DHAVE_BOOST_SYSTEM=1 -DHAVE_BOOST_FILESYSTEM=/\*\*/ -DHAVE_BOOST_PROGRAM_OPTIONS=/\*\*/ -DHAVE_BOOST_THREAD=/\*\*/ -DHAVE_BOOST_CHRONO=/\*\*/ -DHAVE_GETHOSTBYNAME=1 -DTORRENT_DEBUG=1 -DTORRENT_LOGGING=1 -DTORRENT_USE_OPENSSL=1 -DUSE_SSE2=1 -DUSE_UPNP=1 -DWITH_SHIPPED_GEOIP_H=1 -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE=1 -DBOOST_ASIO_ENABLE_CANCELIO=1 -DBOOST_ASIO_DYN_LINK=1 -DTORRENT_BUILDING_SHARED=1

Build options:
  deprecated functions: yes
  debug build:          yes
  invariant checks:     yes
  logging support:      yes
  statistics:           no
  disk statistics:      no

Features:
  encryption support:   yes
  SSE2 Scrypt:          yes
  miniupnp support:     yes
  geoip support:        yes
  dht support:          yes
  pool allocators:      yes

Extra builds:
  examples:             no
  tests:                no
  python bindings:      no

Pthread library:
  CFlags:               -D_THREAD_SAFE
  Libs:

Boost libraries:
  version:
  CPPFlags:             -pthread -I/usr/local/include
  LDFlags:              -L/usr/local/lib
  boost.system:         -lboost_system-mt

External libraries:
  system libgeoip:      no
  system libiconv:      no

OpenSSL library:
  OpenSSL Libs:         -lssl -lcrypto
  OpenSSL LDFlags:      -L/usr/local/opt/openssl/lib
  OpenSSL Includes:     -I/usr/local/opt/openssl/include

Type 'make' to compile twister 0.9.0
or type 'make V=1' for verbose compiling
and then 'make install' to install it into /usr/local

Admins-Mac:twister-core admin$ make
Making all in src/leveldb
make[1]: Nothing to be done for `all'.
  CXX      src/key.o
src/key.cpp:583:24: warning: implicit conversion of NULL constant to 'bool'
      [-Wnull-conversion]
                return NULL;
                ~~~~~~ ^~~~
                       false
error: error opening 'src/.deps/key.Tpo': Error opening output file
      'src/.deps/key.Tpo': Permission denied
1 warning and 1 error generated.
make[1]: *** [src/key.o] Error 1
make: *** [all-recursive] Error 1
Admins-Mac:twister-core admin$ sudo make
Making all in src/leveldb
make[1]: Nothing to be done for `all'.
  CXX      src/key.o
src/key.cpp:583:24: warning: implicit conversion of NULL constant to 'bool'
      [-Wnull-conversion]
                return NULL;
                ~~~~~~ ^~~~
                       false
1 warning generated.
  CXX      src/db.o
In file included from src/db.cpp:7:
./src/db.h:16:10: fatal error: 'db_cxx.h' file not found
#include <db_cxx.h>
         ^
1 error generated.
make[1]: *** [src/db.o] Error 1
make: *** [all-recursive] Error 1
Admins-Mac:twister-core admin$

Аватара пользователя
Shift
Администратор
Сообщения: 577
Зарегистрирован: 15 сен 2013, 13:27

Re: Twister on Mac OS X Mavericks

Сообщение Shift » 24 апр 2014, 17:09

Либо не все библиотеки встали, либо версия OS X не последняя, могу предложить юзать уже собранный вариант

keoskes
Сообщения: 26
Зарегистрирован: 27 окт 2013, 20:25
Откуда: Москва

Re: Twister on Mac OS X Mavericks

Сообщение keoskes » 23 май 2014, 06:32

Shift писал(а):Либо не все библиотеки встали, либо версия OS X не последняя, могу предложить юзать уже собранный вариант

Код: Выделить всё

mbp-alex:twister-core keoskes$ sudo ./twisterd -daemon
Password:
dyld: Library not loaded: @@[email protected]@/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/keoskes/twister-core/./twisterd
  Reason: image not found
mbp-alex:twister-core keoskes$ brew install libssl.1.0.0.dylib
Error: No available formula for libssl.1.0.0.dylib
Searching taps...

mbp-alex:twister-core keoskes$ sudo port install libssl.1.0.0.dylib
Error: Port libssl.1.0.0.dylib not found
mbp-alex:twister-core keoskes$ brew install libssl.1.0.0.dylib
Error: No available formula for libssl.1.0.0.dylib
Searching taps...
Это уже на другом Маке, не на виртуалке. Все обновления установлены... Как бы эту либу скачать.


P.S. в статье на хабре линк на уже скомпиленный твистер для MacOS - устарел. перезалейте, пожалуйста.

Аватара пользователя
Shift
Администратор
Сообщения: 577
Зарегистрирован: 15 сен 2013, 13:27

Re: Twister on Mac OS X Mavericks

Сообщение Shift » 23 май 2014, 10:30

brew install libssl - будет достаточно

Сборки живут тут https://github.com/iShift/twister-webkit/releases

keoskes
Сообщения: 26
Зарегистрирован: 27 окт 2013, 20:25
Откуда: Москва

Re: Twister on Mac OS X Mavericks

Сообщение keoskes » 23 май 2014, 10:38

Shift писал(а):brew install libssl - будет достаточно

Сборки живут тут https://github.com/iShift/twister-webkit/releases

Код: Выделить всё

mbp-alex:twister-core keoskes$ brew install libssl
Error: No available formula for libssl
Searching taps...
mbp-alex:twister-core keoskes$

P.S. спасибо за оперативность :)

Аватара пользователя
Shift
Администратор
Сообщения: 577
Зарегистрирован: 15 сен 2013, 13:27

Re: Twister on Mac OS X Mavericks

Сообщение Shift » 23 май 2014, 22:55

openssl же =)

keoskes
Сообщения: 26
Зарегистрирован: 27 окт 2013, 20:25
Откуда: Москва

Re: Twister on Mac OS X Mavericks

Сообщение keoskes » 24 май 2014, 06:58

Shift писал(а):openssl же =)

говорит, already installed.

////////////////////////////////////////
в таком виде висит и ничего не происходит.
Изображение

Код: Выделить всё

MacBook-Pro-Alex:twister-core keoskes$ ./twisterd
dyld: Library not loaded: @@[email protected]@/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/keoskes/twister-core/./twisterd
  Reason: image not found
Trace/BPT trap: 5
MacBook-Pro-Alex:twister-core keoskes$
Что мне с этой библиотекой сделать?

ищу инфу по удалению гита с твистером. Они кофликтуют с твоей сборкой. Или просто можно директорию ~/twister-core снести?




Немного оффтопа. Shift, в twistere нельзя получать сообщения (личные) от человека, на которого ты не подписан.

Аватара пользователя
Shift
Администратор
Сообщения: 577
Зарегистрирован: 15 сен 2013, 13:27

Re: Twister on Mac OS X Mavericks

Сообщение Shift » 24 май 2014, 16:01

У тебя возможно не слинкована библиотека.

Но это вообще не должно никак влиять на бандл от сам включает в себе все библиотеки.

Ответить

Вернуться в «Twister»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 1 гость