Closed Bug 1350043 Opened 8 years ago Closed 8 years ago

Build error: "ld: error: cannot find -lGL", followed by "native_gl_context.rs:112: error: undefined reference to 'glXGetCurrentContext'" and more

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1349967
Tracking Status
firefox55 --- affected

People

(Reporter: dholbert, Unassigned)

Details

Starting today (I think), I'm getting a bunch of build errors during linking for "undefined reference to [some GL function]" in rust code while linking libxul: { 4:33.51 ../../build/unix/gold/ld: error: cannot find -lGL 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:112: error: undefined reference to 'glXGetCurrentContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/utils.rs:78: error: undefined reference to 'glXChooseFBConfig' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/utils.rs:105: error: undefined reference to 'glXGetFBConfigAttrib' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/utils.rs:110: error: undefined reference to 'glXGetFBConfigAttrib' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/utils.rs:139: error: undefined reference to 'glXCreatePixmap' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:34: error: undefined reference to 'glXCreateNewContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:37: error: undefined reference to 'glXDestroyPixmap' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:61: error: undefined reference to 'glXDestroyContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:62: error: undefined reference to 'glXDestroyPixmap' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:75: error: undefined reference to 'glXGetProcAddress' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:80: error: undefined reference to 'glXGetCurrentContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:81: error: undefined reference to 'glXGetCurrentDisplay' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:96: error: undefined reference to 'glXGetCurrentDrawable' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:112: error: undefined reference to 'glXGetCurrentContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:123: error: undefined reference to 'glXMakeCurrent' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:112: error: undefined reference to 'glXGetCurrentContext' 4:33.51 /mozilla-inbound/third_party/rust/offscreen_gl_context/src/platform/with_glx/native_gl_context.rs:136: error: undefined reference to 'glXMakeCurrent' 4:33.51 clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) 4:33.51 /mozilla-inbound/config/rules.mk:798: recipe for target 'libxul.so' failed 4:33.51 make[5]: *** [libxul.so] Error 1 } I can work around this with: sudo apt install libgl1-mesa-dev ...but I'm not sure whether intended to require that as a new dependency or not. I'm using Ubuntu 17.04 prerelease (which is released next month). Not sure if this impacts earlier versions of Ubuntu, though I'll bet it does.
My mozconfig just has: ac_add_options --enable-debug --disable-optimize ...and no other enable/disable stuff.
Oh, looks like this was reported earlier today as bug 1349967. Duping.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.