Undefined symbol when using proprietary nvidia drivers with bumblebee on Leap 15.0

I have just finished following all the instructions on installing bumblebee and nvidia drivers on the openSUSE wiki. Everything installed successfully and when I run

optirun --status

I get the expected

Bumblebee status: Ready (3.2.1). X inactive. Discrete video card is off.

.

However, when I try to run

optirun glxgears

I get the following error:

glxgears: symbol lookup error: /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS

And if I run

optirun -b none nvidia-settings -c :8

I get

ERROR: /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       libnvidia-gtk3.so: cannot open shared object file: No such file or directory
       /usr/X11R6/lib64/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS
       libnvidia-gtk2.so: cannot open shared object file: No such file or directory


ERROR: A problem occured when loading the GUI library. Please check your installation and library path. You may need to specify this library when calling nvidia-settings. Please run `nvidia-settings --help` for usage information.

Does anybody know what could have gone wrong and how to fix it?

Welcome to the openSUSE Forums! Apparently you followed the procedure that is marked as “tested on Tumbleweed and Leap 42.x”: unfortunately only the “old way” described here https://en.opensuse.org/index.php?title=SDB:NVIDIA_Bumblebee&oldid=118653
has been reported to work on Leap 15.
Please undo everything you did (uninstall Nvidia driver from the openSUSE repo and undo any configuration) and then follow the “old guide” with X11:Bumblebee repository.
Write again here if you find troubles again.

Thanks OrsoBruno, that worked! I only had to undo the nvidia driver steps and follow the ones from your link. The bumblebee installation itself was okay.