Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698654 - net-libs/gnet-2.0.8-r2 : gnetcheck.h:318:5: error: too many arguments to function _tcase_add_test
Summary: net-libs/gnet-2.0.8-r2 : gnetcheck.h:318:5: error: too many arguments to func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 751223 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-27 13:45 UTC by Toralf Förster
Modified: 2021-05-22 03:44 UTC (History)
8 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.87 KB, text/plain)
2019-10-27 13:45 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,225.85 KB, text/plain)
2019-10-27 13:45 UTC, Toralf Förster
Details
environment (environment,119.14 KB, text/plain)
2019-10-27 13:45 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.19 KB, application/x-bzip)
2019-10-27 13:45 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.25 KB, application/x-bzip)
2019-10-27 13:45 UTC, Toralf Förster
Details
net-libs:gnet-2.0.8-r2:20191027-132931.log (net-libs:gnet-2.0.8-r2:20191027-132931.log,81.92 KB, text/plain)
2019-10-27 13:45 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,36.55 KB, application/x-bzip)
2019-10-27 13:45 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-10-27 13:45:24 UTC
      |                                           ~~~~^~~~~~~
In file included from gnetcheck.c:21:
gnetcheck.h:318:5: error: too many arguments to function ‘_tcase_add_test’
  318 |     _tcase_add_test (tc, tf, fname, signal, allowed_exit_value, start, end);
      |     ^~~~~~~~~~~~~~~
In file included from gnetcheck.h:30,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20191022-091630

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.38.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.13.0 [icedtea-8]
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 27 Oct 2019 13:02:26 +0000

emerge -qpvO net-libs/gnet
[ebuild  N    ] net-libs/gnet-2.0.8-r2  USE="-debug -test"
Comment 1 Toralf Förster gentoo-dev 2019-10-27 13:45:27 UTC
Created attachment 594136 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-10-27 13:45:30 UTC
Created attachment 594138 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-10-27 13:45:33 UTC
Created attachment 594140 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-10-27 13:45:35 UTC
Created attachment 594142 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-10-27 13:45:39 UTC
Created attachment 594144 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-10-27 13:45:42 UTC
Created attachment 594146 [details]
net-libs:gnet-2.0.8-r2:20191027-132931.log
Comment 7 Toralf Förster gentoo-dev 2019-10-27 13:45:45 UTC
Created attachment 594148 [details]
temp.tbz2
Comment 8 Phazeus 2020-07-03 02:58:28 UTC
Same problem, waiting for fix...
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-25 18:29:37 UTC
*** Bug 751223 has been marked as a duplicate of this bug. ***
Comment 10 Willard Dawson 2020-11-11 21:45:38 UTC
Likewise, just ran into this, any progress?
Comment 11 Willard Dawson 2020-11-11 21:48:55 UTC
Upstream appear to believe they fixed this 10 years ago:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569378
Comment 12 Willard Dawson 2020-11-12 02:43:15 UTC
As it happens, commenting out "#epatch "${FILESDIR}"/${PN}-2.0.8-check-usage-update.patch" from the gnet-2.0.8-r2.ebuild allows the emerge to succeed. Somehow, the current version of dev-libs/check appears to support the prior number of arguments. Not sure what or how that happened, but oh well.
Comment 13 Raymond Jennings 2021-02-14 22:43:37 UTC
I'd like to mention that this bug still exists, and at the moment it's a dependency of another package, gnome-mud, which I therefore cannot install right now.
Comment 14 Mart Raudsepp gentoo-dev 2021-02-15 13:58:10 UTC
(In reply to Raymond Jennings from comment #13)
> I'd like to mention that this bug still exists, and at the moment it's a
> dependency of another package, gnome-mud, which I therefore cannot install
> right now.

don't enable FEATURES=test on gnet in the meantime? :)
Comment 15 Raymond Jennings 2021-02-15 21:00:50 UTC
(In reply to Mart Raudsepp from comment #14)
> (In reply to Raymond Jennings from comment #13)
> > I'd like to mention that this bug still exists, and at the moment it's a
> > dependency of another package, gnome-mud, which I therefore cannot install
> > right now.
> 
> don't enable FEATURES=test on gnet in the meantime? :)

I didn't, just double checked make.conf, and test isn't enabled.  The corresponding USE flag is also disabled for gnet, could you clarify why you thought I had it turned on?
Comment 16 Attila Tóth 2021-04-14 09:12:51 UTC
(In reply to Willard Dawson from comment #12)
> As it happens, commenting out "#epatch
> "${FILESDIR}"/${PN}-2.0.8-check-usage-update.patch" from the
> gnet-2.0.8-r2.ebuild allows the emerge to succeed. Somehow, the current
> version of dev-libs/check appears to support the prior number of arguments.
> Not sure what or how that happened, but oh well.

It compiles without the patch, but the arguments aren't matching with check.h:
_tcase_add_test (tc, tf, func_name, sig, start, end);
vs
CK_DLL_EXP void CK_EXPORT _tcase_add_test(TCase * tc, const TTest * ttest,
                                          int _signal, int allowed_exit_value,
                                          int start, int end);
Comment 17 Agostino Sarubbo gentoo-dev 2021-04-20 06:48:36 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 18 Larry the Git Cow gentoo-dev 2021-05-22 03:38:56 UTC
The bug has been closed via the following commit(s):

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

commit c9261c52a34d2026772141a7206a0803261cb320
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2021-05-22 03:36:51 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2021-05-22 03:38:45 +0000

    net-libs/gnet: fix build failure with recent dev-libs/check
    
    Drop problematic patch as suggested by Willard Dawson:
    https://bugs.gentoo.org/698654#c12
    
    Closes: https://bugs.gentoo.org/698654
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 net-libs/gnet/gnet-2.0.8-r3.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 19 Andrew Savchenko gentoo-dev 2021-05-22 03:44:43 UTC
(In reply to Agostino Sarubbo from comment #17)
> Dear treecleaner@:
> 
> I'm still able to reproduce this issue right now.
> 
> Since it has not been fixed for a long time, I'd suggest to evaluate if it
> is the case to remove this package from the tree. Thanks

Since this bug was on the verge of tree cleaning and it has useful deps in the tree, I went straight ahead and fixed this bug without pinging maintainer first, since bug was open for 1.5 years without being fixed.

The fix is trivial as suggested in comment 12.