[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
configuration problem with DDD 3.3 ?
From: |
John Bartelt |
Subject: |
configuration problem with DDD 3.3 ? |
Date: |
Mon, 12 Mar 2001 11:34:34 -0800 (PST) |
Hello. I am trying to build ddd verion 3.3 on a solaris 2.6 machine.
I have run into the following problem with configure script:
....
checking for Motif... libraries in default path, headers in default path
checking for Athena... libraries in default path, headers in default path
checking for Xpm... libraries /usr/local/lib/X11R5, headers
/usr/local/X11R5/include
checking for XOpenDisplay in -lX11... no
configure: error: The X11 library '-lX11' could not be found.
Please use the configure options '--x-includes=DIR'
and '--x-libraries=DIR' to specify the X location.
See the files 'config.log' and 'ddd/config.log'
for further diagnostics.
configure: error: ./configure failed for ddd
The ddd/config.log ends with this:
#include <X11/Intrinsic.h>
#include <X11/xpm.h>
int main() {
XtToolkitInitialize();
; return 0; }
configure:7836: checking for XOpenDisplay in -lX11
configure:7858: g++ -o conftest -g -O2 -isystem /usr/local/X11R5/include
-isystem /afs/slac/package/X11/R6.4/sun4x_56/include -L/usr/local/lib/X11R5
-R/usr/local/lib/X11R5 -L/afs/slac/package/X11/R6.4/sun4x_56/lib
-R/afs/slac/package/X11/R6.4/sun4x_56/lib conftest.C -lX11 -lSM -lICE -lsocket
-lnsl -lSM -lICE -lsocket -lnsl 1>&5
ld: fatal: file /usr/local/lib/X11R5/libX11.a: unknown type, unable to process
using elf(3E) libraries
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 7844 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* 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; }
The command I used in this case was:
$ ./configure --prefix=/afs/slac/package/gnu2/ddd/3.3
--exec-prefix=/afs/slac/package/gnu2/ddd/3.3/sun4x_56
--x-includes=/afs/slac/package/X11/R6.4/sun4x_56/include
--x-libraries=/afs/slac/package/X11/R6.4/sun4x_56/lib
Initially, I did not specify the X11 lib or include dir. I then tried
several different versions of X11. All came up with same error. Note that
that configure is using the dirs I specified, but they are later in the
list than the X11 dirs it found. I can find nothing wrong with the
the file it complains about:
$ file /usr/local/lib/X11R5/libX11.a
/usr/local/lib/X11R5/libX11.a: current ar archive, not a dynamic executable or
shared object
(I realize this is an old version, but as you see, attempts to override
this selection fail.)
Is this a bug in the configure script? Can you suggest a solution or
work-around?
Thanks, John Bartelt
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
John Bartelt address@hidden
Stanford Linear Accelerator Center 650-926-4591
MS 97, P.O. Box 4349
Stanford, CA 94309 office: SCS room 363
- configuration problem with DDD 3.3 ?,
John Bartelt <=