Hey guys,
Not sure if you guys are using a beta version of redhat or any other
setup using a 2.96+ release of gcc, but if so...
It seems they are implementing a new optimization that is on by default
in the compiler that doesn't allow symbols to be resolved correctly in
the X module loader. The optimization is "merge-constants". Until this
is fixed in the module loader, you may pass -fno-merge-constants to gcc.
Here are some things to change, per a post on xfree86-devel:
The host.def settings are:
/*
* The following changes are required in order to disable gcc's new
* 'merge-constants' optimization, because the XFree86 module loader is
not
* yet aware of the new ELF sections it produces, and will cause module
* loading to fail. - [EMAIL PROTECTED]
*/
#define NeedModuleRanlib YES
#define ModuleCFlags \$(CDEBUGFLAGS) \$(CCOPTIONS) -fno-merge-constants
\
\$(THREAD_CFLAGS) \$(ALLDEFINES)
#define ModuleRanlibCmd RanlibCmd
And the needed patch to enable the above functionality (which was
previously limited only to OS2 builds) is attached.
Matt Matthews wrote:
>
> On Mon, 2001-09-24 at 12:49, Frank Jacobberger wrote:
> > Symbol mcount from module /usr/X11R6-DRI/lib/modules/fonts/libbitmap.a
> > is unresolved!
>
> I got the same error this weekend when I compiled the DRI trunk from
> cvs. I'd also like to know how to fix it.
>
> Regards,
> matt
>
> --
> Matt Matthews \ ph: 919.660.2811 \ Use GNU\Linux _o) w00t
> Duke Univ., Postdoc\ [EMAIL PROTECTED] \____________ /\\
> Dept. of Mathematics\ http://www.math.duke.edu/~jvmatthe/ \ _\_V
>
> _______________________________________________
> Dri-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dri-devel
--- xc/config/cf/xf86.tmpl.allow-module-flags Thu Jul 5 10:25:57 2001
+++ xc/config/cf/xf86.tmpl Thu Jul 5 10:26:29 2001
@@ -53,7 +53,7 @@
# endif
#endif
-#if defined(IHaveModules) && DoLoadableServer && defined(OS2Architecture)
+#if defined(IHaveModules) && DoLoadableServer
/* This overrides the ObjCompile in Imake.rules! */
#undef ObjectCompile