Repository navigation
Closed
Description
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -DPID_DATA_DIR=\"/usr/local/Cellar/ola/HEAD-5f490bd_1/share/ola/pids\" -g -O2 -std=gnu++98 -D_THREAD_SAFE -c common/rpc/Rpc.pb.cc -fno-common -DPIC -o common/rpc/.libs/common_libolacommon_la-Rpc.pb.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -DPID_DATA_DIR=\"/usr/local/Cellar/ola/HEAD-5f490bd_1/share/ola/pids\" -g -O2 -std=gnu++98 -D_THREAD_SAFE -c common/rpc/Rpc.pb.cc -o common/rpc/common_libolacommon_la-Rpc.pb.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -g -O2 -std=gnu++98 -D_THREAD_SAFE -c -o common/protocol/common_protocol_libolaproto_la-Ola.pb.lo `test -f 'common/protocol/Ola.pb.cc' || echo './'`common/protocol/Ola.pb.cc
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -g -O2 -std=gnu++98 -D_THREAD_SAFE -c common/protocol/Ola.pb.cc -fno-common -DPIC -o common/protocol/.libs/common_protocol_libolaproto_la-Ola.pb.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -g -O2 -std=gnu++98 -D_THREAD_SAFE -c common/protocol/Ola.pb.cc -o common/protocol/common_protocol_libolaproto_la-Ola.pb.o >/dev/null 2>&1
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -g -O2 -std=gnu++98 -D_THREAD_SAFE -c -o common/protocol/common_protocol_libolaproto_la-OlaService.pb.lo `test -f 'common/protocol/OlaService.pb.cpp' || echo './'`common/protocol/OlaService.pb.cpp
libtool: compile: clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -Wall -Wformat -W -fvisibility-inlines-hidden -D_THREAD_SAFE -isystem /usr/local/Cellar/protobuf/3.2.0/include -g -O2 -std=gnu++98 -D_THREAD_SAFE -c common/protocol/OlaService.pb.cpp -fno-common -DPIC -o common/protocol/.libs/common_protocol_libolaproto_la-OlaService.pb.o
common/protocol/OlaService.pb.cpp:27:3: error: use of undeclared identifier 'protobuf_AddDesc_Ola_2eproto'
protobuf_AddDesc_Ola_2eproto();
^
1 error generated.
make[2]: *** [common/protocol/common_protocol_libolaproto_la-OlaService.pb.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I'm seeing this while trying to upgrade protobuf to 3.2.0 in Homebrew and revision bumping all reverse dependencies. It looks like the Fedora team has hit the same problem for the same reason: https://www.spinics.net/lists/fedora-devel/msg229952.html
Reacted by Peter Sutton, Marti Bolivar, Constantin and Christoph Müllner
Activity
peternewman commentedon Jan 28, 2017
Can we see your common/protocol/Ola.pb.h please? I take it you rebuilt OLA from scratch? It looks like our protoc service generator isn't compatible with protobuf 3.2.0 currently.
ilovezfs commentedon Jan 28, 2017
Yeah this is from scratch.
Here's the Ola.pb.h 0.10.3:
https://gist.github.com/ilovezfs/da43f9f82582dd814ef41391b0e72789
ilovezfs commentedon Jan 29, 2017
I've gone ahead and merged protobuf 3.2.0 into Homebrew, since this was the only blocker, and I've opened Homebrew/homebrew-core#9406 pending resolution of this issue.
peternewman commentedon Jan 29, 2017
Does this mean OLA no longer works on Homebrew then @ilovezfs ? Or is the old version still available too?
I had a look and we need to write another version of our service generator to be compatible with protobuf 3.2 or whenever it broke. Which I'm guessing won't be backwards compatible with 2.4, so we'll need to ship both and do some configure magic until everyone has migrated.
ilovezfs commentedon Jan 30, 2017
It means the existing binaries will continue to work and be installable, but any attempt to build it from source will fail.
peternewman commentedon Jan 30, 2017
I'm guessing you mean the OLA binaries?
Is there a way to install protobuf 3.1.0, or do we have to create our own tap, as this change has also unsurprisingly broken our Travis builds:
https://travis-ci.org/peternewman/ola/jobs/196458412
Interestingly this seems to just be broken since 3.1.0, rather than 3.0.0 generally.
ilovezfs commentedon Jan 30, 2017
I mean the "bottles" that we build for 10.10, 10.11, and 10.12. Users will always get those by default, rather than a local source build, unless they explicitly request --build-from-source or pass one of the formula options.
I could probably convince the other maintainers that a protobuf@3.1 formula is warranted. However, I suspect the fix isn't that big of a thing. If I simply comment out the offending function, the build finishes successfully after re-running make. So there's probably some minor description declaration missing that determines whether or not that function gets synthesized.
peternewman commentedon Jan 30, 2017
Thanks for the clarification.
Unfortunately it seems a bit bigger than that here's the diff for that file alone between v3.1.0 and v3.2.0:
protocolbuffers/protobuf@v3.1.0...v3.2.0#diff-303ffdea4c2a4f93c4ace8acbbf5c4a9
Could we try and get that formula as an interim to buy us some time to rework this bit?
ilovezfs commentedon Jan 30, 2017
Sure. I'll do that now.
36 remaining items
peternewman commentedon Feb 25, 2018
Closed via #1336 and into master. Huge thanks to @cmuellner for the PR, and apologies again to @ilovezfs for me failing to notice he spotted the fix initially! This will be in the 0.11.0 release, which should hopefully be along fairly soon.
pmetzger commentedon Apr 25, 2018
Howdy! As 0.11.0 isn't out yet, and as MacPorts is trying to get rid of its old versions of protobuf, is there a set of patches I can apply to 0.10.6 to fix this issue?
peternewman commentedon Apr 25, 2018
Hi @pmetzger ,
Yes, sorry for the 0.11.0 delays (there always seems to be something else good we should get into it). The changes in here (ignoring .travis.yml) will fix it:
https://github.com/OpenLightingProject/ola/pull/1336/files
Alternatively here is what another build system is using, although this doesn't fix our Java API (I can't remember if we have an option to build that with MacPorts anyway):
bk138/packages@ab721ea
yoe commentedon Jun 11, 2018
Is this planned for 0.10.7? It's blocking for Debian
yoe commentedon Jun 11, 2018
Okay, I'm blind -- the MacPorts question just above already answered that :-)
Nvm
peternewman commentedon Sep 14, 2018
@yoe and others, you may also want the commits in #1467 for Protobuf 3.6 compatibility.
yoe commentedon Sep 14, 2018
Personally, I'd rather not cherry-pick patches unless and until protobuf 3.6 gets uploaded to Debian. Of course, if this gets released in a mainline version of ola, then we'll be fine too ;-)
peternewman commentedon Sep 14, 2018
Ah fair enough, I wasn't sure off hand what version you were on. Hopefully 0.11.0 will be out before then anyway!
Revert "Throw an error if we don't have an old enough protobuf, until…
Revert "Throw an error if we don't have an old enough protobuf, until…
Revert "Throw an error if we don't have an old enough protobuf, until…
Revert "Throw an error if we don't have an old enough protobuf, until…
Protobuf AddDescriptors should be removed for all versions of protobu…