Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 588980 - sci-geosciences/grass: emake failed: get_row.c:18:48: fatal error: rpc/types.h: No such file or directory
Summary: sci-geosciences/grass: emake failed: get_row.c:18:48: fatal error: rpc/types....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam Jorna (wraeth)
URL:
Whiteboard: ~arch only
Keywords:
: 638350 (view as bug list)
Depends on:
Blocks: glibc-rpc
  Show dependency tree
 
Reported: 2016-07-17 08:44 UTC by Martin von Gagern
Modified: 2018-04-22 19:06 UTC (History)
3 users (show)

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


Attachments
emerge --info (sci-geosciences:grass-7.0.4.emerge--info,9.19 KB, text/plain)
2016-07-17 08:44 UTC, Martin von Gagern
Details
build.log (bzip2) (sci-geosciences:grass-7.0.4:20160716-183740.log.bz2,62.55 KB, application/x-bzip2)
2016-07-17 14:55 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2016-07-17 08:44:19 UTC
Created attachment 440930 [details]
emerge --info

Grass fails to update on my system:

get_row.c:18:48: fatal error: rpc/types.h: No such file or directory
compilation terminated.
make[3]: *** [../../include/Make/Compile.make:32: OBJ.x86_64-pc-linux-gnu/get_ro
w.o] Error 1

So I'd say this is related to the fact that rpc has been removed from sys-libs/glibc. So I guess we need some magic to make the package support net-libs/libtirpc.
Comment 1 Martin von Gagern 2016-07-17 10:04:24 UTC
I solved this for myself by creating the following file:

$ cat /etc/portage/env/sci-geosciences/grass-7.0.4
export LIBS="$(pkg-config --libs libtirpc) ${LIBS}"
export CPPFLAGS="$(pkg-config --cflags libtirpc) ${CPPFLAGS}"

This is slightly inelegant, since the settings will get executed repeatedly, leading to several repetitions of each of them. So I guess this should go into some function, perhaps pre_pkg_setup(). But the above works, while I haven't tried the alternative.
Comment 2 Coacher 2016-07-17 13:42:35 UTC
Please attach a complete build.log where this problem can be seen.
Comment 3 Martin von Gagern 2016-07-17 14:55:25 UTC
Created attachment 440942 [details]
build.log (bzip2)

The actual error is reported in lines 788 through 800, but the build doesn't terminate till long after that, amounting to more than 1000k of log so I had to compress this.
Comment 4 Martin von Gagern 2017-05-01 16:09:54 UTC
(In reply to Martin von Gagern from comment #1)
> I guess this should go into some function, perhaps pre_pkg_setup().

Indeed this works as intended, tested with grass 7.2.0:

$ cat /etc/portage/env/sci-geosciences/grass-7.2.0
pre_pkg_setup() {
        export LIBS="$(pkg-config --libs libtirpc) ${LIBS}"
        export CPPFLAGS="$(pkg-config --cflags libtirpc) ${CPPFLAGS}"
        einfo "LIBS='${LIBS}' CPPFLAGS='${CPPFLAGS}' # bug #588980"
}

By the way, the error on my most recent build read

In file included from auto_mask.c:23:0:
R.h:3:23: fatal error: rpc/types.h: No such file or directory

So I guess the exact message as to where rpc/types.h gets reported missing might vary between versions, parallel builds and so on.
Comment 5 MarisN 2017-12-07 18:01:56 UTC
(In reply to Martin von Gagern from comment #0)
> So I'd say this is related to the fact that rpc has been removed from
> sys-libs/glibc. So I guess we need some magic to make the package support
> net-libs/libtirpc.
Next time, please, report this kind of problems upstream too.
https://trac.osgeo.org/grass/ticket/3463
Comment 6 Toralf Förster gentoo-dev 2018-01-11 17:28:50 UTC
*** Bug 638350 has been marked as a duplicate of this bug. ***
Comment 7 Larry the Git Cow gentoo-dev 2018-04-04 21:09:48 UTC
The bug has been closed via the following commit(s):

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

commit f602ce29a225b52165cf735a263c65a6a8774f36
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-04-04 21:01:04 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-04-04 21:09:32 +0000

    sci-geosciences/grass: Fix build with glibc-2.26
    
    Reported-by: Martin von Gagern <Martin.vGagern@gmx.net>
    Thanks-to: MarisN <maris.gis@gmail.com>
    Closes: https://bugs.gentoo.org/588980
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 .../grass/files/grass-7.2.0-glibc-2.26-1.patch     | 10 +++++++
 .../grass/files/grass-7.2.0-glibc-2.26-2.patch     | 32 ++++++++++++++++++++++
 sci-geosciences/grass/grass-7.2.0-r1.ebuild        |  1 +
 3 files changed, 43 insertions(+)