[LinuxCNC/linuxcnc Issue#392] libnml should ask pkg-config about libtirpc location

未分类 bolang 5个月前 (10-15) 21次浏览

Issue #392 | 状态: 已关闭 | 作者: l29ah | 创建时间: 2018-01-03

标签: portability pull-request-welcome


As the internal glibc sunrpc implementation is deprecated long time ago and removed in the recent versions.

In file included from libnml/cms/cms.cc:37:0:
libnml/cms/cms_xup.hh:19:39: fatal error: rpc/rpc.h: No such file or directory
`
`
∞ pkg-config --cflags libtirpc
-I/usr/include/tirpc


评论 (7)

#1 – Petross404 于 2018-02-02

> ∞ pkg-config –cflags libtirpc
-I/usr/include/tirpc

This works?


#2 – spike77453 于 2018-05-02

sunrpc seems to be removed from glibc >= 2.27 so linuxcnc doesn’t compile anymore :(


#3 – jepler 于 2018-05-03

It appears that for master branch, it would be acceptable to change unconditionally to libtirpc, because the package libtirpc-dev is in ubuntu 12.04 and newer and debian 7.0 and newer. However, a fix targeted to 2.7 must adapt to either situation, because 2.7 still targets ubuntu 10.04 which does not live package libtirpc-dev.


#4 – jepler 于 2018-05-03

.. I upated http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MinimumSoftwareVersions with information about libtirpc-dev based on a bit of googling. Feel free to update it (or just make a correction here) if I got it wrong.


#5 – Petross404 于 2018-05-05

> sunrpc seems to be removed from glibc >= 2.27 so linuxcnc doesn’t compile anymore :(

I think it got removed one or two versions earlier ;)


#6 – awigen 于 2019-05-11

It was removed in 2011 glibc-2.14: https://sourceware.org/git/?p=glibc.git;a=commit;h=7b57bfe5988e476ea40934457dfd1c8a231e2391


#7 – rene-dev 于 2019-05-13

fixed by #587


原始Issue: https://github.com/LinuxCNC/linuxcnc/issues/392

喜欢 (0)