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

make fails #24

Closed
GoogleCodeExporter opened this issue Apr 5, 2016 · 6 comments
Closed

make fails #24

GoogleCodeExporter opened this issue Apr 5, 2016 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. ./configure ./configure
CXXFLAGS=-I/home/ggne0279/hitendra/install/include
LDFLAGS=-L/home/ggne0279/hitendra/install/lib

2. make 
3.

What is the expected output? What do you see instead?
Successful  compilation

How ever make failed giving following errors

-------------------------------------------------------------------------

../protoc-c -I. --c_out=generated-code ./test.proto
mkdir -p generated-code
../protoc-c -I. --c_out=generated-code ./test-full.proto
mkdir -p generated-code
I. --cpp_out=generated-code ./test-full.proto
make[2]: I.: Command not found
make[2]: [generated-code/test-full.pb.h] Error 127 (ignored)
if g++ -DPACKAGE_NAME=\"protobuf-c\" -DPACKAGE_TARNAME=\"protobuf-c\"
-DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"protobuf-c\ 0.11\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"protobuf-c\" -DVERSION=\"0.11\"
-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 -DHAVE_INTTYPES_H=1
-DHAVE_SYS_POLL_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_MALLOC_H=1 -DPROTOC_VERSION=0 -DHAVE_ENDIAN_H=1 -DIS_LITTLE_ENDIAN=1
-I. -I. -I./..    -I/home/ggne0279/hitendra/install/include -MT
cxx-generate-packed-data.o -MD -MP -MF ".deps/cxx-generate-packed-data.Tpo"
-c -o cxx-generate-packed-data.o cxx-generate-packed-data.cc; \
then mv -f ".deps/cxx-generate-packed-data.Tpo"
".deps/cxx-generate-packed-data.Po"; else rm -f
".deps/cxx-generate-packed-data.Tpo"; exit 1; fi
cxx-generate-packed-data.cc:5:41: generated-code/test-full.pb.h: No such
file or directory
cxx-generate-packed-data.cc:9: error: expected namespace-name before ';' token
cxx-generate-packed-data.cc:9: error: `<type error>' is not a namespace
In file included from cxx-generate-packed-data.cc:16:
common-test-arrays.h:44: error: `TestEnumSmall' does not name a type
common-test-arrays.h:45: error: `TestEnumSmall' does not name a type
common-test-arrays.h:47: error: `TestEnumSmall' does not name a type
common-test-arrays.h:51: error: `TestEnum' does not name a type
common-test-arrays.h:52: error: `TestEnum' does not name a type
common-test-arrays.h:53: error: `TestEnum' does not name a type
cxx-generate-packed-data.cc:20: error: `google' has not been declared
cxx-generate-packed-data.cc:20: error: variable or field
`dump_message_bytes' declared void
cxx-generate-packed-data.cc:20: error: `Message' was not declared in this scope
cxx-generate-packed-data.cc:20: error: `message' was not declared in 

---------------------------------------------------

I saw the generated Makefile in the "protobuf-c-0.11/src/test" and the line
does not contain the command name which i think should be the protoc 

>>generated-code/test-full-cxx-output.inc: cxx-generate-packed-data$(EXEEXT)
    ./cxx-generate-packed-data > generated-code/test-full-cxx-output.inc

i then added the protoc myself to see if it compiles but it again produced
the folowing errors which are same as issue 20

cxx-generate-packed-data.cc: In function `void dump_test_unknown_fields()':
cxx-generate-packed-data.cc:767: error: no matching function for call to
`google::protobuf::UnknownFieldSet::Ad
dField(int)'
/home/ggne0279/hitendra/install/include/google/protobuf/unknown_field_set.h:108:
note: candidates are: void goo
gle::protobuf::UnknownFieldSet::AddField(const google::protobuf::UnknownField&)
cxx-generate-packed-data.cc:768: error: 'class
google::protobuf::UnknownField' has no member named 'add_varint'
cxx-generate-packed-data.cc:769: error: no matching function for call to
`google::protobuf::UnknownFieldSet::Ad
dField(int)'
/home/ggne0279/hitendra/install/include/google/protobuf/unknown_field_set.h:108:
note: candidates are: void goo
gle::protobuf::UnknownFieldSet::AddField(const google::protobuf::UnknownField&)
cxx-generate-packed-data.cc:770: error: 'class
google::protobuf::UnknownField' has no member named 'add_fixed32
'
cxx-generate-packed-data.cc:781: error: no matching function for call to
`google::protobuf::UnknownFieldSet::Ad
dField(int)'
/home/ggne0279/hitendra/install/include/google/protobuf/unknown_field_set.h:108:
note: candidates are: void goo
gle::protobuf::UnknownFieldSet::AddField(const google::protobuf::UnknownField&)
cxx-generate-packed-data.cc:782: error: 'class
google::protobuf::UnknownField' has no member named 'add_length_
delimited'
cxx-generate-packed-data.cc:783: error: no matching function for call to
`google::protobuf::UnknownFieldSet::Ad
dField(int)'
/home/ggne0279/hitendra/install/include/google/protobuf/unknown_field_set.h:108:
note: candidates are: void goo
gle::protobuf::UnknownFieldSet::AddField(const google::protobuf::UnknownField&)
cxx-generate-packed-data.cc:784: error: 'class
google::protobuf::UnknownField' has no member named 'add_fixed64
'


What version of the product are you using? On what operating system?
0.11 : OS= GNU/Red Hat linux  (2.6.9-22.ELsmp) 

Please provide any additional information below.


Original issue reported on code.google.com by hitendra...@gmail.com on 7 Jul 2009 at 9:20

@GoogleCodeExporter
Copy link
Author

I am also getting exactly these same errors on Ubuntu jaunty amd64.

Original comment by koolmokpox on 20 Aug 2009 at 2:41

@GoogleCodeExporter
Copy link
Author

it turns out that the environmental variable PROTOC was not set.

Original comment by koolmokpox on 20 Aug 2009 at 2:43

@GoogleCodeExporter
Copy link
Author

Found the solution:
sudo apt-get install protobuf-compiler

The protobuf-compiler was missing. The configure file should be change to fail 
if the
compiler is missing.

Original comment by koolmokpox on 20 Aug 2009 at 2:51

@GoogleCodeExporter
Copy link
Author

I got the same error in Red Hat, and what ended up working for me was:

./configure --disable-shared
make clean
make install

Original comment by doug.mo...@gmail.com on 20 Oct 2009 at 9:53

@GoogleCodeExporter
Copy link
Author

you have to install protobuf to get protoc

Original comment by brettc...@gmail.com on 8 Dec 2009 at 6:57

@GoogleCodeExporter
Copy link
Author

In the latest protobuf you can use --disable-protoc to suppress building the 
protoc_c 
compiler.. IF you know what you are doing.  Most people should just install it.

Original comment by lahike...@gmail.com on 5 Feb 2010 at 12:35

  • Changed state: Invalid

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

No branches or pull requests

1 participant