Subject: Re: ultra5 & Xwindows
To: Michael <macallan18@earthlink.net>
From: Amadeus Stevenson <amadeus.stevenson@gmail.com>
List: port-sparc64
Date: 05/02/2005 01:09:13
On 5/1/05, Michael <macallan18@earthlink.net> wrote:
> Hello,
>=20
> > When I'm making fluxbox:
> >
> > checking for XOpenDisplay in -lX11 ... no
> > configure: error: Could not find XOpenDisplay
>=20
> This can have several possible reasons, look at work/fluxbox*/config.log =
to see what exactly the configure script tried to do and what exactly faile=
d. It can probably be fixed with a few additions to CFLAGS or LDFLAGS.
# make
...
checking for XOpenDisplay in -lX11... no
configure: error: Could not find XOpenDisplay in -lX11.
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/wm/bsetroot
Digging a bit deeper: config.log
configure:2520: checking for XOpenDisplay in -lX11
configure:2539: cc -o conftest -O2 -I/usr/pkg/include -I/usr/include -I/us=
r/X11
R6/include -I/usr/pkg/include -I/usr/include -L/usr/pkg/lib -L/usr/lib -Wl,=
-R/us
r/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lintl -L/u=
sr/X1
1R6/lib conftest.c -lX11 -lintl -L/usr/X11R6/lib 1>&5
ld: cannot find -lX11
configure: failed program was:
#line 2528 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char XOpenDisplay();
int main() {
XOpenDisplay()
; return 0; }
And in the configure:
echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
echo "configure:2520: checking for XOpenDisplay in -lX11" >&5
ac_lib_var=3D`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" =3D set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS=3D"$LIBS"
LIBS=3D"-lX11 $LIBS"
cat > conftest.$ac_ext <<EOF
#line 2528 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char XOpenDisplay();
int main() {
XOpenDisplay()
; return 0; }
EOF
if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }=
&& t
est -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=3Dyes"
else
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=3Dno"
fi
rm -f conftest*
LIBS=3D"$ac_save_LIBS"
fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" =3D yes"; then
echo "$ac_t""yes" 1>&6
LIBS=3D"$LIBS -lX11"
else
echo "$ac_t""no" 1>&6
{ echo "configure: error: Could not find XOpenDisplay in -lX11." 1>&2; exit=
1; }
fi
The "ld: cannot find -lX11" seems to be ominous; but I'm too ignorant
to know what to do to fix this!
Thanks a lot for taking the time to help out! It is much appreciated.
Amadeus