It looks to me like you don't have the protocol-buffers package
installed.  It is required to build protobuf-c.

I guess I need to add a autoconf test to make it clear that that's
necessary.

- dave

On Sep 29, 2:05 am, Doron Tal <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to protobuf, and I want to use the new c binding. However,
> compilation does not pass.
>
> Thanks for your help,
> Doron
>
> [doron-lx] protobuf-c-0.4 > make
> Making all in src
> make[1]: Entering directory `/home1/doron.tal/work/protobuf-c-0.4/src'
> Making all in .
> make[2]: Entering directory `/home1/doron.tal/work/protobuf-c-0.4/src'
> if /bin/sh ../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"\" -
> DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -
> DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c\" -DVERSION=\"0.4\" -
> DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -
> DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -
> DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -
> DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I.     -g -O2 -MT protobuf-c.lo
> -MD -MP -MF ".deps/protobuf-c.Tpo" -c -o protobuf-c.lo `test -f
> 'google/protobuf-c/protobuf-c.c' || echo './'`google/protobuf-c/
> protobuf-c.c; \
>         then mv -f ".deps/protobuf-c.Tpo" ".deps/protobuf-c.Plo"; else
> rm -f ".deps/protobuf-c.Tpo"; exit 1; fi
> mkdir .libs
>  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c
> \" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
> DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
> DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -MT
> protobuf-c.lo -MD -MP -MF .deps/protobuf-c.Tpo -c google/protobuf-c/
> protobuf-c.c  -fPIC -DPIC -o .libs/protobuf-c.o
>  gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
> -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c
> \" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -
> DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
> DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I. -g -O2 -MT
> protobuf-c.lo -MD -MP -MF .deps/protobuf-c.Tpo -c google/protobuf-c/
> protobuf-c.c -o protobuf-c.o >/dev/null 2>&1
> /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o libprotobuf-
> c.la -rpath /usr/local/lib  protobuf-c.lo
> gcc -shared  .libs/protobuf-c.o   -Wl,-soname -Wl,libprotobuf-c.so.0 -
> o .libs/libprotobuf-c.so.0.0.0
> (cd .libs && rm -f libprotobuf-c.so.0 && ln -s libprotobuf-c.so.0.0.0
> libprotobuf-c.so.0)
> (cd .libs && rm -f libprotobuf-c.so && ln -s libprotobuf-c.so.0.0.0
> libprotobuf-c.so)
> ar cru .libs/libprotobuf-c.a  protobuf-c.o
> ranlib .libs/libprotobuf-c.a
> creating libprotobuf-c.la
> (cd .libs && rm -f libprotobuf-c.la && ln -s ../libprotobuf-c.la
> libprotobuf-c.la)
> if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=
> \"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=
> \"protobuf-c\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
> -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -
> DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -
> DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I.     -g -O2
> -MT c_service.o -MD -MP -MF ".deps/c_service.Tpo" -c -o c_service.o
> `test -f 'google/protobuf/compiler/c/c_service.cc' || echo './'`google/
> protobuf/compiler/c/c_service.cc; \
>         then mv -f ".deps/c_service.Tpo" ".deps/c_service.Po"; else rm
> -f ".deps/c_service.Tpo"; exit 1; fi
> In file included from google/protobuf/compiler/c/c_service.cc:23:
> ./google/protobuf/compiler/c/c_service.h:28:42: error: google/protobuf/
> stubs/common.h: No such file or directory
> ./google/protobuf/compiler/c/c_service.h:29:40: error: google/protobuf/
> descriptor.h: No such file or directory
> In file included from google/protobuf/compiler/c/c_service.cc:24:
> ./google/protobuf/compiler/c/c_helpers.h:29:40: error: google/protobuf/
> io/printer.h: No such file or directory
> ./google/protobuf/compiler/c/c_service.h:45: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> ./google/protobuf/compiler/c/c_service.h:46: error: ISO C++ forbids
> declaration of ‘ServiceDescriptor’ with no type
> ./google/protobuf/compiler/c/c_service.h:62: error: ISO C++ forbids
> declaration of ‘ServiceDescriptor’ with no type
> ./google/protobuf/compiler/c/c_service.h:62: error: expected ‘;’
> before ‘*’ token
> ./google/protobuf/compiler/c/c_service.h:63: error: ISO C++ forbids
> declaration of ‘map’ with no type
> ./google/protobuf/compiler/c/c_service.h:63: error: expected ‘;’
> before ‘<’ token
> ./google/protobuf/compiler/c/c_service.h:65: error: ISO C++ forbids
> declaration of ‘GOOGLE_DISALLOW_EVIL_CONSTRUCTORS’ with no type
> ./google/protobuf/compiler/c/c_helpers.h:49: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:50: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:53: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:54: error: expected ‘,’ or
> ‘...’ before ‘&’ token
> ./google/protobuf/compiler/c/c_helpers.h:54: error: ISO C++ forbids
> declaration of ‘string’ with no type
> ./google/protobuf/compiler/c/c_helpers.h:55: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:56: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:57: error: expected ‘,’ or
> ‘...’ before ‘&’ token
> ./google/protobuf/compiler/c/c_helpers.h:57: error: ISO C++ forbids
> declaration of ‘string’ with no type
> ./google/protobuf/compiler/c/c_helpers.h: In function ‘bool
> google::protobuf::compiler::c::HasSuffixString(int)’:
> ./google/protobuf/compiler/c/c_helpers.h:57: error: ‘str’ was not
> declared in this scope
> ./google/protobuf/compiler/c/c_helpers.h:57: error: ‘suffix’ was not
> declared in this scope
> ./google/protobuf/compiler/c/c_helpers.h: At global scope:
> ./google/protobuf/compiler/c/c_helpers.h:58: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:66: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:70: error: expected
> initializer before ‘*’ token
> ./google/protobuf/compiler/c/c_helpers.h:77: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:78: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:81: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:84: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:85: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:88: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:89: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:92: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:95: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:98: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:105: error: ‘FieldDescriptor’
> has not been declared
> ./google/protobuf/compiler/c/c_helpers.h:109: error: ‘FieldDescriptor’
> has not been declared
> ./google/protobuf/compiler/c/c_helpers.h:112: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:115: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:118: error: ‘string’ does not
> name a type
> ./google/protobuf/compiler/c/c_helpers.h:123: error: expected ‘,’ or
> ‘...’ before ‘&’ token
> ./google/protobuf/compiler/c/c_helpers.h:123: error: ISO C++ forbids
> declaration of ‘string’ with no type
> google/protobuf/compiler/c/c_service.cc:32: error: expected ‘,’ or
> ‘...’ before ‘*’ token
> google/protobuf/compiler/c/c_service.cc:33: error: ISO C++ forbids
> declaration of ‘ServiceDescriptor’ with no type
> google/protobuf/compiler/c/c_service.cc: In constructor
> ‘google::protobuf::compiler::c::ServiceGenerator::ServiceGenerator(int)’:
> google/protobuf/compiler/c/c_service.cc:34: error: class
> ‘google::protobuf::compiler::c::ServiceGenerator’ does not have any
> field named ‘descriptor_’
> google/protobuf/compiler/c/c_service.cc:34: error: ‘descriptor’ was
> not declared in this scope
> google/protobuf/compiler/c/c_service.cc:35: error: ‘vars_’ was not
> declared in this scope
> google/protobuf/compiler/c/c_service.cc:35: error: ‘descriptor_’ was
> not declared in this scope
> google/protobuf/compiler/c/c_service.cc:37: error: ‘FullNameToC’ was
> not declared in this scope
> google/protobuf/compiler/c/c_service.cc:38: error: ‘FullNameToLower’
> was not declared in this scope
> google/protobuf/compiler/c/c_service.cc:39: error: ‘ConvertToSpaces’
> was not declared in this scope
> google/protobuf/compiler/c/c_service.cc:41: error: ‘dllexport_decl’
> was not declared in this scope
> google/protobuf/compiler/c/c_service.cc: In member function ‘void
> google::protobuf::compiler::c::ServiceGenerator::GenerateVfuncs(google::protobuf::io::Printer*)’:
> google/protobuf/compiler/c/c_service.cc:59: error: invalid use of
> undefined type ‘struct google::protobuf::io::Printer’
> ./google/protobuf/compiler/c/c_service.h:34: error: forward
> declaration of ‘struct google::protobuf::io::Printer’
> google/protobuf/compiler/c/c_service.cc:59: error: ‘vars_’ was not
> declared in this scope
> google/protobuf/compiler/c/c_service.cc:64: error: ‘descriptor_’ was
> not declared in this scope
> google/protobuf/compiler/c/c_service.cc:65: error: expected
> initializer before ‘*’ token
> google/protobuf/compiler/c/c_service.cc:66: error: ‘string’ was not
> declared in this scope
> google/protobuf/compiler/c/c_service.cc:66: error: expected `;' before
> ‘lcname’
> google/protobuf/compiler/c/c_service.cc:67: error: ‘lcname’ was not
> declared in this scope
> google/protobuf/compiler/c/c_service.cc:68: error: ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to