Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problem #60

Open
delkon opened this issue Jan 9, 2013 · 2 comments
Open

Build problem #60

delkon opened this issue Jan 9, 2013 · 2 comments

Comments

@delkon
Copy link

delkon commented Jan 9, 2013

Hello,
I'm new in GO.
I have decide to use your implementation of Thrift for Go.
After reading your manual installation instruction steps I have
downloaded last Thrift 0.9.0 from git and start building process:

My build script is follow:

#!/bin/bash
export THRIFT=$(pwd)/thrift
export THRIFT4GO=$(pwd)/thrift4go
export GOROOT="/usr/lib/go"
export GOBIN="/usr/bin"
export GOPATH="/home/user/projects/go"

bash $THRIFT4GO/scripts/merge_and_build.sh -b

cd $THRIFT
#./cleanup.sh
#Thrift from git trunk doesn't have configure and it should be created first
./bootstrap.sh
./configure --with-go --without-python --without-csharp

make
if "$?" == "1"; then
    ln -s $THRIFT/lib/go/src/thrift $GOPATH/src/thrift
    go install thrift
fi

But make doesn't work well for GO, whereis the problem ?
I have correct installed GO with exported GOPATH variable in bash, "go install" worked for other projects.
I can't understand why in your sources GO can't find package.

   === RUN TestReadWriteSimpleJSONStruct
--- PASS: TestReadWriteSimpleJSONStruct (0.00 seconds)
tsimple_json_protocol_test.go:646:  Memory buffer contents:  {"num1":25,"num2":102,"op":1,"comment":"Add: 25 +     102"}
    tsimple_json_protocol_test.go:649:  Read struct value: &thrift.Work{TStruct:(*thrift.tStruct)(0xf8401f9580),     _:interface     {}(nil), Num1:25, Num2:102, Op:1, Comment:"Add: 25 + 102"}
=== RUN TestReadWriteSimpleJSONProtocol
--- PASS: TestReadWriteSimpleJSONProtocol (0.01 seconds)
PASS
ok      thrift  0.034s
make[3]: Leaving directory `/home/user/projects/delkon/thrift/lib/go'
make[3]: Entering directory `/home/user/projects/delkon/thrift/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/user/projects/delkon/thrift/lib'
make[2]: Leaving directory `/home/user/projects/delkon/thrift/lib'
Making all in tutorial
make[2]: Entering directory `/home/user/projects/delkon/thrift/tutorial'
make[2]: *** No rule to make target `all'.  Stop.
make[2]: Leaving directory `/home/user/projects/delkon/thrift/tutorial'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/projects/delkon/thrift'
make: *** [all] Error 2

Thank you for any input
p.s
Arch linux (X86, 64)

@delkon delkon closed this as completed Jan 9, 2013
@delkon delkon reopened this Jan 9, 2013
@nairboon
Copy link

could you paste which tests are failing?
here with thrift 0.9 these fail:

=== RUN TestNonblockingTransportServerToClient
--- FAIL: TestNonblockingTransportServerToClient (0.00 seconds)
    ttransport_test.go:61: Transport *thrift.TFramedTransport cannot flush write of binary data: write tcp 127.0.0.1:47626: i/o timeout
=== RUN TestNonblockingTransportClientToServer
--- FAIL: TestNonblockingTransportClientToServer (0.00 seconds)
    ttransport_test.go:61: Transport *thrift.TFramedTransport cannot flush write of binary data: write tcp 127.0.0.1:40001: i/o timeout

@nairboon
Copy link

it workes when you use @apesternikov's fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants