This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

FW: ddd/configure breaks (motif mistakenly flagged as missing)


I previously posted a problem regarding configuring DDD for building on
cygwin, for which I received that attached reply describing a fix.
Although I still don't have a completed build (make mistakenly thinks
that the Athena library is missing), I've been asked to post the
solution below to the list. Thanks

Chuck

-----Original Message-----
From: zoepfgen [mailto:zoepfgen@bdv.com] 
Sent: Monday, November 20, 2000 6:49 AM
To: Chuck.Irvine
Cc: zoepfgen
Subject: Re: ddd/configure breaks


Hi Chuck !

I've had the same problem, and here is my solution:

The mechanism in the configure-script is, that it trys to compile and
link
test-programs to find out, if X11-, Xt-, and Xm-Lib exists on your
system.

The Linker-call gets some libs in the wrong order. The Xt-Lib needs SM-
and
ICE-Lib but Xt is set behind SM and ICE.

Instead of the following Part of configure-script (original, in dir
'ddd-3.2.1\ddd')

...
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBGEN="-lgen"
else
  echo "$ac_t""no" 1>&6
fi
...

you should try this (insert the 'LIBGEN'-line in the 'else'-part):

...
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LIBGEN="-lgen"
else
  echo "$ac_t""no" 1>&6
  LIBGEN="-lSM -lICE"
fi
...

This adds the needed Libs at the end of the Linker-call.

I hope that eliminates your problem.

Greetings from Good-Old-Germany

Christoph


------------------------------------------------------------------------
----
---------------



----- Original Message -----
From: <Chuck.Irvine@mail.sprint.com>
To: <cygwin-xfree@sources.redhat.com>; <ddd@gnu.org>;
<ssiddiqi@inspirepharm.com>; <zoepfgen@bdv.com>
Sent: Saturday, November 18, 2000 12:18 AM
Subject: RE: ddd/configure breaks


