mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan Xu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MESOS-7378) Build failure with missing gnu_dev_major and gnu_dev_minor symbols
Date Tue, 09 May 2017 23:52:04 GMT

    [ https://issues.apache.org/jira/browse/MESOS-7378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003783#comment-16003783
] 

Yan Xu commented on MESOS-7378:
-------------------------------

Some potential workarounds. <features.h> provides the following definitions

{code:title=}
#define __GLIBC__       2
#define __GLIBC_MINOR__ 12
{code}

which we can use to insert c++ dels conditionally.

We could probably also directly test it in {{configure.ac}}. We do it for other GCC and libc++
bugs there.

> Build failure with missing gnu_dev_major and gnu_dev_minor symbols
> ------------------------------------------------------------------
>
>                 Key: MESOS-7378
>                 URL: https://issues.apache.org/jira/browse/MESOS-7378
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.3.0
>            Reporter: James Peach
>            Priority: Blocker
>
> {noformat}
> 03:46:16 - ./.libs/libmesos.so: undefined reference to `gnu_dev_minor(unsigned long long)'
> 03:46:16 - ./.libs/libmesos.so: undefined reference to `gnu_dev_major(unsigned long long)'
> {noformat}
> This is caused by the change in MESOS-7365.
> Including {{<sys/sysmacros.h>}} directly works on modern systems, but on our older
version of glibc, the {{<sys/sysmacros.h>}} header does not contain C++ decls. This
means that the inline symbols get C++ name mangling applied and they don't get found at link
time.
> {noformat}
> vagrant@mesos ~]$ cat /etc/redhat-release
> CentOS release 6.8 (Final)
> [vagrant@mesos ~]$ rpm -qa | grep glibc
> glibc-common-2.12-1.192.el6.x86_64
> glibc-devel-2.12-1.192.el6.x86_64
> glibc-2.12-1.192.el6.x86_64
> glibc-headers-2.12-1.192.el6.x86_64
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message