bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The X11 library '-lX11' could not be found


From: John Urness
Subject: The X11 library '-lX11' could not be found
Date: Tue, 23 Sep 2003 13:15:25 -0700

Hi,
In trying to compile ddd-3.3.7, I get the following error:
 
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.

Here are the ./configure switches:

./configure --prefix=/usr/local/ddd-3.3.7 --with-x
--x-libraries=/usr/X11/lib --x-includes=/usr/X11/includes


I originally tried it without any configure switches except for --prefix,
but this did not work using /usr/openwin, so I installed X11R6.4.  The above
X11 is linked to X11R6.4.  Either way the results are the same.


Here is the path environment:

/usr/local/adabas/bin:/usr/local/adabas/pgm:/nfs/unix/apps/share/frame5/bin:
.:/usr/local/gcc/bin:/usr/openwin/bin:/usr/lib/nis:/usr/bin:/usr/sbin:/opt/f
lexlm/lmgr/sun4/sunOS5:/opt/SUNWspro/bin:/opt/SUNWppro/bin:/usr/sadm/bin:/us
r/ucb:/usr/local/bin:/usr/ccs/bin:/usr/local/xemacs/bin/sparc-sun-solaris2.4
:/usr/local/xemacs/lib/xemacs-19.11/sparc-sun-solaris2.4:/usr/local/bin:.


Here is the uname -a:

SunOS unixserv0 5.8 Generic_108528-21 sun4u sparc SUNW,Ultra-60


Here is the output from the compiler:

checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking for product name... DDD 3.3.7 "Dodgy"
checking for expiration date... no
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets ${MAKE}... yes
checking whether make sets ${MAKE}... (cached) yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... gcc3
checking for strerror in -lcposix... no
checking for g77... g77
checking whether ln -s works... yes
checking for sh... /usr/bin/sh
checking for gtar... gtar
checking for gm4... no
checking for m4... m4
checking for gsed... gsed
checking for gdiff... gdiff
checking for dvips... dvips
checking for gzip... gzip
checking for gzip... gzip
checking for remsh... /usr/bin/remsh
checking for lp... lp
checking for gcore... gcore
checking for compface... no
checking for xbm2xface.pl... no
checking for xbm2xface... no
checking for gdb... gdb
checking for xterm... xterm
checking for xfontsel... xfontsel
checking for a BSD-compatible install... ./install-sh -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for bison -y flags... 
checking bison -y version... 
syntax: gsed fromstring tostring file1 [file 2 ...] (too old)
./configure: YACC: command not found
configure: WARNING: If you modify a .Y file or build from CVS,
configure: WARNING: you will need Bison 1.28 or later.
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for flex flags... -8
checking for gawk... (cached) nawk
checking whether the C compiler (gcc) compiles and links a simple C
program... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether the C++ compiler (g++) compiles a simple program... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... g++ -E
checking whether the C++ compiler (g++) accepts -Weffc++... yes
checking whether the C++ compiler (g++) accepts -Wuninitialized... yes
checking whether the C++ compiler (g++) accepts -mminimal-toc... no
checking for C++ compiler (g++) warning options... -W -Wall
checking for C++ compiler (g++) optimizing options... -DNDEBUG -O2
checking for C++ compiler (g++) debugging options... -g
checking for C++ compiler (g++) extra libraries... 
checking for C++ compiler (g++) static binding options... -Bstatic
checking for C++ compiler (g++) dynamic binding options... -Bdynamic
checking whether the C++ compiler (g++) accepts -fexternal-templates... no
checking whether the C++ compiler (g++) accepts -fpermissive... yes
checking whether the C++ compiler (g++) accepts -felide-constructors... yes
checking whether the C++ compiler (g++) accepts -fconserve-space... yes
checking whether the C++ compiler (g++) accepts -trigraphs... yes
checking whether the C++ compiler (g++) supports bool types... yes
checking whether the C++ compiler (g++) supports explicit constructors...
yes
checking whether the C++ compiler (g++) supports mutable members... yes
checking whether the C++ compiler (g++) supports exception handling... yes
checking whether the C++ compiler (g++) supports standard exceptions... yes
checking whether the C++ compiler (g++) supports namespaces... yes
checking whether the C++ compiler (g++) supports run-time type info... yes
checking whether the C++ compiler (g++) supports long long types... yes
checking whether the C++ compiler (g++) supports named return values... no
checking whether the C++ compiler (g++) supports __PRETTY_FUNCTION__... yes
checking whether the C++ compiler (g++) supports overloaded new... yes
checking whether the C++ compiler (g++) supports placement new... yes
checking whether the C++ compiler (g++) supports ANSI lifetime of
temporaries... no
checking whether the C++ compiler (g++) accepts -isystem... yes
checking whether the C++ compiler (g++) supports new style casts... yes
checking for a traditional C preprocessor... gcc -E -traditional-cpp
checking for ld used by GCC... /usr/ccs/bin/ld
checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
checking for /usr/ccs/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/ccs/bin/nm -p
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/ccs/bin/nm -p output... ok
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... no
checking if we can lock with hard links... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
checking for connect... no
checking for gethostbyname... no
checking for regcmp... yes
checking for connect in -lsocket... yes
checking for gethostbyname in -lnsl... yes
checking for yyerror in -ly... yes
checking for sin in -lm... yes
checking for open in -lc... yes
checking for elf_version in -lelf... yes
checking for tgetent in -lmytinfo... no
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... yes
checking for readline in -lreadline... yes
checking for xstrerror in -liberty... yes
checking for streampos... no
checking for std::streampos... yes
checking whether the C++ compiler (g++) accepts -fpermissive... (cached) yes
checking for X... libraries /usr/X11/lib, headers /usr/X11/includes
checking whether -R must be followed by a space... no
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for connect... (cached) no
checking for connect in -lsocket... (cached) yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for Motif... libraries /usr/lib, headers in default path
checking for Athena... libraries /usr/X11/lib, headers in default path
checking for Xpm... libraries /usr/local/lib, headers /usr/local/include
checking whether compiling X headers requires -fpermissive... no
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.


