Skip to content

protobuf 3.2.0 issue #1192

Closed
Closed

Description

@ilovezfs
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

Activity

  1. peternewman commented on Jan 28, 2017

    @peternewman
    Member

    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.

  2. ilovezfs commented on Jan 28, 2017

    @ilovezfs
    Author

    Yeah this is from scratch.

    Here's the Ola.pb.h 0.10.3:
    https://gist.github.com/ilovezfs/da43f9f82582dd814ef41391b0e72789

  3. ilovezfs commented on Jan 29, 2017

    @ilovezfs
    Author

    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.

  4. peternewman commented on Jan 29, 2017

    @peternewman
    Member

    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.

  5. ilovezfs commented on Jan 30, 2017

    @ilovezfs
    Author

    It means the existing binaries will continue to work and be installable, but any attempt to build it from source will fail.

  6. peternewman commented on Jan 30, 2017

    @peternewman
    Member

    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.

  7. ilovezfs commented on Jan 30, 2017

    @ilovezfs
    Author

    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.

  8. peternewman commented on Jan 30, 2017

    @peternewman
    Member

    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?

  9. ilovezfs commented on Jan 30, 2017

    @ilovezfs
    Author

    Sure. I'll do that now.

  10. 36 remaining items

  11. peternewman commented on Feb 25, 2018

    @peternewman
    Member

    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.

  12. added this to the 0.11.0 milestone on Feb 25, 2018
  13. pmetzger commented on Apr 25, 2018

    @pmetzger

    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?

  14. peternewman commented on Apr 25, 2018

    @peternewman
    Member

    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

  15. yoe commented on Jun 11, 2018

    @yoe
    Contributor

    Is this planned for 0.10.7? It's blocking for Debian

  16. yoe commented on Jun 11, 2018

    @yoe
    Contributor

    Okay, I'm blind -- the MacPorts question just above already answered that :-)

    Nvm

  17. peternewman commented on Sep 14, 2018

    @peternewman
    Member

    @yoe and others, you may also want the commits in #1467 for Protobuf 3.6 compatibility.

  18. yoe commented on Sep 14, 2018

    @yoe
    Contributor

    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 ;-)

  19. peternewman commented on Sep 14, 2018

    @peternewman
    Member

    Ah fair enough, I wasn't sure off hand what version you were on. Hopefully 0.11.0 will be out before then anyway!

  20. added a commit that references this issue on Sep 22, 2019
    a5ec2cd
  21. added a commit that references this issue on Apr 8, 2020
    5e80cdb
  22. added 2 commits that reference this issue on Apr 21, 2020
    cfd1842
    2f1b336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions