Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664208 - net-nds/yp-tools-4.2.2-r2 : ypset.c:145:6: error: cast between incompatible function types from bool_t (*)(void) {aka int (*)(void) } to bool_t (*)(XDR *, ) {aka int (*)(struct _rpc_xdr *, ) } [-Werror=cast-function-type]
Summary: net-nds/yp-tools-4.2.2-r2 : ypset.c:145:6: error: cast between incompatible f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 18:39 UTC by Toralf Förster
Modified: 2019-02-23 17:32 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.54 KB, text/plain)
2018-08-21 18:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.76 KB, text/plain)
2018-08-21 18:39 UTC, Toralf Förster
Details
environment (environment,50.68 KB, text/plain)
2018-08-21 18:39 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.24 KB, application/x-bzip)
2018-08-21 18:39 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.47 KB, application/x-bzip)
2018-08-21 18:39 UTC, Toralf Förster
Details
net-nds:yp-tools-4.2.2-r2:20180821-154750.log (net-nds:yp-tools-4.2.2-r2:20180821-154750.log,19.56 KB, text/plain)
2018-08-21 18:39 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,15.97 KB, application/x-bzip)
2018-08-21 18:39 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 2018-08-21 18:39:22 UTC
                 from ypset.c:32:
ypset.c: In function ‘bind_tohost_v2’:
ypset.c:145:6: error: cast between incompatible function types from ‘bool_t (*)(void)’ {aka ‘int (*)(void)’} to ‘bool_t (*)(XDR *, ...)’ {aka ‘int (*)(struct __rpc_xdr *, ...)’} [-Werror=cast-function-type]
      (xdrproc_t) xdr_void, NULL, tv);
      ^
/usr/include/tirpc/rpc/clnt.h:167:10: note: in definition of macro ‘clnt_call’

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_libressl_20180817-190408

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

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

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *



emerge -qpv net-nds/yp-tools
[ebuild  N    ] net-nds/yp-tools-4.2.2-r2  USE="nls"
Comment 1 Toralf Förster gentoo-dev 2018-08-21 18:39:25 UTC
Created attachment 544366 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-21 18:39:28 UTC
Created attachment 544368 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-21 18:39:30 UTC
Created attachment 544370 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-21 18:39:33 UTC
Created attachment 544372 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-21 18:39:36 UTC
Created attachment 544374 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-21 18:39:39 UTC
Created attachment 544376 [details]
net-nds:yp-tools-4.2.2-r2:20180821-154750.log
Comment 7 Toralf Förster gentoo-dev 2018-08-21 18:39:42 UTC
Created attachment 544378 [details]
temp.tbz2
Comment 8 is 2018-09-06 12:14:25 UTC
Hi, I have the same issue. Is there a solution or workaround? It's rather important.
Comment 9 Patrice Herault 2018-09-18 22:28:14 UTC
Hi, I was able to compile yp-tools by changing the version of gcc.
I replaced gcc-8.2.0-r2 with gcc-7.3.0-r3.
No more worry.
Comment 10 Larry the Git Cow gentoo-dev 2018-12-06 00:17:54 UTC
The bug has been closed via the following commit(s):

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

commit e5b8e55366a2ea91ac13142a9a21a7db1e77dbeb
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2018-12-06 00:16:40 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2018-12-06 00:17:38 +0000

    net-nds/yp-tools: Bump to 4.2.3
    
    * EAPI 7
    * Fix for building with GCC 8
    
    Closes: https://bugs.gentoo.org/664208
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-nds/yp-tools/Manifest              |  1 +
 net-nds/yp-tools/yp-tools-4.2.3.ebuild | 43 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)