Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644460 - games-board/pokerth-1.1.1-r2 with dev-libs/protobuf-3.5.1.1 - In file included from src/third_party/protobuf/pokerth.pb.cc:5:0: src/third_party/protobuf/pokerth.pb.h:17:2: error: #error This file was generated by an older version of protoc which is inc...
Summary: games-board/pokerth-1.1.1-r2 with dev-libs/protobuf-3.5.1.1 - In file include...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 14:08 UTC by thunderrd
Modified: 2018-04-27 21:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_644460.txt,5.20 KB, text/plain)
2018-01-13 14:08 UTC, thunderrd
Details
build.log (build.log,503.39 KB, text/plain)
2018-01-16 09:00 UTC, thunderrd
Details
build.log (build.log,394.23 KB, text/plain)
2018-01-16 09:13 UTC, thunderrd
Details
emerge --info (file_644460.txt,7.85 KB, text/plain)
2018-02-01 17:20 UTC, juneau_
Details
build.log (file_644460.txt,398.87 KB, text/plain)
2018-02-01 17:35 UTC, juneau_
Details
patch (pokerth-1.1.1-protobuf-3.5.patch,603 bytes, patch)
2018-02-25 12:55 UTC, Sławomir Nizio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description thunderrd 2018-01-13 14:08:48 UTC
Created attachment 514638 [details]
emerge --info

After update of dev-libs/protobuf to version 3.5.1.1, @preserved-rebuild wants to rebuild games-board/pokerth-1.1.1-r2, but build fails.  Masking the new version of protobuf and rolling back to protobuf-3.4.1 allows pokerth to build successfully again:





!!! existing preserved libs:
>>> package: dev-libs/protobuf-3.5.1.1
 *  - /usr/lib64/libprotobuf.so.14
 *  - /usr/lib64/libprotobuf.so.14.0.0
 *      used by /usr/bin/pokerth (games-board/pokerth-1.1.1-r2)
 *      used by /usr/bin/pokerth_server (games-board/pokerth-1.1.1-r2)




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



