Re: Building problem with dri 7.6

[ Available lists | Index of freebsd-x11 | Month of Mar 2011 | Week of 2 Mar 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
John Hein <jhein@symmetricom.com>
Date
2 Mar 2011 00:04:22
Subject
Re: Building problem with dri 7.6
Message-ID
19821.35199.92165.675020@gossamer.timing.com

In reply to
Replies
Referenced by

[ Hide this part ]
Zhihao Yuan wrote at 17:45 -0600 on Mar  1, 2011:
> I know what you mean, exactly. That's exactly what I want to do, build
> libdrm 2.4.17 with --disable-radeon-experimental-api and
> WITHOUT_NOUVEAU=1 for other ports. Yes. But I don't know why, after I
> done this for libdrm, libGL, liBGLU, I found that I can not build dri
> 7.6.1 since HAVE_LIBDRM_RADEON is 1 in such case. As you said, it
> should not be, but it does happen.

It is set that way probably because dri's configure script really
did _set_ HAVE_LIBDRM_RADEON=yes.

And it probably set HAVE_LIBDRM_RADEON=yes because there is something
non-standard on your system.

Let's look at part of the dri configure script...

if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon libdrm >= \$LIBDRM_RADEON_REQUIRED\""; } >&5
($PKG_CONFIG --exists --print-errors "libdrm_radeon libdrm >= $LIBDRM_RADEON_REQUIRED") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon libdrm >= $LIBDRM_RADEON_REQUIRED" 2>/dev/null`


So what does 'pkg-config --exists --print-errors "libdrm_radeon libdrm"'
show on your system?

The configure script should only set HAVE_LIBDRM_RADEON=yes if the
above succeeds.

If it does succeed, then somehow you got libdrm_radeon (i.e.,
libdrm_radeon.pc) installed. But that should not be installed
if libdrm is built with --disable-radeon-experimental-api (as
it is currently set to be built in graphics/libdrm 2.4.17).

config.log might also tell more.

Elapsed time: 0.262 seconds