{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11817","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11817/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11817/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11817/events","html_url":"https://github.com/NixOS/nixpkgs/pull/11817","id":123012341,"number":11817,"title":"fglrx: fix fglrx_dri.so","user":{"login":"a1russell","id":241628,"avatar_url":"https://avatars.githubusercontent.com/u/241628?v=3","gravatar_id":"","url":"https://api.github.com/users/a1russell","html_url":"https://github.com/a1russell","followers_url":"https://api.github.com/users/a1russell/followers","following_url":"https://api.github.com/users/a1russell/following{/other_user}","gists_url":"https://api.github.com/users/a1russell/gists{/gist_id}","starred_url":"https://api.github.com/users/a1russell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1russell/subscriptions","organizations_url":"https://api.github.com/users/a1russell/orgs","repos_url":"https://api.github.com/users/a1russell/repos","events_url":"https://api.github.com/users/a1russell/events{/privacy}","received_events_url":"https://api.github.com/users/a1russell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/2.status:%20work-in-progress","name":"2.status: work-in-progress","color":"e6e6e6"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20nixos","name":"6.topic: nixos","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-18T19:34:01Z","updated_at":"2016-01-12T19:14:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/11817","html_url":"https://github.com/NixOS/nixpkgs/pull/11817","diff_url":"https://github.com/NixOS/nixpkgs/pull/11817.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/11817.patch"},"body":"Attempting to fix #11740. I am on 15.09 stable. After the changes, I get a setfault upon running glxinfo:\r\n```\r\n# LIBGL_DEBUG=verbose glxinfo\r\nname of display: :0.0\r\nlibGL: AtiGetClientDriverName: 15.20.3 fglrx (screen 0)\r\nukiDynamicMajor: found major device number 247\r\nukiDynamicMajor: found major device number 247\r\nukiDynamicMajor: found major device number 247\r\nukiOpenDevice: node name is /dev/ati/card0\r\nukiOpenDevice: open result is 4, (OK)\r\nukiGetBusid returned 'PCI:2:0:0'\r\nukiOpenDevice: node name is /dev/ati/card1\r\nukiOpenDevice: open result is 4, (OK)\r\nukiGetBusid returned 'PCI:3:0:0'\r\nukiOpenDevice: node name is /dev/ati/card2\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card3\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card4\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card5\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card6\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card7\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card8\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card9\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card10\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card11\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card12\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card13\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card14\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiOpenDevice: node name is /dev/ati/card15\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: open result is -1, (No such device)\r\nukiOpenDevice: Open failed\r\nukiDynamicMajor: found major device number 247\r\nukiOpenByBusid: Searching for BusID PCI:2:0:0\r\nukiOpenDevice: node name is /dev/ati/card0\r\nukiOpenDevice: open result is 4, (OK)\r\nukiOpenByBusid: ukiOpenMinor returns 4\r\nukiOpenByBusid: ukiGetBusid reports PCI:2:0:0\r\nlibGL: AtiGetClientDriverName: 15.20.3 fglrx (screen 1)\r\nukiDynamicMajor: found major device number 247\r\nukiDynamicMajor: found major device number 247\r\nukiOpenByBusid: Searching for BusID PCI:2:0:0\r\nukiOpenDevice: node name is /dev/ati/card0\r\nukiOpenDevice: open result is 5, (OK)\r\nukiOpenByBusid: ukiOpenMinor returns 5\r\nukiOpenByBusid: ukiGetBusid reports PCI:2:0:0\r\nSegmentation fault\r\n```\r\n\r\nBut I no longer need the `/usr/X11R6/lib64/modules/dri` -> `/run/opengl-driver/lib/dri symlink`, and `fglrx_dri.so` seems to have everything resolved:\r\n```\r\n$ ldd /run/opengl-driver/lib/dri/fglrx_dri.so\r\n\tlinux-vdso.so.1 (0x00007ffc8c79f000)\r\n\tlibstdc++.so.6 => /nix/store/81gmdmvsi9a3iyhk4hnxamm8hg8d82sx-gcc-4.9.3/lib64/libstdc++.so.6 (0x00007fbaa38de000)\r\n\tlibpthread.so.0 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libpthread.so.0 (0x00007fbaa36c1000)\r\n\tlibrt.so.1 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/librt.so.1 (0x00007fbaa34b9000)\r\n\tlibdl.so.2 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libdl.so.2 (0x00007fbaa32b5000)\r\n\tlibm.so.6 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libm.so.6 (0x00007fbaa2fb2000)\r\n\tlibgcc_s.so.1 => /nix/store/81gmdmvsi9a3iyhk4hnxamm8hg8d82sx-gcc-4.9.3/lib64/libgcc_s.so.1 (0x00007fbaa2d9c000)\r\n\tlibXext.so.6 => /run/opengl-driver/lib/libXext.so.6 (0x00007fbaa2b8a000)\r\n\tlibX11.so.6 => /run/opengl-driver/lib/libX11.so.6 (0x00007fbaa284d000)\r\n\tlibc.so.6 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libc.so.6 (0x00007fbaa24ad000)\r\n\t/nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib64/ld-linux-x86-64.so.2 (0x00007fbaa644b000)\r\n\tlibxcb.so.1 => /nix/store/dfwj9b6vb2g65asg681yw2w8knpmlqq4-libxcb-1.11/lib/libxcb.so.1 (0x00007fbaa228f000)\r\n\tlibXau.so.6 => /nix/store/p408ns8dn0cfi4z4fzd6f10b9pvlfhss-libXau-1.0.8/lib/libXau.so.6 (0x00007fbaa208c000)\r\n\tlibXdmcp.so.6 => /nix/store/xm4jqqq9m2nb9mczvv02z1lsyj225kvf-libXdmcp-1.1.2/lib/libXdmcp.so.6 (0x00007fbaa1e87000)\r\n```\r\n\r\nAny feedback on the changes, or especially does anyone have an idea of why the segfault is happening?"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/171020190","html_url":"https://github.com/NixOS/nixpkgs/pull/11817#issuecomment-171020190","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11817","id":171020190,"user":{"login":"a1russell","id":241628,"avatar_url":"https://avatars.githubusercontent.com/u/241628?v=3","gravatar_id":"","url":"https://api.github.com/users/a1russell","html_url":"https://github.com/a1russell","followers_url":"https://api.github.com/users/a1russell/followers","following_url":"https://api.github.com/users/a1russell/following{/other_user}","gists_url":"https://api.github.com/users/a1russell/gists{/gist_id}","starred_url":"https://api.github.com/users/a1russell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a1russell/subscriptions","organizations_url":"https://api.github.com/users/a1russell/orgs","repos_url":"https://api.github.com/users/a1russell/repos","events_url":"https://api.github.com/users/a1russell/events{/privacy}","received_events_url":"https://api.github.com/users/a1russell/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T19:14:22Z","updated_at":"2016-01-12T19:14:22Z","body":"@vcunat Complete shot in the dark here, but do the libXinerama \"file not found\" lines in my strace at http://hastebin.com/qokomanaro.vhdl mean that libXinerama needs to be added to xlibs-wrapper?\r\n\r\n`glxinfo` has few dependencies except `xlibsWrapper`."}}