/usr/include/google/protobuf/arena.h: In instantiation of ‘static T* google::protobuf::Arena::Create(google::protobuf::Arena*) [with T = AllInShowCardsMessage_PlayerAllIn]’:
/usr/include/google/protobuf/arena.h:676:21:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*, google::protobuf::internal::false_type) [with T = AllInShowCardsMessage_PlayerAllIn; google::protobuf::internal::false_type = google::protobuf::internal::integral_constant<bool, false>]’
/usr/include/google/protobuf/arena.h:681:33:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*) [with T = AllInShowCardsMessage_PlayerAllIn]’
/usr/include/google/protobuf/repeated_field.h:617:63:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::New(google::protobuf::Arena*) [with GenericType = AllInShowCardsMessage_PlayerAllIn]’
/usr/include/google/protobuf/repeated_field.h:647:13:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::NewFromPrototype(const GenericType*, google::protobuf::Arena*) [with GenericType = AllInShowCardsMessage_PlayerAllIn]’
/usr/include/google/protobuf/repeated_field.h:1553:36:   required from ‘typename TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::Add(typename TypeHandler::Type*) [with TypeHandler = google::protobuf::RepeatedPtrField<AllInShowCardsMessage_PlayerAllIn>::TypeHandler; typename TypeHandler::Type = AllInShowCardsMessage_PlayerAllIn]’
/usr/include/google/protobuf/repeated_field.h:2000:48:   required from ‘Element* google::protobuf::RepeatedPtrField<Element>::Add() [with Element = AllInShowCardsMessage_PlayerAllIn]’
src/third_party/protobuf/pokerth.pb.h:16720:28:   required from here
/usr/include/google/protobuf/arena.h:361:14: error: invalid new-expression of abstract class type ‘AllInShowCardsMessage_PlayerAllIn’
/usr/include/google/protobuf/arena.h: In instantiation of ‘static T* google::protobuf::Arena::Create(google::protobuf::Arena*) [with T = PlayerResult]’:
/usr/include/google/protobuf/arena.h:676:21:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*, google::protobuf::internal::false_type) [with T = PlayerResult; google::protobuf::internal::false_type = google::protobuf::internal::integral_constant<bool, false>]’
/usr/include/google/protobuf/arena.h:681:33:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*) [with T = PlayerResult]’
/usr/include/google/protobuf/repeated_field.h:617:63:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::New(google::protobuf::Arena*) [with GenericType = PlayerResult]’
/usr/include/google/protobuf/repeated_field.h:647:13:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::NewFromPrototype(const GenericType*, google::protobuf::Arena*) [with GenericType = PlayerResult]’
/usr/include/google/protobuf/repeated_field.h:1553:36:   required from ‘typename TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::Add(typename TypeHandler::Type*) [with TypeHandler = google::protobuf::RepeatedPtrField<PlayerResult>::TypeHandler; typename TypeHandler::Type = PlayerResult]’
/usr/include/google/protobuf/repeated_field.h:2000:48:   required from ‘Element* google::protobuf::RepeatedPtrField<Element>::Add() [with Element = PlayerResult]’
src/third_party/protobuf/pokerth.pb.h:16771:29:   required from here
/usr/include/google/protobuf/arena.h:361:14: error: invalid new-expression of abstract class type ‘PlayerResult’
/usr/include/google/protobuf/arena.h: In instantiation of ‘static T* google::protobuf::Arena::Create(google::protobuf::Arena*) [with T = StatisticsMessage_StatisticsData]’:
/usr/include/google/protobuf/arena.h:676:21:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*, google::protobuf::internal::false_type) [with T = StatisticsMessage_StatisticsData; google::protobuf::internal::false_type = google::protobuf::internal::integral_constant<bool, false>]’
/usr/include/google/protobuf/arena.h:681:33:   required from ‘static T* google::protobuf::Arena::CreateMaybeMessage(google::protobuf::Arena*) [with T = StatisticsMessage_StatisticsData]’
/usr/include/google/protobuf/repeated_field.h:617:63:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::New(google::protobuf::Arena*) [with GenericType = StatisticsMessage_StatisticsData]’
/usr/include/google/protobuf/repeated_field.h:647:13:   required from ‘static GenericType* google::protobuf::internal::GenericTypeHandler<Type>::NewFromPrototype(const GenericType*, google::protobuf::Arena*) [with GenericType = StatisticsMessage_StatisticsData]’
/usr/include/google/protobuf/repeated_field.h:1553:36:   required from ‘typename TypeHandler::Type* google::protobuf::internal::RepeatedPtrFieldBase::Add(typename TypeHandler::Type*) [with TypeHandler = google::protobuf::RepeatedPtrField<StatisticsMessage_StatisticsData>::TypeHandler; typename TypeHandler::Type = StatisticsMessage_StatisticsData]’
/usr/include/google/protobuf/repeated_field.h:2000:48:   required from ‘Element* google::protobuf::RepeatedPtrField<Element>::Add() [with Element = StatisticsMessage_StatisticsData]’
src/third_party/protobuf/pokerth.pb.h:17734:30:   required from here
/usr/include/google/protobuf/arena.h:361:14: error: invalid new-expression of abstract class type ‘StatisticsMessage_StatisticsData’
make[1]: *** [Makefile.pokerth_protocol:325: obj/pokerth.pb.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/games-board/pokerth-1.1.1-r2/work/PokerTH-1.1.1-src'
make: *** [Makefile:47: sub-pokerth_protocol-pro-make_first-ordered] Error 2
 * ERROR: games-board/pokerth-1.1.1-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=games-board/pokerth-1.1.1-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-board/pokerth-1.1.1-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-board/pokerth-1.1.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pokerth-1.1.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/games-board/pokerth-1.1.1-r2/work/PokerTH-1.1.1-src'
 * S: '/var/tmp/portage/games-board/pokerth-1.1.1-r2/work/PokerTH-1.1.1-src'

>>> Failed to emerge games-board/pokerth-1.1.1-r2, Log file:

>>>  '/var/tmp/portage/games-board/pokerth-1.1.1-r2/temp/build.log'

 * Messages for package games-board/pokerth-1.1.1-r2:

 * ERROR: games-board/pokerth-1.1.1-r2::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=games-board/pokerth-1.1.1-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-board/pokerth-1.1.1-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/games-board/pokerth-1.1.1-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-board/pokerth-1.1.1-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/games-board/pokerth-1.1.1-r2/work/PokerTH-1.1.1-src'
 * S: '/var/tmp/portage/games-board/pokerth-1.1.1-r2/work/PokerTH-1.1.1-src'
Comment 1 Jonas Stein gentoo-dev 2018-01-16 08:45:25 UTC
Thank you for the report. Please recompile and *attach* the logfiles,
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
and reopen this ticket (Status:unconfirmed).
Comment 2 thunderrd 2018-01-16 09:00:57 UTC
Created attachment 515016 [details]
build.log
Comment 3 thunderrd 2018-01-16 09:13:13 UTC
Created attachment 515020 [details]
build.log
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2018-01-16 18:12:16 UTC
Comment on attachment 515016 [details]
build.log

There wasn't anything I could find that's wrong with this attachment.
Comment 5 thunderrd 2018-01-17 00:27:16 UTC
The first attachment 515016 [details] is full of ansi ESC characters; I stripped them out in 515020.

If it's OK to attach files with ESC characters, I'll leave them be in the future.
Comment 6 juneau_ 2018-02-01 17:20:40 UTC
Created attachment 517412 [details]
emerge --info

So i have the same issue
Comment 7 juneau_ 2018-02-01 17:35:02 UTC
Created attachment 517414 [details]
build.log
Comment 8 Mircea Sava 2018-02-24 13:12:27 UTC
Same here!
Comment 9 Sławomir Nizio 2018-02-25 12:55:22 UTC
Created attachment 521008 [details, diff]
patch

> Reported: 	2018-01-13

Perhaps at least a blocker, so people don't update protobuf, rebuild the whole bunch of stuff and then fail on this one.

Attached a patch. Runtime not tested but it should work and builds.
Comment 10 Mircea Sava 2018-02-28 14:46:30 UTC
I can confirm the proposed patch fixes the issue. Thanks!
Comment 11 Larry the Git Cow gentoo-dev 2018-04-27 21:51:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1e9b981d868caa32a59110e89eda03bafcbe155

commit b1e9b981d868caa32a59110e89eda03bafcbe155
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2018-04-27 21:49:39 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2018-04-27 21:49:39 +0000

    games-board/pokerth: Version bump to 1.1.2
    
    Fixes protobuf issue. Some libraries still need unbundling.
    
    Closes: https://bugs.gentoo.org/644460
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 games-board/pokerth/Manifest                       |  1 +
 .../pokerth/files/pokerth-1.1.2-protobuf.patch     | 23 +++++++
 games-board/pokerth/pokerth-1.1.2.ebuild           | 71 ++++++++++++++++++++++
 3 files changed, 95 insertions(+)