Here is a partial output from the config.log from where XOpenDisplay first
shows up:

 configure:13890: g++ -o conftest -g -O2 -fpermissive   conftest.cc
-L/usr/X11/lib -R/usr/X11/lib -lX11 >&5
  1102  Undefined                       first referenced
  1103   symbol                             in file
  1104  socket                              /usr/X11/lib/libX11.so
  1105  getpeername                         /usr/X11/lib/libX11.so
  1106  xdrmem_create                       /usr/X11/lib/libX11.so
  1107  gethostbyname_r                     /usr/X11/lib/libX11.so
  1108  setsockopt                          /usr/X11/lib/libX11.so
  1109  authdes_create                      /usr/X11/lib/libX11.so
  1110  inet_addr                           /usr/X11/lib/libX11.so
  1111  shutdown                            /usr/X11/lib/libX11.so
  1112  getsockname                         /usr/X11/lib/libX11.so
  1113  getservbyname_r                     /usr/X11/lib/libX11.so
  1114  connect                             /usr/X11/lib/libX11.so
  1115  ld: fatal: Symbol referencing errors. No output written to conftest
  1116  collect2: ld returned 1 exit status
  1117  configure:13893: $? = 1
  1118  configure: failed program was:
  1119  #line 13864 "configure"
  1120  #include "confdefs.h"
  1121
  1122  /* Override any gcc2 internal prototype to avoid an error.  */
  1123  #ifdef __cplusplus
  1124  extern "C"
  1125  #endif
  1126  /* We use char because int might match the return type of a gcc2
  1127     builtin and then its argument prototype would still apply.  */
  1128  char XOpenDisplay ();
  1129  #ifdef F77_DUMMY_MAIN
  1130  #  ifdef __cplusplus
  1131       extern "C"
  1132  #  endif
  1133     int F77_DUMMY_MAIN() { return 1; }
  1134  #endif
  1135  int
  1136  main ()
  1137  {
  1138  XOpenDisplay ();
  1139    ;
  1140    return 0;

What am I missing here?  It is unclear to me from other similar posts what
the resolution would be. 

 
Thanks in advance,

John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]