> I appreciate your help, but I get exactly the same problem when I
> configure with the settings you recommend. Latest configure log is:
>
> > ./configure --with-motif-includes=/usr/local/include/
> --with-motif-libraries=/usr/local/lib
> --with-athena-includes=/usr/X11R6/include/
> --with-athena-libraries=/usr/X11R6/lib
> loading cache ./config.cache
> checking host system type... i686-pc-cygwin32
> checking target system type... i686-pc-cygwin32
> checking build system type... i686-pc-cygwin32
> checking for prefix by checking for ddd... no
> checking for product name... DDD 3.2.91 "Da da da"
> checking for expiration date... no
> checking for a BSD compatible install... (cached) /bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... missing
> checking for working autoconf... found
> checking for working automake... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking whether make sets ${MAKE}... (cached) yes
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for POSIXized ISC... no
> checking whether the C compiler (gcc) compiles and links a simple C
> program... (cached) yes
> checking for c++... (cached) c++
> checking whether the C++ compiler (c++  ) works... yes
> checking whether the C++ compiler (c++  ) is a cross-compiler... no
> checking whether we are using GNU C++... (cached) yes
> checking whether c++ accepts -g... (cached) yes
> checking whether the C++ compiler (c++) compiles a simple program...
> (cached) yes
> checking for tgetent in -lmytinfo... (cached) no
> checking for tgetent in -lncurses... (cached) yes
> checking for xstrerror in -liberty... (cached) yes
> checking for packages to be configured and built... readline vsllib
> themes ddd
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> configuring in readline
> running /bin/sh ./configure  --with-motif-includes=/usr/local/include/
> --with-motif-libraries=/usr/local/lib
> --with-athena-includes=/usr/X11R6/include/
> --with-athena-libraries=/usr/X11R6/lib --host=i686-pc-cygwin32
> --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
> checking host system type... i686-pc-cygwin32
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -g ) works... yes
> checking whether the C compiler (gcc -g ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking for minix/config.h... (cached) no
> checking whether gcc needs -traditional... (cached) no
> checking for a BSD compatible install... (cached) /bin/install -c
> checking for ar... (cached) ar
> checking for ranlib... (cached) ranlib
> checking return type of signal handlers... (cached) void
> checking whether stat file-mode macros are broken... (cached) no
> checking for dirent.h that defines DIR... (cached) yes
> checking for opendir in -ldir... (cached) no
> checking for strcasecmp... (cached) yes
> checking for select... (cached) yes
> checking for setenv... (cached) yes
> checking for putenv... (cached) yes
> checking for tcgetattr... (cached) yes
> checking for setlocale... (cached) yes
> checking for lstat... (cached) yes
> checking for working strcoll... (cached) yes
> checking for unistd.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking for varargs.h... (cached) yes
> checking for stdarg.h... (cached) yes
> checking for string.h... (cached) yes
> checking for sys/ptem.h... (cached) no
> checking for sys/pte.h... (cached) no
> checking for sys/stream.h... (cached) no
> checking for sys/select.h... (cached) yes
> checking for termcap.h... (cached) yes
> checking for termios.h... (cached) yes
> checking for termio.h... (cached) yes
> checking for sys/file.h... (cached) yes
> checking for locale.h... (cached) yes
> checking for type of signal functions... (cached) posix
> checking if signal handlers must be reinstalled when invoked...
(cached)
> no
> checking for presence of POSIX-style sigsetjmp/siglongjmp... (cached)
> present
> checking for lstat... (cached) yes
> checking whether programs are able to redeclare getpw functions...
> (cached) yes
> checking whether or not strcoll and strcmp differ... (cached) no
> checking whether signal handlers are of type void... (cached) yes
> checking for TIOCGWINSZ in sys/ioctl.h... (cached) no
> checking for TIOCSTAT in sys/ioctl.h... (cached) no
> checking for FIONREAD in sys/ioctl.h... (cached) no
> checking for speed_t in sys/types.h... (cached) no
> checking for struct winsize in sys/ioctl.h and termios.h... (cached)
> termios.h
> checking if struct dirent has a d_ino member... (cached) yes
> checking if struct dirent has a d_fileno member... (cached) no
> checking which library has the termcap functions... (cached) using
> libtermcap
> checking configuration for building shared libraries... supported
> updating cache .././config.cache
> creating ./config.status
> creating Makefile
> creating doc/Makefile
> creating examples/Makefile
> creating shlib/Makefile
> creating config.h
> config.h is unchanged
> configuring in vsllib
> running /bin/sh ./configure  --with-motif-includes=/usr/local/include/
> --with-motif-libraries=/usr/local/lib
> --with-athena-includes=/usr/X11R6/include/
> --with-athena-libraries=/usr/X11R6/lib --host=i686-pc-cygwin32
> --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
> checking for prefix by checking for ddd... no
> checking for product name... DDD 3.2.91 "Da da da"
> checking for expiration date... no
> checking for a BSD compatible install... (cached) /bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... missing
> checking for working autoconf... found
> checking for working automake... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for a BSD compatible install... /bin/install -c
> updating cache .././config.cache
> creating ./config.status
> creating Makefile
> configuring in themes
> running /bin/sh ./configure  --with-motif-includes=/usr/local/include/
> --with-motif-libraries=/usr/local/lib
> --with-athena-includes=/usr/X11R6/include/
> --with-athena-libraries=/usr/X11R6/lib --host=i686-pc-cygwin32
> --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
> checking for prefix by checking for ddd... no
> checking for product name... DDD 3.2.91 "Da da da"
> checking for expiration date... no
> checking for a BSD compatible install... (cached) /bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... missing
> checking for working autoconf... found
> checking for working automake... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for a BSD compatible install... /bin/install -c
> updating cache .././config.cache
> creating ./config.status
> creating Makefile
> configuring in ddd
> running /bin/sh ./configure  --with-motif-includes=/usr/local/include/
> --with-motif-libraries=/usr/local/lib
> --with-athena-includes=/usr/X11R6/include/
> --with-athena-libraries=/usr/X11R6/lib --host=i686-pc-cygwin32
> --cache-file=.././config.cache --srcdir=.
> loading cache .././config.cache
> checking for prefix by checking for ddd... no
> checking for product name... DDD 3.2.91 "Da da da"
> checking for expiration date... no
> checking for a BSD compatible install... (cached) /bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... missing
> checking for working autoconf... found
> checking for working automake... missing
> checking for working autoheader... found
> checking for working makeinfo... found
> checking host system type... i686-pc-cygwin32
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for POSIXized ISC... no
> checking for g77... (cached) g77
> checking whether ln -s works... (cached) yes
> checking for sh... (cached) /bin/sh
> checking for gtar... (cached) tar
> checking for gm4... (cached) m4
> checking for gsed... (cached) sed
> checking for gdiff... (cached) diff
> checking for dvips... no
> checking for dvi2ps... no
> checking for gzip... (cached) gzip
> checking for gzip... (cached) gzip
> checking for remsh... (cached) /bin/rsh
> checking for lp... no
> checking for lpr... no
> checking for gcore... no
> checking for gdb... (cached) gdb
> checking for xterm... (cached) xterm
> checking for xfontsel... (cached) xfontsel
> checking for a BSD compatible install... /bin/install -c
> checking for ranlib... (cached) ranlib
> checking for bison... (cached) bison -y
> checking for bison -y flags...
> checking how to run the C preprocessor... (cached) gcc -E
> checking for flex... (cached) flex
> checking for flex... (cached) flex
> checking for yywrap in -lfl... (cached) yes
> checking lex output file root... (cached) lex.yy
> checking whether yytext is a pointer... (cached) yes
> checking for flex flags... -8
> checking for gawk... (cached) gawk
> checking whether the C compiler (gcc) compiles and links a simple C
> program... (cached) yes
> checking for c++... (cached) c++
> checking whether the C++ compiler (c++  ) works... yes
> checking whether the C++ compiler (c++  ) is a cross-compiler... no
> checking whether we are using GNU C++... (cached) yes
> checking whether c++ accepts -g... (cached) yes
> checking whether the C++ compiler (c++) compiles a simple program...
> (cached) yes
> checking how to run the C preprocessor... gcc -E
> checking how to run the C++ preprocessor... (cached) c++ -E
> checking whether the C++ compiler (c++) accepts -Werror... (cached)
yes
> checking whether the C++ compiler (c++) accepts -Weffc++... (cached)
yes
> checking whether the C++ compiler (c++) accepts -Wuninitialized...
> (cached) no
> checking whether the C++ compiler (c++) accepts -mminimal-toc...
> (cached) no
> checking for C++ compiler (c++) warning options... -W -Wall
> checking for C++ compiler (c++) optimizing options... -DNDEBUG -O2
> checking for C++ compiler (c++) debugging options... -g
> checking for C++ compiler (c++) extra libraries...
> checking for C++ compiler (c++) static binding options... -Bstatic
> checking for C++ compiler (c++) dynamic binding options... -Bdynamic
> checking whether the C++ compiler (c++) accepts
-fexternal-templates...
> (cached) no
> checking whether the C++ compiler (c++) accepts -fpermissive...
(cached)
> yes
> checking whether the C++ compiler (c++) accepts
-felide-constructors...
> (cached) yes
> checking whether the C++ compiler (c++) accepts -fconserve-space...
> (cached) yes
> checking whether the C++ compiler (c++) accepts -trigraphs... (cached)
> yes
> checking whether the C++ compiler (c++) supports bool types...
(cached)
> yes
> checking whether the C++ compiler (c++) supports explicit
> constructors... (cached) yes
> checking whether the C++ compiler (c++) supports mutable members...
> (cached) yes
> checking whether the C++ compiler (c++) supports exception handling...
> (cached) yes
> checking whether the C++ compiler (c++) supports standard
exceptions...
> (cached) yes
> checking whether the C++ compiler (c++) supports namespaces...
(cached)
> yes
> checking whether the C++ compiler (c++) supports run-time type info...
> (cached) yes
> checking whether the C++ compiler (c++) supports long long types...
> (cached) yes
> checking whether the C++ compiler (c++) supports named return
values...
> (cached) yes
> checking whether the C++ compiler (c++) supports
__PRETTY_FUNCTION__...
> (cached) yes
> checking whether the C++ compiler (c++) supports overloaded new[]...
> (cached) yes
> checking whether the C++ compiler (c++) supports placement new...
> (cached) yes
> checking whether the C++ compiler (c++) supports ANSI lifetime of
> temporaries... (cached) yes
> checking whether the C++ compiler (c++) accepts -isystem... (cached)
yes
> checking for a traditional C preprocessor... (cached) gcc -E
> -traditional-cpp
> checking for Cygwin environment... (cached) yes
> checking for mingw32 environment... (cached) no
> checking for executable suffix... (cached) .exe
> checking for object suffix... (cached) o
> checking build system type... i686-pc-cygwin32
> checking for ld used by GCC... (cached) /bin/ld
> checking if the linker (/bin/ld) is GNU ld... (cached) yes
> checking for BSD-compatible nm... (cached) /bin/nm -B
> updating cache .././config.cache
> checking for object suffix... o
> checking for executable suffix... .exe
> checking for gcc option to produce PIC... none
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions ... yes
> checking if gcc static flag -static works... -static
> checking if the linker (/bin/ld) is GNU ld... yes
> checking whether the linker (/bin/ld) supports shared libraries... yes
> checking command to parse /bin/nm -B output... ok
> checking how to hardcode library paths into programs... immediate
> checking for /bin/ld option to reload object files... -r
> checking dynamic linker characteristics... Win32 ld.exe
> checking if libtool supports shared libraries... yes
> checking if package supports dlls... no
> checking whether to build shared libraries... no
> checking whether to build static libraries... yes
> checking for objdir... .libs
> creating libtool
> loading cache .././config.cache
> checking for connect... yes
> checking for gethostbyname... yes
> checking for regcmp... no
> checking for regcmp in -lgen... no
> checking for yyerror in -ly... no
> checking for sin in -lm... yes
> checking for open in -lc... yes
> checking for elf_version in -lelf... no
> checking for tgetent in -lmytinfo... (cached) no
> checking for tgetent in -lncurses... (cached) yes
> checking for xstrerror in -liberty... (cached) yes
> checking for streampos... yes
> checking whether the C++ compiler (c++) accepts -fpermissive...
(cached)
> yes
> checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
> checking for dnet_ntoa in -ldnet... no
> checking for dnet_ntoa in -ldnet_stub... no
> checking for gethostbyname... (cached) yes
> checking for connect... (cached) yes
> checking for remove... yes
> checking for shmat... no
> checking for shmat in -lipc... no
> checking for IceConnectionNumber in -lICE... yes
> checking for Motif... libraries /usr/local/lib, headers
> /usr/local/include/
> checking for Athena... libraries /usr/X11R6/lib, headers
> /usr/X11R6/include/
> checking for Xpm... libraries /usr/X11R6/lib, headers in default path
> checking whether compiling X headers requires -fpermissive... no
> checking for XOpenDisplay in -lX11... yes
> checking for _Xlcmbcurmax in -lXintl... no
> checking for shmap in -lipc... no
> checking for XtToolkitInitialize in -lXt... yes
> checking for XShapeQueryVersion in -lXext... yes
> checking for XmuCvtStringToOrientation in -lXmu... no
> checking for XawTextSetInsertionPoint in -lXaw... no
> configure: warning: The Athena widgets library '-lXaw' could not be
> found.
>                     If you have the athena library, please use the
>                     configure options '--with-athena-includes=DIR' and
>                     '--with-athena-libraries=DIR' to specify the Xaw
> location.
>                     If you do not have the athena library, use the
> configure
>                     option '--without-athena' to suppress this
message.
>                     See the files 'config.log' and 'ddd/config.log'
>                     for further diagnostics.
> checking for XpmCreatePixmapFromXpmImage in -lXpm... yes
> checking for X11/xpm.h... yes
> checking for xpm.h... yes
> checking for XpSelectInput in -lXp... yes
> checking for XmCreateOptionMenu in -lXm... no
> checking for xmUseVersion in -lXm... no
> checking for XmInstallImage in -lXm... no
> checking for Xm21InstallImage in -lXm... no
> configure: error: The Motif library '-lXm' could not be found.
>                   Please use the configure options
> '--with-motif-includes=DIR'
>                   and '--with-motif-libraries=DIR' to specify the Xm
> location.
>                   See the files 'config.log' and 'ddd/config.log'
>                   for further diagnostics.
> configure: error: ./configure failed for ddd
> /cygdrive/c/tmp/ddd/ddd-3.2.91
> >
>
> -----Original Message-----
> From: ssiddiqi [mailto:ssiddiqi@inspirepharm.com]
> Sent: Friday, November 17, 2000 4:18 PM
> To: cygwin-xfree; ddd
> Cc: ssiddiqi
> Subject: RE: ddd/configure breaks
>
>
> You are adding wrong paths, that is all change it too,
>
>  ./configure --with-motif-includes=/usr/local/include/
>  --with-motif-libraries=/usr/local/lib
>  --with-athena-includes=/usr/X11R6/include/
>  --with-athena-libraries=/usr/X11R6/lib
>
> > -----Original Message-----
> > From: Chuck.Irvine@mail.sprint.com
> > [mailto:Chuck.Irvine@mail.sprint.com]
> > Sent: Friday, November 17, 2000 5:02 PM
> > To: cygwin-xfree@sources.redhat.com; cygwin@sourceware.cygnus.com;
> > ddd@gnu.org
> > Subject: ddd/configure breaks
> >
> >
> > Still struggling mightily to successfully configure DDD under
cygwin.
> > Basically, configure fails saying that '-lXm' cannot be
> > found. However,
> > Motif is installed and configure notes this early in the configure
> > process. My platform is Cygwin, but I don't believe that this is a
> > Cygwin problem, per se, since I've seen basically the same problem
> > report from people trying to get DDD to configure under Linux. I am
> > attaching config.log, ddd/config.log, and the complete output of the
> > configure script. Please let me know if I can provide any additional
> > information useful for diagnosing this problem.
> >
> > Thanks in advance for your help.
> >
> > Chuck Irvine
> >
> >
> > Addional Info:
> >
> >
> > Versions:
> >
> > cygwin DLL        1.1.5
> > cygwin/XFree86    4.0
> > LessTif:          0.91.21
> > DDD:              3.2.91
> >
> > My configure command line is:
> >
> > ./configure --with-motif-includes=/usr/local/include/Xm
> > --with-motif-libraries=/usr/local/lib
> > --with-athena-includes=/usr/X11R6/include/X11/Xaw
> > --with-athena-libraries=/usr/X11R6/lib
> >
> >
> > During the configure, the two things complained about are:
> >
> > configure: warning: The Athena widgets library '-lXaw' could not be
> > found.
> >                     If you have the athena library, please use the
> >                     configure options
> > '--with-athena-includes=DIR' and
> >                     '--with-athena-libraries=DIR' to specify the Xaw
> > location.
> >                     If you do not have the athena library, use the
> > configure
> >                     option '--without-athena' to suppress
> > this message.
> >                     See the files 'config.log' and 'ddd/config.log'
> >                     for further diagnostics.
> >
> > configure: error: The Motif library '-lXm' could not be found.
> >                   Please use the configure options
> > '--with-motif-includes=DIR'
> >                   and '--with-motif-libraries=DIR' to specify the Xm
> > location.
> >                   See the files 'config.log' and 'ddd/config.log'
> >                   for further diagnostics.
> >
> >
>
>
> _______________________________________________
> Ddd mailing list
> Ddd@gnu.org
> http://mail.gnu.org/mailman/listinfo/ddd
>
>




Still struggling mightily to successfully configure DDD under cygwin.
Basically, configure fails saying that '-lXm' cannot be found. However,
Motif is installed and configure notes this early in the configure
process. My platform is Cygwin, but I don't believe that this is a
Cygwin problem, per se, since I've seen basically the same problem
report from people trying to get DDD to configure under Linux. I am
attaching config.log, ddd/config.log, and the complete output of the
configure script. Please let me know if I can provide any additional
information useful for diagnosing this problem. 

Thanks in advance for your help. 

Chuck Irvine


Addional Info:


Versions:

cygwin DLL        1.1.5
cygwin/XFree86    4.0
LessTif:          0.91.21
DDD:              3.2.91

My configure command line is:

./configure --with-motif-includes=/usr/local/include/Xm
--with-motif-libraries=/usr/local/lib
--with-athena-includes=/usr/X11R6/include/X11/Xaw
--with-athena-libraries=/usr/X11R6/lib


During the configure, the two things complained about are:

configure: warning: The Athena widgets library '-lXaw' could not be
found.
                    If you have the athena library, please use the
                    configure options '--with-athena-includes=DIR' and 
                    '--with-athena-libraries=DIR' to specify the Xaw
location.
                    If you do not have the athena library, use the
configure
                    option '--without-athena' to suppress this message.
                    See the files 'config.log' and 'ddd/config.log'
                    for further diagnostics.

configure: error: The Motif library '-lXm' could not be found.
                  Please use the configure options
'--with-motif-includes=DIR'
                  and '--with-motif-libraries=DIR' to specify the Xm
location.
                  See the files 'config.log' and 'ddd/config.log'
                  for further diagnostics.

config.log

config.log

configure.log




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]