Vladimir
|
|
June 29, 2011, 03:35:49 AM |
|
Yes I am actually running it as root.
...
preparing to hear a patronizing lecture on how it is bad to run things as root....
|
-
|
|
|
Inaba
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
June 29, 2011, 03:41:26 AM |
|
Add this as well:
/etc/sysctl.conf fs.file-max = 200000 net.ipv4.tcp_fin_timeout = 10 net.ipv4.ip_local_port_range = 10000 65000
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
sergio
|
|
June 29, 2011, 11:22:40 AM |
|
Under Centos 5.5 when compiling pushpool 0.5 I get this errrors:
/root/pushpool05/pushpool-0.5/msg.c:562: undefined reference to `htole32' server.o: In function `cli_send_hdronly': /root/pushpool05/pushpool-0.5/server.c:328: undefined reference to `htole32' server.o: In function `cjson_encode': /root/pushpool05/pushpool-0.5/server.c:231: undefined reference to `htole32' /root/pushpool05/pushpool-0.5/server.c:234: undefined reference to `htole32' server.o: In function `cjson_decode': /root/pushpool05/pushpool-0.5/server.c:167: undefined reference to `le32toh' server.o: In function `cli_read_hdr': /root/pushpool05/pushpool-0.5/server.c:468: undefined reference to `le32toh' collect2: ld returned 1 exit status make[1]: *** [pushpoold] Error 1
Can someone define htole32 and le32toh since they are not part of ansi C, and therefore fail to compile under Centos 5.5 using gcc 4.1.2
Thanks
|
|
|
|
kjj
Legendary
Offline
Activity: 1302
Merit: 1026
|
|
June 29, 2011, 11:34:45 AM |
|
Under Centos 5.5 when compiling pushpool 0.5 I get this errrors:
/root/pushpool05/pushpool-0.5/msg.c:562: undefined reference to `htole32' server.o: In function `cli_send_hdronly': /root/pushpool05/pushpool-0.5/server.c:328: undefined reference to `htole32' server.o: In function `cjson_encode': /root/pushpool05/pushpool-0.5/server.c:231: undefined reference to `htole32' /root/pushpool05/pushpool-0.5/server.c:234: undefined reference to `htole32' server.o: In function `cjson_decode': /root/pushpool05/pushpool-0.5/server.c:167: undefined reference to `le32toh' server.o: In function `cli_read_hdr': /root/pushpool05/pushpool-0.5/server.c:468: undefined reference to `le32toh' collect2: ld returned 1 exit status make[1]: *** [pushpoold] Error 1
Can someone define htole32 and le32toh since they are not part of ansi C, and therefore fail to compile under Centos 5.5 using gcc 4.1.2
The answer is way back on page 3.
|
17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8 I routinely ignore posters with paid advertising in their sigs. You should too.
|
|
|
AndyRossy
|
|
July 03, 2011, 12:26:58 AM |
|
Hey
trying to compile pushpoold on 64bit debian
kokade:~/bc/pushpool-0.5.1# make make all-am make[1]: Entering directory `/root/bc/pushpool-0.5.1' gcc -O2 -Wall -g -I/usr/local/include -pthread -L/usr/local/lib -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -levent -lpthread -ljansson -lcrypto -lz -lmemcached -L/usr/lib -lpq msg.o: In function `cli_op_work_get': /root/bc/pushpool-0.5.1/msg.c:562: undefined reference to `htole32' server.o: In function `cjson_decode': /root/bc/pushpool-0.5.1/server.c:167: undefined reference to `le32toh' server.o: In function `cli_send_hdronly': /root/bc/pushpool-0.5.1/server.c:328: undefined reference to `htole32' server.o: In function `cjson_encode': /root/bc/pushpool-0.5.1/server.c:231: undefined reference to `htole32' /root/bc/pushpool-0.5.1/server.c:234: undefined reference to `htole32' server.o: In function `cli_read_hdr': /root/bc/pushpool-0.5.1/server.c:468: undefined reference to `le32toh' collect2: ld returned 1 exit status make[1]: *** [pushpoold] Error 1 make[1]: Leaving directory `/root/bc/pushpool-0.5.1' make: *** [all] Error 2 kokade:~/bc/pushpool-0.5.1#
Any ideas? endian.h exists, is it to do with it being 64bit arch?
|
|
|
|
dikidera
|
|
July 03, 2011, 02:53:57 AM |
|
Hey
trying to compile pushpoold on 64bit debian
kokade:~/bc/pushpool-0.5.1# make make all-am make[1]: Entering directory `/root/bc/pushpool-0.5.1' gcc -O2 -Wall -g -I/usr/local/include -pthread -L/usr/local/lib -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -levent -lpthread -ljansson -lcrypto -lz -lmemcached -L/usr/lib -lpq msg.o: In function `cli_op_work_get': /root/bc/pushpool-0.5.1/msg.c:562: undefined reference to `htole32' server.o: In function `cjson_decode': /root/bc/pushpool-0.5.1/server.c:167: undefined reference to `le32toh' server.o: In function `cli_send_hdronly': /root/bc/pushpool-0.5.1/server.c:328: undefined reference to `htole32' server.o: In function `cjson_encode': /root/bc/pushpool-0.5.1/server.c:231: undefined reference to `htole32' /root/bc/pushpool-0.5.1/server.c:234: undefined reference to `htole32' server.o: In function `cli_read_hdr': /root/bc/pushpool-0.5.1/server.c:468: undefined reference to `le32toh' collect2: ld returned 1 exit status make[1]: *** [pushpoold] Error 1 make[1]: Leaving directory `/root/bc/pushpool-0.5.1' make: *** [all] Error 2 kokade:~/bc/pushpool-0.5.1#
Any ideas? endian.h exists, is it to do with it being 64bit arch?
You dont deserve any help if you failed to read the previous post.
|
|
|
|
AndyRossy
|
|
July 03, 2011, 08:19:51 AM |
|
oops, true this. I thought it was to do with endian.h - which seems to exist and be included. Mucho apologies. doing the fix mentioned earlier (some macro + another include) seems to have made it compile, but, not tested it out yet. For reference, also on Lenny debian. kokade:~/bc/pushpool-0.5.1# cat /proc/version Linux version 2.6.26-2-amd64 (Debian 2.6.26-26lenny2) ( dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Jan 25 05:59:43 UTC 2011
|
|
|
|
zapnap
Newbie
Offline
Activity: 5
Merit: 0
|
|
July 04, 2011, 03:56:20 PM |
|
I patched pushpool awhile back so it would compile on OS X but I still seem to have some issues getting clients to talk to it. Is anyone else having any level of success on OS X or *BSD platforms with the endian fixes?
|
|
|
|
AndyRossy
|
|
July 04, 2011, 04:07:22 PM |
|
No, but the debian fixes should work fine on BSD.
|
|
|
|
zapnap
Newbie
Offline
Activity: 5
Merit: 0
|
|
July 04, 2011, 07:49:56 PM Last edit: July 05, 2011, 01:01:13 AM by zapnap |
|
Actually it looks like the issues I'm seeing on OS X have nothing at all to do with the endianness. Content-length seems to be incorrect here for some reason. Investigating now. If anyone else is trying to run pushpool on OS X, please drop me a note. Would love to compare notes / sanity check. Update: the problem had to do with strndup on OS X. Fixed and pushed to my fork at http://github.com/zapnap/pushpool. If someone else is using OS X I'd love to hear from you .
|
|
|
|
LehmanSister
Member
Offline
Activity: 68
Merit: 10
High Desert Dweller-Where Space and Time Meet $
|
|
July 07, 2011, 03:04:27 AM |
|
Feature Request:
I'd like to be able to do have a status() call to go along with getwork() by default.
Currently, what I do is try to connect to the pool before launching a miner on it, authorize appropriately, then GET /, to see if i get a 400 code. I'd rather be able to get back a dict with information like:
"next_scheduled_downtime" "switch_to_this_pool_server" "load" "administrator_note"
Ratelimiting status() would be fine as well, as saying "we're up, but we don't know you well enough to let you use status() yet".
I also don't want my bad requests to make the system think I'm attacking it.
|
ISO: small island nations with large native populations excited to pay tribute to flying gods, will trade BTC.
|
|
|
Xenland
Legendary
Offline
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
|
|
July 07, 2011, 05:11:07 AM |
|
Feature Request:
I'd like to be able to do have a status() call to go along with getwork() by default.
Currently, what I do is try to connect to the pool before launching a miner on it, authorize appropriately, then GET /, to see if i get a 400 code. I'd rather be able to get back a dict with information like:
"next_scheduled_downtime" "switch_to_this_pool_server" "load" "administrator_note"
Ratelimiting status() would be fine as well, as saying "we're up, but we don't know you well enough to let you use status() yet".
I also don't want my bad requests to make the system think I'm attacking it.
1+ Great idea this would help alot of confusion with many users and debugging setups
|
|
|
|
nexus
Newbie
Offline
Activity: 6
Merit: 0
|
|
July 11, 2011, 01:55:05 PM |
|
Would be cool if we got a windows build
|
|
|
|
Inaba
Legendary
Offline
Activity: 1260
Merit: 1000
|
|
July 17, 2011, 05:20:42 AM |
|
Would be cool if we got a windows build
I can't imagine this ever working under windows; the tweaks you'd have to do would be ... incredibly time consuming.
|
If you're searching these lines for a point, you've probably missed it. There was never anything there in the first place.
|
|
|
|
Furyan
|
|
July 19, 2011, 10:13:23 PM |
|
Would be cool if we got a windows build
I can't imagine this ever working under windows; the tweaks you'd have to do would be ... incredibly time consuming. Would make much more sense to build one natively for windows. I will be doing that at some point. Someone else has already started but it isn't very far along.
|
|
|
|
DavinciJ15
|
|
August 04, 2011, 03:29:17 PM |
|
I am not sure if I got blkmon running correctly on my pool at nmcbit.com I would run it and it would connect and disconnect like this... Connecting connected close close I looked at the source code and I looks like its looking to see if a new block is found and killing the pushpoold I jjust did not find where it starts it up again. Anyhow I switch the port that was set in blkmond.conf file to the RPC port and it stayed connected but it's not doing anything. My problem is pushpoold stops working a while after it finds a block. Can anyone help?
|
|
|
|
shads
|
|
August 05, 2011, 10:06:28 AM |
|
Would be cool if we got a windows build
I can't imagine this ever working under windows; the tweaks you'd have to do would be ... incredibly time consuming. Would make much more sense to build one natively for windows. I will be doing that at some point. Someone else has already started but it isn't very far along. PoolserverJ will run under windows as a service.
|
|
|
|
Furyan
|
|
August 09, 2011, 09:26:31 PM |
|
Would be cool if we got a windows build
I can't imagine this ever working under windows; the tweaks you'd have to do would be ... incredibly time consuming. Would make much more sense to build one natively for windows. I will be doing that at some point. Someone else has already started but it isn't very far along. PoolserverJ will run under windows as a service. Yep - I've posted in your PoolServerJ thread - I'm very very interested in this project.
|
|
|
|
pantherqs
Newbie
Offline
Activity: 19
Merit: 0
|
|
August 31, 2011, 08:05:23 AM |
|
Howdy, trying to get pushpoold setup on CentOS, searched around but couldn't seem to find a solution for it short of switching OS'. Anyone have any idea what could be wrong here? sqlite-devel is installed, at least I think it is. Error on make: make all-am make[1]: Entering directory `/home/pushpool/pushpool-0.4.1' gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -pthread -I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -g -O2 -MT db-sqlite.o -MD -MP -MF .deps/db-sqlite.Tpo -c -o db-sqlite.o db-sqlite.c db-sqlite.c: In function 'sql_open': db-sqlite.c:137: error: 'SQLITE_OPEN_READWRITE' undeclared (first use in this function) db-sqlite.c:137: error: (Each undeclared identifier is reported only once db-sqlite.c:137: error: for each function it appears in.) make[1]: *** [db-sqlite.o] Error 1 make[1]: Leaving directory `/home/pushpool/pushpool-0.4.1' make: *** [all] Error 2
Thanks!
|
|
|
|
|