Comments (23)
i tried to build ... first i had some trouble with libtoolize and was just naiv and symlink glibtoolize to it ..
then i got this error when i try to build from github source.
In file included from formdata.c:39:
../lib/strequal.h:33:8: error: expected parameter declarator
size_t strlcat(char *dst, const char *src, size_t siz);
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
In file included from formdata.c:39:
../lib/strequal.h:33:8: error: expected ')'
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
/usr/include/secure/_common.h:30:32: note: expanded from macro
'_USE_FORTIFY_LEVEL'
# define _USE_FORTIFY_LEVEL 2
^
../lib/strequal.h:33:8: note: to match this '('
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from formdata.c:39:
../lib/strequal.h:33:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
size_t strlcat(char *dst, const char *src, size_t siz);
^
/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIF...
^
In file included from formdata.c:39:
../lib/strequal.h:33:8: error: conflicting types for '__builtin___strlcat_chk'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
../lib/strequal.h:33:8: note: '__builtin___strlcat_chk' is a builtin with type
'unsigned long (char *, const char *, unsigned long, unsigned long)'
/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
__builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
^
1 warning and 3 errors generated.
make[2]: *** [formdata.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1```
from rtorrent-ps.
Try to install liibtool on terminal using:
curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar -xzf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure && make && sudo make install
Can you post the way you applied patches, 'cause I didn't found it
from rtorrent-ps.
i installed libtoolize with brew..
i don't apply any patches.. i just run ./build all
but still i got the same error message.. it looks like OS X don't like the usage of strlcat
see here .. similar issue
https://github.com/Homebrew/homebrew-science/issues/369
from rtorrent-ps.
I have tried out today, but I got your result, luxus.
Pyroscope added dependency packages into build.sh , so I commented out it:
BUILD_PKG_DEPS=( libncurses5-dev libncursesw5-dev libsigc++-2.0-dev libssl-dev libcppunit-dev locales )
I'm pretty sure these dev packages are missing, but I couldn't find the corresponding packages in Homebrew. I tried after installing these (and received the same error like you):
brew install libtool
brew install ncurses
brew link --force ncurses
brew install libsigc++
brew install cppunit
from rtorrent-ps.
This is a curl problem! Also see sleuthkit/sleuthkit#260 for a solution. Try a newer curl, and/or try to compile upstream curl and open a PR there if they still have that problem.
from rtorrent-ps.
See 58c3111
from rtorrent-ps.
puh, my skills are too low to understand what i can try now :(
from rtorrent-ps.
A git pull --ff-only
and starting a new build. The default curl is now from this month, and xmlrpc-c from October.
from rtorrent-ps.
Thanks for answering, would it be possible to use glibtool and glibtoolize on OS X systems(brew). They just use a different name to prevent conflicts with the builtin libtool
from rtorrent-ps.
thanks for adding the glibtoolize support..
next problem has todo with not using the right compiler, if i understand correct see rakshasa/libtorrent#47 , Homebrew/legacy-homebrew#44188 (comment) & https://github.com/Homebrew/homebrew/blob/576d6f97c265450c0c765538f2a713b67d9b97eb/Library/Formula/rtorrent.rb
i end up with this error
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /Users/kai/github/rtorrent-ps/libtorrent-0.13.6/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
Making all in src
Making all in torrent
Making all in data
/bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I /Users/kai/lib/rtorrent-0.9.6/include -I/usr/include -I/usr/include -D_THREAD_SAFE -O2 -Wall -g -DDEBUG -fvisibility=hidden -I/usr/local/Cellar/openssl/1.0.2f/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I /Users/kai/lib/rtorrent-0.9.6/include -I/usr/include -I/usr/include -D_THREAD_SAFE -O2 -Wall -g -DDEBUG -fvisibility=hidden -I/usr/local/Cellar/openssl/1.0.2f/include -MT block.lo -MD -MP -MF .deps/block.Tpo -c block.cc -fno-common -DPIC -o .libs/block.o
In file included from block.cc:44:
In file included from ./../../protocol/peer_connection_base.h:42:
./../../torrent/poll.h:40:10: fatal error: 'tr1/functional' file not found
#include <tr1/functional>
^
1 error generated.
make[4]: *** [block.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
from rtorrent-ps.
See the issue's label, someone actually on that platform has to make the necessary changes.
from rtorrent-ps.
@luxus what was suggested in issue rakshasa/libtorrent#47 (comment) did not work for me either. Homebrew formulas, libtorrent
and rtorrent
have a hint on how to proceed with the build itself; append -stdlib=libstdc++
to CXXFLAGS
before you run ./configure
.
If you want xmlrpc-c
feature as well, then compile it with the above option.
@pyroscope if you could host a Homebrew
tap, e.g., https://github.com/pyroscope/homebrew-rtorrent-ps
under your organization for Mac OS X users, I'm willing to contribute for preparing working formulas for all three packages - libtorrent
, xmlrpc-c
and rtorrent
.
from rtorrent-ps.
@tzudot was you able to build it?
from rtorrent-ps.
@luxus yes, use the aforementioned build flag option before you run ./configure
.
from rtorrent-ps.
@pyroscope I'll start a Homebrew
tap, prepare the formulas, and when they are ready you could host under pyroscope
organization.
from rtorrent-ps.
@tzudot thanks for your help.
i was able to build when exporting your recommendation before execute build.sh .
but i run into trouble with the old curl version from OS X. i think i will just wait until you release your tap
from rtorrent-ps.
Carry on in https://github.com/pyroscope/homebrew-rtorrent-ps/issues
from rtorrent-ps.
@tzudot It'd make sense for you to join the freenode IRC channel.
from rtorrent-ps.
hey @tzudot do you have time for this?
greetings from germany
from rtorrent-ps.
@luxus I apologize for the delay. Could not get online with my irc nick, which I have now sorted out and prior to that went out of station for a bit more than a week.
I have tried to port the install script to Homebrew partially but faced few issues, which I need to discuss on irc.
from rtorrent-ps.
@tzudot did you read the comment on your issue on rtorrent? that you should use head instead of release (0.9.6)
update: ok i read your comment on homebrew repo
from rtorrent-ps.
Hello all! I don't understand, how i can install rtorrent-ps on my mac? I try compile this via git, its not working, have an error. And i don't understand how use homebrew tap and add repo there.
from rtorrent-ps.
@flomazter at the moment rtorrent is not working on el capitan with xmlrpc-c
@tzudot posted the issue here rakshasa/rtorrent#400 (comment)
from rtorrent-ps.
Related Issues (20)
- DHT unusable on armhf, need help recompiling HOT 2
- Typo in xmlrpc-c-advanced-2954/common.mk
- Latest, unable to build centos 6.5. HOT 4
- Deleting files, or make large changes makes ruTorrent/rTorrent time out HOT 1
- Bad method Key Error
- Weird issue - seeds "frozen" or not killed based on slots.. not re-added to the queue HOT 2
- rtorrent-ps with pyroscope... HOT 1
- Read past initial payload after incoming encrypted handshake. HOT 1
- See schedules already set HOT 1
- Bug in libtorrent (rakshasa) <0.9.8 HOT 1
- Buildscript does not work on arch linux HOT 2
- rtorrent status in terminal window's title
- Is this still in maintenance? HOT 1
- Feature: Add load.import command
- xmplrpc-c does not build on Debian Bullseye aarch64 (via Docker)
- bintray binaries unavailable HOT 2
- Migrate from rtorrent to rtorrent-ps
- Specifying `--json -o active` along with `--start` generates a python dict related error
- Will there ever be new binaries? HOT 1
- Unable to build rtorrent-ps on ODROID-HC4 (Debian 10) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtorrent-ps.