On Mon, 2007-12-03 at 06:41 +0100, michalwd1979 wrote:
> 
> I finally managed to get my 2 drivers working on my system. I am
> attaching a patch that fixed the problem for me, but I am not a dri
> developer. Please review it, I am not sure if by fixing one problem I
> did not create another.
> I started with the problem described here:
> http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg29940.html
> but with radeon and mga driver. Dri works only on first screen on
> second it fails even when Xorg log says that everything is OK. I think
> that the problem was with extern declaration (in
> Mesa-7.0.2/include/GL/internal/dri_interface.h) of __driConfigOptions.
> With 2 extern declarations (in 2 drives) one always hide the other and
> both drivers try to use the same option list. nConfigOptions is
> declared as static.
> I changed declaration of __driConfigOptions to static (in h file as
> well as in drivers) and now it works.

This change breaks xdriinfo (and thus driconf) because the symbol is no
longer exported from the driver binary.

Does the attached patch fix it? (You'll have to make sure the *_dri.so
get regenerated by the patched mklib)


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer
diff --git a/bin/mklib b/bin/mklib
index 2bfd1b9..7d271de 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -208,8 +208,13 @@ case $ARCH in
 	if [ $NOPREFIX = 1 ] ; then
 	    # No "lib" or ".so" part
 	    echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
-	    #OPTS="-shared -Wl,-soname,${LIBNAME}"  # soname???
-	    OPTS="-shared"
+	    case $ARCH in 'Linux' | 'GNU' | GNU/*)
+		OPTS="-Xlinker -Bsymbolic -shared"
+	    ;;
+	    *)
+		OPTS="-shared"
+	    ;;
+	    esac
 
 	    # Check if objects are 32-bit and we're running in 64-bit
 	    # environment.  If so, pass -m32 flag to linker.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to