Pages:
Author

Topic: pushpool - open source pool software - page 3. (Read 120158 times)

newbie
Activity: 19
Merit: 0
August 31, 2011, 04: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:

Code:
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!
full member
Activity: 175
Merit: 100
August 09, 2011, 05: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.
sr. member
Activity: 266
Merit: 254
August 05, 2011, 06: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.
hero member
Activity: 780
Merit: 510
Bitcoin - helping to end bankster enslavement.
August 04, 2011, 11:29:17 AM
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...

Code:
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?
full member
Activity: 175
Merit: 100
July 19, 2011, 06: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.
sr. member
Activity: 280
Merit: 252
July 18, 2011, 01:49:24 PM
Does anybody see any potential problems with this upcoming namecoin/bitcoin merged mining addon?
legendary
Activity: 1260
Merit: 1000
July 17, 2011, 01: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.
newbie
Activity: 6
Merit: 0
July 11, 2011, 09:55:05 AM
Would be cool if we got a windows build
legendary
Activity: 980
Merit: 1003
I'm not just any shaman, I'm a Sha256man
July 07, 2011, 01: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
member
Activity: 68
Merit: 10
High Desert Dweller-Where Space and Time Meet $
July 06, 2011, 11:04:27 PM
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.
newbie
Activity: 5
Merit: 0
July 04, 2011, 03:49:56 PM
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 Smiley.
sr. member
Activity: 448
Merit: 250
July 04, 2011, 12:07:22 PM
No, but the debian fixes should work fine on BSD. 
newbie
Activity: 5
Merit: 0
July 04, 2011, 11:56:20 AM
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?
sr. member
Activity: 448
Merit: 250
July 03, 2011, 04: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) ([email protected]) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Jan 25 05:59:43 UTC 2011


full member
Activity: 126
Merit: 100
July 02, 2011, 10:53:57 PM
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.
sr. member
Activity: 448
Merit: 250
July 02, 2011, 08:26:58 PM
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?
kjj
legendary
Activity: 1302
Merit: 1025
June 29, 2011, 07: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.
sr. member
Activity: 313
Merit: 258
June 29, 2011, 07: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


legendary
Activity: 1260
Merit: 1000
June 28, 2011, 11:41:26 PM
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
hero member
Activity: 812
Merit: 1001
-
June 28, 2011, 11:35:49 PM
Yes I am actually running it as root.

...

preparing to hear a patronizing lecture on how it is bad to run things as root....


Pages:
Jump to: