[protobuf] CLA failure check for cherry picks

2022-09-14 Thread Xavier Bonaventura
Hi,

I wanted to propose a cherry pick for the 21.x branch but the CLA check is 
failing because the original author.
It seems to me that the user of the original author is nothing else than a 
placeholder for a Google employee, how should we proceed?
https://github.com/protocolbuffers/upb/pull/781/checks

Thanks

Xavi

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/733b7727-3b95-4671-bcdf-5e6c41cf0683n%40googlegroups.com.


[protobuf] Re: BUILD.bazel in the src/google/protobuf are not included in the zip file?

2022-09-12 Thread Xavier Bonaventura
Deanna, I've just found the same issue. The 
latest https://github.com/protocolbuffers/upb cannot be used with any of 
the current protobuf releases but only the main branch. Is it already known 
approximately when a new version from the main branch will be released?
Would it be ok to create a github issue to track it? In this way it could 
be linked to the relevant github issues from other repositories.

On Wednesday, 7 September 2022 at 23:27:12 UTC+2 deanna...@google.com wrote:

> We are currently in the process of increasing our bazel support in the 
> protobuf repository. Unfortunately 3.21.1 was shipped without that bazel 
> file as you can see in the 21.x branch 
> . 
> If you want to use that file you will either need to use the code on main 
> branch or wait for the next release.
>
> On Saturday, September 3, 2022 at 9:58:05 PM UTC-7 mingjun wrote:
>
>> For example: 
>> https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.21.1.zip
>> after unzip this, i don't see the BUILD.bazel under: src/google/protobuf 
>>
>> Anyone know why? or this is a bug?
>>
>> the reason why i am asking:
>> I am trying to create a project which will depends on 
>> the @com_google_protobuf//src/google/protobuf:protobuf,  so i add following 
>> to my workspace and refer this, and I got error due to the missing 
>> BUILD.bazel.
>>
>> http_archive(
>> name = "my_com_google_protobuf",
>> url = "
>> https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.21.1.zip
>> ",
>> sha256 = 
>> "2d9084d3dd13b86ca2e811d2331f780eb86f6d7cb02b405426e3c80dcbfabf25",
>> )
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/50af43db-4912-4a24-bda0-e1e4db49a719n%40googlegroups.com.


[protobuf] C++ link error when using "repeated" with a custom message

2021-03-11 Thread Xavier Raemy


After hours of debugging, I have the following minimalist .proto file:


syntax = "proto3";


message PbCaptureResult {

bool checkedValid = 1;

}


message PbCaptureResultSequence {

PbCaptureResult captureResults = 1;

}

It compiles and links successfully. But, if I add a "repeated" like:


syntax = "proto3";


message PbCaptureResult {

bool checkedValid = 1;

}


message PbCaptureResultSequence {

repeated PbCaptureResult captureResults = 1;

}

then I have a link error and get:


cmd.exe /C "cd . && 
C:\Android\Sdk\ndk\22.0.6917172\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe
 
--target=aarch64-none-linux-android29 
--gcc-toolchain=C:/Android/Sdk/ndk/22.0.6917172/toolchains/llvm/prebuilt/windows-x86_64
 
--sysroot=C:/Android/Sdk/ndk/22.0.6917172/toolchains/llvm/prebuilt/windows-x86_64/sysroot
 
-fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables 
-fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 
-Wformat -Werror=format-security  -Wno-deprecated-declarations -O0 
-fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a 
-Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a 
-Wl,--build-id=sha1 -Wl,--fatal-warnings -Wl,--no-undefined 
-Qunused-arguments -shared -Wl,-soname,libnative-lib.so -o libnative-lib.so 
@CMakeFiles/native-lib.rsp  && cd ."

ld: error: undefined symbol: 
google::protobuf::internal::RepeatedPtrFieldBase::AddOutOfLineHelper(void*)

>>> referenced by repeated_field.h:1767 
(../../../../imported-lib/include\google/protobuf\repeated_field.h:1767)

>>>  
 
CMakeFiles/native-lib.dir/src/main/cpp/authenticationLib/CaptureResultSequence.pb.cc.o:(google::protobuf::RepeatedPtrField::TypeHandler::Type*
 
google::protobuf::internal::RepeatedPtrFieldBase::Add::TypeHandler>(google::protobuf::RepeatedPtrField::TypeHandler::Type*))

clang++: error: linker command failed with exit code 1 (use -v to see 
invocation)

If the "repeated" come before a "standard type" such as string then it 
compiles:


syntax = "proto3";


message PbCaptureResult {

bool checkedValid = 1;

}


message PbCaptureResultSequence {

repeated string captureResults = 1;

}

it's only if I try to repeat a custom message that I have an issue.


But in the protobuf website I found the following example:


message SearchResponse {

  repeated Result results = 1;

}


message Result {

  string url = 1;

  string title = 2;

  repeated string snippets = 3;

} 

I have put the example as is in my .proto file and it failed to compile 
with the same linking error. I concluded that it's not a .proto syntax 
problem.

It's protobuf 3.15.5.

The generating command is: ./bin/protoc.exe --cpp_out=.. 
CaptureResultSequence.proto

I am static linking against libprotobuf.a (not libprotobuf-lite.a)

I have cross compiled protobuf myself

I initially thought that the issue was related to linking, but for me it 
doesn't explain why I can link without "repeated" but can't link with it.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/035ec0f4-a4fc-4131-b9fc-b97c6a682dfan%40googlegroups.com.


Re: [protobuf] What are the encoding formats supported by protobuf?

2019-07-18 Thread Pratibha Pruno Xavier
Thanks. I couldn't understand what is "flavored JSON" means. Does't mean 
the data is serialised in JSON ?

Pratibha

On Thursday, July 18, 2019 at 1:13:17 PM UTC+5:30, Marc Gravell wrote:
>
> Protobuf binary or protobuf-flavored JSON.
>
> On Thu, 18 Jul 2019, 08:35 Pratibha Pruno Xavier,  > wrote:
>
>> Hi all,
>>   
>>  What are the encoding formats supported by protobuf 3?
>>
>> THanks,
>> Pratibha
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to prot...@googlegroups.com .
>> To post to this group, send email to prot...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/protobuf.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/protobuf/817d2ba0-872c-4f59-a284-1538cd054a5a%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/protobuf/817d2ba0-872c-4f59-a284-1538cd054a5a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/c9cbb0b6-7e3e-4d28-914b-79b38b154574%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[protobuf] What are the encoding formats supported by protobuf?

2019-07-18 Thread Pratibha Pruno Xavier
Hi all,
  
 What are the encoding formats supported by protobuf 3?

THanks,
Pratibha

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/817d2ba0-872c-4f59-a284-1538cd054a5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[protobuf] Python ParseFromString failing

2010-01-22 Thread Xavier
I'm currently writing a python listener than is receiving a protocol
buffer from a UDP multicast transport.  The sender is written in C.
I'm using Protocol Buffers 2.2a and my python code is also using
Twisted.

Thanks in advance,

-Xavier

This is the error I get from my code:

Traceback (most recent call last):
  File /usr/lib64/python2.4/site-packages/twisted/python/log.py,
line 33, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
  File /usr/lib64/python2.4/site-packages/twisted/python/context.py,
line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args,
**kw)
  File /usr/lib64/python2.4/site-packages/twisted/python/context.py,
line 37, in callWithContext
return func(*args,**kw)
  File /usr/lib64/python2.4/site-packages/twisted/internet/
selectreactor.py, line 139, in _doReadOrWrite
why = getattr(selectable, method)()
--- exception caught here ---
  File /usr/lib64/python2.4/site-packages/twisted/internet/udp.py,
line 127, in doRead
self.protocol.datagramReceived(data, addr)
  File ./bdc_receiver.py, line 22, in datagramReceived
self.message.ParseFromString(repr(datagram))
  File build/bdist.linux-x86_64/egg/google/protobuf/message.py, line
159, in ParseFromString

  File build/bdist.linux-x86_64/egg/google/protobuf/reflection.py,
line 1238, in MergeFromString

  File build/bdist.linux-x86_64/egg/google/protobuf/reflection.py,
line 1082, in _DeserializeOneEntity

exceptions.RuntimeError: TODO(robinson): Wiretype mismatches not
handled.

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.