protobuf | 20 Jul 10:23 2014

Issue 657 in protobuf: Unnecessary dependency against protobuf in third-level targets.

Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 657 by abys... <at> gmail.com: Unnecessary dependency against protobuf  
in third-level targets.
http://code.google.com/p/protobuf/issues/detail?id=657

I have C++ generated file, say `a.pb.cc`, and I link it into shared library  
`a.so`. This library is also linked against `libprotobuf.so`.

When I do include `a.pb.h` in another file, say `test.cc`, I can't link it  
into executable `test` without adding dependency on `libprotobuf.so`:  
otherwise, I get undefined symbols errors, like:

"google::protobuf::internal::RepeatedPtrFieldBase::Reserve(int)"
"google::protobuf::internal::kEmptyString"
"google::protobuf::internal::ExtensionSet::ReleaseMessage(int,  
google::protobuf::MessageLite const&)"
"google::protobuf::internal::ExtensionSet::MutableMessage(int, unsigned  
char, google::protobuf::MessageLite const&,  
google::protobuf::FieldDescriptor const*)"

The sum-up of dependencies:

1) test (test.cc includes a.pb.h) depends on a.so (a.pb.cc includes a.pb.h)
2) a.so (a.pb.cc includes a.pb.h) depends on libprotobuf.so
3) test (test.cc includes a.pb.h) depends on libprotobuf.so (!)

The possible reason is that I don't know enough about the linking.
(Continue reading)

protobuf | 18 Jul 01:06 2014

Re: Issue 641 in protobuf: Lots of "implicit conversion loses precision" errors.


Comment #1 on issue 641 by jie... <at> google.com: Lots of "implicit conversion  
loses precision" errors.
http://code.google.com/p/protobuf/issues/detail?id=641

Issue 631 has been merged into this issue.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 17 Jul 21:16 2014

Re: Issue 429 in protobuf: Support ByteBuffer in CodedInputStream and CodedOutputStream to avoid redundant copies for direct ByteBuffer.

Updates:
	Owner: jie... <at> google.com

Comment #5 on issue 429 by jie... <at> google.com: Support ByteBuffer in  
CodedInputStream and CodedOutputStream to avoid redundant copies for direct  
ByteBuffer.
http://code.google.com/p/protobuf/issues/detail?id=429

(No comment was entered for this change.)

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

protobuf | 17 Jul 20:15 2014

Re: Issue 429 in protobuf: Support ByteBuffer in CodedInputStream and CodedOutputStream to avoid redundant copies for direct ByteBuffer.

Updates:
	Status: Fixed
	Labels: FixedIn-2.6.0

Comment #4 on issue 429 by jie... <at> google.com: Support ByteBuffer in  
CodedInputStream and CodedOutputStream to avoid redundant copies for direct  
ByteBuffer.
http://code.google.com/p/protobuf/issues/detail?id=429

(No comment was entered for this change.)

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

ponnu swamy | 17 Jul 09:43 2014
Picon

protobuf PID Block

i am working on android  uidai auth client  ,i am creating the pid block using xml as well as protobuf format ,first time i am working on proto buf format.i only use biometric data ,the xml format of pid block is working fine,
but when i use proto buf fortmat i got "invalid pid xml" error code 511 .this my code ,i check that proto buf format that is correct but i dnt know why it's not working  .can u any body help me to resolve this issue

i got the auth.proto file from uidai site
and also i use the same auth.java file also from uidai

public Bio.Builder formBio(String curretData)
{
iret = checkFMR(curretData);
Bio.Builder biotag = Bio.newBuilder();
iret = checkFMR(curretData);
if (iret == 0)

{
biotag.setType(BioType.FMR);
} else {
biotag.setType(BioType.FIR);
}
biotag.setPosh(Position.UNKNOWN);
biotag.setContent(ByteString.copyFromUtf8(curretData));
return biotag;
}
public int FormBioTag(String curretData, int String failedData, )

{
int iresult=-1;
try {
 Bio.Builder bioData1;
 Bio.Builder bioData2;
 Bios.Builder biosTag = Bios.newBuilder();
 
 
    bioData1=formBio(curretData);
    
    biosTag.addBio(bioData1);
    LOG.d(TAG, "bioData1 formed");
if(failedData!=null)
{
bioData2=formBio(curretData);
biosTag.addBio(bioData2);
}

Pid.Builder pidTag=Pid.newBuilder();
timeStamp = GetUTCdatetimeAsString();
pidTag.setTs(ByteString.copyFromUtf8(timeStamp));
pidTag.setVer("1.0");
pidTag.setBios(biosTag);
byPidxml=pidTag.build().toByteArray();

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Henry Poon | 17 Jul 00:55 2014
Picon

GzipOutputStream unresolved external symbol

Hi, 

I am using the 2.5.0 version of the protobuf lib and so far it has been okay serializing stuff to file using FileOutputStream.  However, I am now trying to use GzipOutputStream, but writing code like the following causes a linker error for unresolved external symbol:

rawDataOutput_ = new FileOutputStream(fileDescriptor_);
gzipDataOutput_ = new GzipOutputStream(rawDataOutput_);

Not calling the ctor of GzipOutputStream will compile correctly.

I ran dumpbin /symbols libprotobuf.lib and I cannot seem to find a reference to GzipOutputStream, so this could be why I am receiving this linker error.  I compiled the lib myself using the provided Visual Studio solution files so I do not see why this class would be missing from the lib in the first place.

Any ideas?

Cheers,
Henry

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
protobuf | 16 Jul 22:43 2014

Issue 656 in protobuf: Example protobuf uses required fields

Status: New
Owner: liujisi <at> google.com
Labels: Type-Defect Priority-Medium

New issue 656 by hirshlei... <at> google.com: Example protobuf uses required  
fields
http://code.google.com/p/protobuf/issues/detail?id=656

What steps will reproduce the problem?
1. Look at the example protobuf definition on the summary page  
(https://code.google.com/p/protobuf/) or  
http://protobuf.googlecode.com/svn/trunk/examples/addressbook.proto

What is the expected output? What do you see instead?
I thought required fields are Considered Harmful. If so, the sample code  
should not use them.

-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

-- 
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

kash5690 | 15 Jul 11:32 2014
Picon

Can I customize the protoc (protobuf compiler) ?

Hi,

I am looking for ways to use protobuf with ODB (an ORM tool). The c++ header file generated by protoc will be given as input to ODB which will compile it to produce the db schema. However, ODB compiler needs few ODB tags in place in the C++ header file like - "#pragma db object" just before the class declarion which tells ODB that this class needs to be made persistent., also we need to inclde few ODB specific header files in the C++ header file without which the compilation will fail. 
In nut-shell, the c++ header file generated by proto compiler needs to be modified before it is supplied to ODB. Is there any way we can accomlish this ? Can we customize proto compiler so that it can put these tags and header files while generating the C++ classes ?


--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Neta Nir | 15 Jul 09:30 2014

Protogen and wcf json serialization

Hello,
We are using Protogen in .Net environment. The  auto generated class from protgen is used as a  response in a service contract between a wcf service (http binding)  and a browser client. WCF uses JSON  serializer, the built in. The problem we are having is that the c# Response class (which is auto generated from protogen) is created with Properties, for example:
    

        [global::System.Serializable, global::ProtoBuf.ProtoContract(Name = <at> "Response")]
        public partial class Response : global::ProtoBuf.IExtensible
        {
        public Response() { } 
         private bool _success;
        [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name = <at> "success", DataFormat = global::ProtoBuf.DataFormat.Default)]
        public bool success
        {
            get { return _success; }
            set { _success = value; }
        }

This class is serialized by the WCF default json serializer and returned to the client. The problem is that the json serialize output is composed from the private member of the class and not from the public properties, meaning that the browser response is returned in the following way:
{_success:value} instead of {success:true}.
This is because of the [System.Serializable] tag  on the class which is makes  all of the class  fields serialized  (no properties). 
Is there a way to tell protogen to create the class with only public fields and not properties? Any other suggestion will be welcome as well
Thanks

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
pradeep moka | 14 Jul 07:12 2014
Picon

protobuf 2.5.0 doesnt seem to support debain m68k-linux , is there a way to cross compile for m68k-linux <EOM>


--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
Klaus Kraft | 13 Jul 20:11 2014
Picon

Required C++ version

Hi all,

can you please tell me which C++ version requirements protobuf assumes? I would lilke to test the C++ part but need to know the C++ requirements.

Thanks in advance.

Best regards
Klaus

--
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+unsubscribe <at> googlegroups.com.
To post to this group, send email to protobuf <at> googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Gmane