Re: build failure at mac lion 10.7

90 views
Skip to first unread message

smallfish

unread,
Jun 21, 2012, 1:44:14 AM6/21/12
to doo...@googlegroups.com
oh, is it?
reques/response/msg object has not not implement proto.Message (missing ProtoMessage method)
--


On Thu, Jun 21, 2012 at 11:38 AM, smallfish xy <smallf...@gmail.com> wrote:
system: mac lion 10.7
go version go1.0.2

first clone https://github.com/ha/doozerd to local, and run: ./all.sh has 2 errors

1: conn.go import pretty.go,  kr now move pretty.go to pretty, full package url: "github.com/kr/pretty.go"
../../../golang/src/github.com/ha/doozer/conn.go:7:2: no Go source files in /Users/smallfish/golang/src/github.com/kr/pretty.go

2. build proto failue...
../../../golang/src/github.com/ha/doozerd/consensus/m.pb.go:65: cannot use this (type *msg) as type proto.Message in function argument:        *msg does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozerd/consensus/manager.go:230: cannot use &m (type *msg) as type proto.Message in function argument:
        *msg does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozerd/consensus/manager.go:240: cannot use &p.msg (type *msg) as type proto.Message in function argument:
        *msg does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozerd/consensus/run.go:65: cannot use m (type *msg) as type proto.Message in function argument:
        *msg does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozer/conn.go:184: cannot use &t.req (type *request) as type proto.Message in function argument:
        *request does not implement proto.Message (missing ProtoMessage method)../../../golang/src/github.com/ha/doozer/conn.go:198: cannot use &r (type *response) as type proto.Message in function argument:        *response does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozer/msg.pb.go:127: cannot use this (type *request) as type proto.Message in function argument:
        *request does not implement proto.Message (missing ProtoMessage method)
../../../golang/src/github.com/ha/doozer/msg.pb.go:142: cannot use this (type *response) as type proto.Message in function argument:
        *response does not implement proto.Message (missing ProtoMessage method)

the problem with go version or protobuf version?
thanks~

Reply all
Reply to author
Forward
0 new messages