libXrandr.so.2: undefined symbol: _XGetRequest

Issues related to applications and software problems
Post Reply
duvayu
Posts: 3
Joined: 2020/02/29 23:15:14

libXrandr.so.2: undefined symbol: _XGetRequest

Post by duvayu » 2020/02/29 23:23:26

centos 7
gnome works just fine

xfce and mate were working till now

what is this error about

xfce4-session: symbol lookup error: /usr/lib64/libXrandr.so.2: undefined symbol: _XGetRequest

mate-session: symbol lookup error: /usr/lib64/libXrandr.so.2: undefined symbol: _XGetRequest

ldd -v /usr/lib64/libXrandr.so.2
linux-vdso.so.1 => (0x00007fff2a1df000)
libXext.so.6 => /opt/ansys_inc/v201/Electronics/Linux64/defer/libXext.so.6 (0x00007f6a159ea000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00007f6a154c5000)
libX11.so.6 => /opt/ansys_inc/v201/Electronics/Linux64/defer/libX11.so.6 (0x00007f6a152e8000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007f6a14f1a000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f6a14d16000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6a158db000)

Version information:
/usr/lib64/libXrandr.so.2:
libc.so.6 (GLIBC_2.14) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.4) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /usr/lib64/libc.so.6
/opt/ansys_inc/v201/Electronics/Linux64/defer/libXext.so.6:
libc.so.6 (GLIBC_2.2.5) => /usr/lib64/libc.so.6
/usr/lib64/libXrender.so.1:
libc.so.6 (GLIBC_2.14) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.4) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /usr/lib64/libc.so.6
/opt/ansys_inc/v201/Electronics/Linux64/defer/libX11.so.6:
libdl.so.2 (GLIBC_2.2.5) => /usr/lib64/libdl.so.2
libc.so.6 (GLIBC_2.3) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /usr/lib64/libc.so.6
/usr/lib64/libc.so.6:
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
/usr/lib64/libdl.so.2:
ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
libc.so.6 (GLIBC_PRIVATE) => /usr/lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /usr/lib64/libc.so.6

sml
Posts: 113
Joined: 2020/01/17 09:01:44

Re: libXrandr.so.2: undefined symbol: _XGetRequest

Post by sml » 2020/03/01 11:17:42

The first things to check are the contents of the environment variable LD_LIBRARY_PATH and the output of nm -D to see if the symbol actually exists:

Code: Select all

nm -D /usr/lib64/libXrandr.so.2 | grep -w _XGetRequest
Does gnome-session use the same version of libXrandr as xfce-session/mate-session?

Code: Select all

ldd /usr/libexec/gnome-session-binary | grep libXrandr

User avatar
TrevorH
Forum Moderator
Posts: 29115
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: libXrandr.so.2: undefined symbol: _XGetRequest

Post by TrevorH » 2020/03/01 12:37:49

I'd also be loking at why you're using non-CentOS versions of things...

libXext.so.6 => /opt/ansys_inc/v201/Electronics/Linux64/defer/libXext.so.6 (0x00007f6a159ea000)
libX11.so.6 => /opt/ansys_inc/v201/Electronics/Linux64/defer/libX11.so.6 (0x00007f6a152e8000)
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

duvayu
Posts: 3
Joined: 2020/02/29 23:15:14

Re: libXrandr.so.2: undefined symbol: _XGetRequest

Post by duvayu » 2020/03/05 15:50:03

prepend-path LD_LIBRARY_PATH /opt/ansys_inc/v201/autodyn/lib/linx64/:/opt/ansys_inc/v201/Framework/bin/Linux64:
/opt/ansys_inc/v201/Electronics/Linux64/defer:/usr/lib64:/opt/ansys_inc/v201/polyflow/polyflow20.1.0/lnamd64/libs
this was preventing mate from starting .
moving it to a module file to run after the Desktop get started solved the problem.

duvayu
Posts: 3
Joined: 2020/02/29 23:15:14

Re: libXrandr.so.2: undefined symbol: _XGetRequest

Post by duvayu » 2020/03/05 15:52:38

how to mark this as solved? :mrgreen:

tunk
Posts: 725
Joined: 2017/02/22 15:08:17

Re: libXrandr.so.2: undefined symbol: _XGetRequest

Post by tunk » 2020/03/05 16:03:29

I think you can edit the title of threads you have started.

Post Reply

Return to “CentOS 7 - Software Support”