[Bug 242127] New: hal driver can't get loaded with Alpha0plus
https://bugzilla.novell.com/show_bug.cgi?id=242127 Summary: hal driver can't get loaded with Alpha0plus Product: openSUSE 10.3 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: adrian@novell.com QAContact: sndirsch@novell.com Using todays factory, the X server can load the mga_hal_drv.so anymore. It reports an "undefined symbol: __stack_chk_fail_local" in /usr/lib/xorg/modules/drivers/mga_hal_drv.so -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Critical Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com ------- Comment #1 from sndirsch@novell.com 2007-02-05 10:32 MST ------- I wonder if this is somewhat related to the new RPM_OPT_FLAGS, which includes "-fstack-protector" now. The mga_hal_drv.so Xserver module is partly binary only (mgaHALlib.a). My assumption is just a wild guess. Marcus? /work/built/dists/all/i386/packs-i386/xorg-x11-driver-video/xorg-x11-driver-video-7.2/Logfile.xorg-x11-driver-video.spec: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -DUSEMGAHAL -O2 -march=i586 -mtune=i686 -fmessage-leng th=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fno-strict-aliasing -MT clientlx.lo -MD -MP -MF .deps/clientlx.Tpo -c clientlx.c -fPIC -DPIC -o .libs/clientlx.o [...] gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/xorg -I/usr/include/drm -I/usr/include/X11/dri -DUSEMGAHAL -O2 -march=i586 -mtune=i686 -fmessage-leng th=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fno-strict-aliasing -MT mga_halmod.lo -MD -MP -MF .deps/mga_halmod.Tpo -c mga_halmod.c -fPIC -DPIC -o .libs/mga_halmod.o [...] gcc -m32 -o /var/tmp/xorg-x11-driver-video-7.2-build/usr/lib/xorg/modules/drivers/mga_hal_drv.so -shared -nostdlib .libs/mga_halmod.o .libs/clie ntlx.o HALlib/mgaHALlib.a -Wl,-Bstatic -lgcc -Wl,-Bdynamic -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |adrian@novell.com ------- Comment #2 from sndirsch@novell.com 2007-02-05 12:24 MST ------- Adrian, could you test the xorg-x11-driver-video package in /work/built/mbuild/shannon-sndirsch-35 The mga driver is built with -fno-stack-protector. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|adrian@novell.com | ------- Comment #3 from sndirsch@novell.com 2007-02-05 22:05 MST ------- I've installed the new package on reiser. Seems to fix this issue. -dlopen: /usr/lib/xorg/modules//drivers/mga_hal_drv.so: undefined symbol: __stack_chk_fail_local -(EE) Failed to load /usr/lib/xorg/modules//drivers/mga_hal_drv.so -(II) UnloadModule: "mga_hal" -(EE) MGA: Failed to load module "mga_hal" (loader failed, 7) -(==) MGA(0): Matrox HAL module not loaded - using builtin mode setup instead +(II) Module mga_hal: vendor="X.Org Foundation" + compiled for 7.2.0, module version = 1.0.0 + ABI class: X.Org Video Driver, version 1.1 +(==) MGA(0): Matrox HAL module used -(EE) MGA(0): HALLib not loaded! NOT using "Merged Framebuffer" mode. +(**) MGA(0): Using "Merged Framebuffer" mode. +(EE) MGA(0): -- Hardware Cursor disabled. +(II) MGA(0): ==== Start of second screen initialization ==== +[...] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 adrian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #4 from adrian@novell.com 2007-02-06 03:00 MST ------- yes, -39 does work indeed. Xinerama is back :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 meissner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #5 from meissner@novell.com 2007-02-06 03:17 MST ------- i wonder why it emitted __stack_chk_fail_local i doubt it should do so for DSOs, only for final binaries. GCC folks? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 meissner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmueller@novell.com, sndirsch@novell.com AssignedTo|sndirsch@novell.com |rguenther@novell.com Status|REOPENED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 ------- Comment #6 from meissner@novell.com 2007-02-06 03:23 MST ------- loikely this call does not resolve the hidden __stack_chk_fail_local correctly: gcc -m32 -o /var/tmp/xorg-x11-driver-video-7.2-build/usr/lib/xorg/modules/drivers/mga_hal_drv.so -shared -nostdlib .libs/mga_halmod.o .libs/clientlx.o HALlib/mgaHALlib.a -Wl,-Bstatic -lgcc -Wl,-Bdynamic -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 rguenther@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|rguenther@novell.com |sndirsch@novell.com ------- Comment #7 from rguenther@novell.com 2007-02-06 03:33 MST ------- -nostdlib is the reason this doesn't resolve. Is there a reason you don't want to link against glibc? Note that if some other X stuff you load this module into is linked against glibc linking against a to-be-provided libssp does not make much sense. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
Is there a reason you don't want to link against glibc? Well, I neither did write the configure.ac/Makefile.am files nor autotools. So
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther@novell.com ------- Comment #8 from sndirsch@novell.com 2007-02-06 04:11 MST ------- this is a question I simply can't answer. Maybe you can give me a gcc commandline, which you think could work? Then I can give it a try. Otherwise I'll switch to -fno-stack-protector. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #9 from sndirsch@novell.com 2007-02-06 04:13 MST ------- I found a hint in Makefile.am, which shows that there still might be an open issue. # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 ------- Comment #10 from sndirsch@novell.com 2007-02-06 04:44 MST ------- I think removing "-nostdlib" *and* "-lgcc" should do the trick. Is this correct? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 ------- Comment #11 from sndirsch@novell.com 2007-02-06 07:59 MST ------- Ouch! It has been my fault: xorg-x11-driver-video.spec: [...] %ifarch %ix86 pushd xf86-video-mga-*/src gcc -m32 \ -o $RPM_BUILD_ROOT/usr/%{_lib}/xorg/modules/drivers/mga_hal_drv.so \ -shared -nostdlib \ .libs/mga_halmod.o .libs/clientlx.o HALlib/mgaHALlib.a \ -Wl,-Bstatic -lgcc -Wl,-Bdynamic popd %endif I'll remove "-nostdlib" and "-lgcc". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 ------- Comment #12 from rguenther@novell.com 2007-02-06 08:03 MST ------- You probably wanted to have glibc-devel-32bit build dependencies. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 ------- Comment #13 from sndirsch@novell.com 2007-02-06 08:09 MST ------- Well, I doubt that a 32bit Xserver module will work on a 64bit Xserver. There's simply no HAL support available on x86_64. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=242127 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #14 from sndirsch@novell.com 2007-02-06 08:17 MST ------- Ok. Fixed for STABLE/Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com