[prev in list] [next in list] [prev in thread] [next in thread]
List: mesa3d-dev
Subject: [Mesa3d-dev] [ mesa3d-Bugs-1057067 ] freebsd-dri compile error
From: "SourceForge.net" <noreply () sourceforge ! net>
Date: 2004-10-29 22:08:14
Message-ID: E1CNeus-0000Xw-8u () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]
Bugs item #1057067, was opened at 2004-10-30 00:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100003&aid=1057067&group_id=3
Category: other
Group: Compile/Install
Status: Open
Resolution: None
Priority: 5
Submitted By: JamesLast (jkreuzer)
Assigned to: Nobody/Anonymous (nobody)
Summary: freebsd-dri compile error
Initial Comment:
Hi
i had problems compiling mesa-cvs (checkout from
10/24/2004) with target freebsd-dri. I am using
FreeBSD-5-RELENG_5, latest cvs-checkout.
The first error message i got was:
gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../../drm/shared -I../../../../../../drm/linux
-I../../../../../include -I../../../../../include/GL/internal
-I../../../../../src/mesa -I../../../../../src/mesa/main
-I../../../../../src/mesa/glapi -I../../../../../src/mesa/math
-I../../../../../src/mesa/transform -I../../../../../src/mesa/shader
-I../../../../../src/mesa/swrast
-I../../../../../src/mesa/swrast_setup -I../dri_client
-I../dri_client/imports -DDRI_NEW_INTERFACE_ONLY
-Wmissing-prototypes -g -std=c99 -Wundef -fPIC
-ffast-math -I/usr/local/include -I/usr/X11R6/include
-I/usr/X11R6/include/X11/extensions
-DGLX_DIRECT_RENDERING i810vb.c -o i810vb.o
In file included from i810vb.c:148:
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h: In function
`emit_wg':
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h:387: error:
`col_size' undeclared (first use in this function)
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h:387: error: (Each
undeclared identifier is reported only once
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h:387: error: for
each function it appears in.)
In file included from i810vb.c:239:
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h: In function
`emit_g':
../../../../../src/mesa/tnl_dd/t_dd_vbtmp.h:387: error:
`col_size' undeclared (first use in this function)
i810vb.c: In function `i810ChooseVertexState':
i810vb.c:433: warning: passing arg 1 of
`i810PrintSetupFlags' discards qualifiers from pointer
target type
gmake[3]: *** [i810vb.o] Error 1
gmake[3]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa/drivers/dri/i810'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa/drivers/dri'
gmake[1]: *** [drivers-dri] Error 2
gmake[1]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa'
gmake: *** [default] Error 2
However this could be solved with the patch from
http://sourceforge.net/mailarchive/forum.php?thread_id=5864851&forum_id=5154
The next error i got was:
rm -f ../../../../../lib/i810_dri.so && gcc
-o ../../../../../lib/i810_dri.so
-shared ../../common/driverfuncs.o ../common/mm.o ../common/utils.o \
../common/texmem.o ../common/vblank.o ../common/dri_util.o ../common/glcontextmodes.o \
../common/xmlconfig.o i810context.o i810ioctl.o i810render.o i810screen.o
i810span.o i810state.o i810tex.o i810texmem.o
i810texstate.o i810tris.o
i810vb.o ../../../../../src/mesa/mesa.a ../dri_client/dri.a -lm
-lpthread -lexpat
/usr/bin/ld: cannot find -lexpat
gmake[3]: *** [../../../../../lib/i810_dri.so] Error 1
gmake[3]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa/drivers/dri/i810'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa/drivers/dri'
gmake[1]: *** [drivers-dri] Error 2
gmake[1]: Leaving directory
`/usr/home/jan/r300driver/Mesa.freebsd/src/mesa'
gmake: *** [default] Error 2
*** Error code 1
This was solved by adding an explicit -L/usr/local/lib to
the freebsd-dri config file.
The next error was :
CC=gcc CXX=g++ ../../../bin/mklib -o GL -major 1 -minor
2 \
-install ../../../lib -L/usr/X11R6/lib -lX11 -lXext -lm
-pthread ../../../src/mesa/glapi/glapi.o ../../../src/mesa/glapi/glthread.o
glcontextmodes.o ../../../../drm/libdrm/xf86drm.o \
../../../../drm/libdrm/xf86drmHash.o ../../../../drm/libdrm/xf86drmRandom.o \
../../../../drm/libdrm/xf86drmSL.o clientattrib.o compsize.o dispatch.o eval.o \
g_render.o g_single.o g_vendpriv.o glxcmds.o glxext.o
glxextensions.o indirect_init.o pixel.o pixelstore.o
render2.o renderpix.o single2.o singlepix.o vertarr.o
xfont.o glx_pbuffer.o glx_query.o
glx_texture_compression.o dri_glx.o XF86dri.o
mklib: Unknown option: -pthread
This was solved by modifiyng -pthread to lpthread in the
freebsd-dri config file.
After these changes mesa cvs compiled fine. However i
am not able to test the compile as my card is an r300
based one. I already applied the ati.patch from
r300_driver (r300.sf.net) to the freebsd-xorg build
(modified with the following patch:
http://www.ijs.si/~lesi/xorg-681-up-4b.diff (stolen from
freebsd-x11 mailinglist ;-). When i modified the
freebsd-drm sources to load the correct microcode for my
r300 i will test the compiled mesa.
A patch against freebsd-dri is here:
--- freebsd-dri.orig Sat Oct 30 00:02:28 2004
+++ freebsd-dri Fri Oct 29 23:56:38 2004
@@ -17,8 +17,8 @@
ASM_SOURCES =
# Library/program dependencies
-DRI_LIB_DEPS = -lm -lpthread -lexpat
-GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
-pthread
+DRI_LIB_DEPS = -lm -lpthread -lexpat -L/usr/local/lib
+GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm
-lpthread
GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU
-lGL -lX11 -lXmu -lXt -lXi -lm
GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL
-lXt -lXm -lX11
Greetings Jan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100003&aid=1057067&group_id=3
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic