Article View: gnu.chess
Article #4330Re: XBoard make error - help
From: Tim Mann
Date: Sun, 09 Jul 1995 00:00
Date: Sun, 09 Jul 1995 00:00
70 lines
3448 bytes
3448 bytes
In article <3tlf5n$fk4@news.scruz.net>, klemp@klemp.com (Dave Klemp) writes:
>Trying to compile xboard for
>Platform: SUN IPX, sunos4.1.3, X11R6,
>
>After configure, the make produces the following:
>
>gcc -o xboard \
> parser.o xboard.o backend.o moves.o childio.o \
> -L/usr/X11R6/lib -lXaw -static -lXmu -dynamic -lXt -lXext -lX11 -lnsl -lm
>ld: Undefined symbol
> _XtStrings
> _XtShellStrings
You appear to be getting version skew: there are (at least parts of)
more than one version of X installed on your system, and the configure
script is finding header files from one and libraries from another.
The following may work on SunOS 4.x:
configure --x-includes=/usr/openwin/include --x-libraries=/usr/openwin/lib
or maybe
configure --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
Either way, do "rm *.o" before you try another "make".
Also see topic [28] in the FAQ file, below.
--Tim
[28] When trying to build XBoard, I get error messages about undefined symbols.
The configure script for XBoard 3.2 looks for X libraries and header files in
some common places. Sometimes it fails: If yours are installed in a strange
place, it may not find them at all. If you have more than one version of X
installed on your system, it may find the "wrong" one, or occasionally it may
find libraries from one version and incompatible header files from another.
You can work around these problems by telling the configure script where the
files are. For example:
configure -x-includes=/strange/place/include -x-libraries=/strange/place/lib
The directory named in the argument to -x-includes must have a subdirectory
"X11" that contains the actual .h files.
Some linkers have bugs that cause bogus error messages when you try to link X
programs. The configure script includes a workaround for a bug of this kind
that exists in some SunOS 4.x.x installations. See the FAQ on comp.windows.x
for more information about problems of this kind.
If you have X11R6, the configure script for XBoard 3.2.pl2 and earlier may
not find all the libraries you need to link with. You may have to edit the
Makefile by hand, adding -lSM -lICE before the -lX11. Please note the
difference between lower-case L ("l") and upper-case "I" ("I") in these
strings. This bug should be fixed in a future XBoard release.
For example, change from:
gcc -o xboard \
parser.o xboard.o backend.o moves.o childio.o \
-L/vol/X11/lib -lXaw -lXmu -lXt -lXext -lX11 -lm
To:
gcc -o xboard \
parser.o xboard.o backend.o moves.o childio.o \
-L/vol/X11/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lm
If all else fails, check whether anyone else at your site has been able to
compile any X programs on your system. Your X installation might be buggy.
If so, the system administrator at your site might know how to fix or work
around the problem.
Technical Details
Message-ID:
<3tppen$pof@src-news.pa.dec.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3tlf5n$fk4@news.scruz.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,fccbf7c9f0eda6f1 X-Google-Attributes: gid10d71d,public From: mann@src.dec.com (Tim Mann) Subject: Re: XBoard make error - help Date: 1995/07/09 Message-ID: <3tppen$pof@src-news.pa.dec.com> X-Deja-AN: 105918276 distribution: world references: <3tlf5n$fk4@news.scruz.net> organization: Digital Equipment Corp., Systems Research Center reply-to: mann@pa.dec.com newsgroups: gnu.chess