From: Paul S. <log...@ho...> - 2002-08-29 07:32:06
|
Thanks for the tip. I tried setting CXXFLAGS as you suggested, but I believe there was no change in the results (see the output from ./configure, next, and the config.log file). Do you think the CXXFLAGS actually took effect during the check for fstream.h, iostream.h and ostream.h? I can see in the log file that -Wno-deprecated does appear in some places, but not near the fstream.h et al action. Is there a way for me to hack configure so it doesn't halt when it receives the backwards_warning? Or, perhaps I could copy all the stuff in backwards/fstream.h etc into some folder _I_ control, and remove all references to the backwards_warning.h? For example, backwards/fstream.h contains this line: #include backward_warning.h which I presume is causing all the trouble. I'd like to just empty out backward_warning.h if I could (smile). Finally, is getopt.h important? I always get a ...no on that. Much appreciation. Here is the output of configure after setting CXXFLAGS: loading cache ./config.cache checking for a BSD compatible install... ./install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found configuring ht://Dig version 3.1.6 checking for gcc... 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... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ -Wno-deprecated ) works... yes checking whether the C++ compiler (c++ -Wno-deprecated ) is a cross-compiler... yes checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking for ranlib... ranlib checking for ar... /usr/local/bin/ar checking for sh... /bin/sh checking for sed... /usr/bin/sed checking for sort... /usr/bin/sort checking for find... /usr/bin/find checking for gunzip... /usr/local/bin/gunzip checking for tar... tar checking for acroread... /usr/local/bin/acroread checking for sendmail... /usr/lib/sendmail checking how to run the C preprocessor... gcc -E checking for AIX... no checking for socket in -lsocket... yes checking for t_accept in -lnsl... yes checking for deflate in -lz... yes checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking how to run the C++ preprocessor... c++ -E checking for fcntl.h... yes checking for limits.h... yes checking for malloc.h... yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for sys/time.h... yes checking for unistd.h... yes checking for getopt.h... no checking for strings.h... yes checking for zlib.h... yes checking for alloca.h... yes checking for sys/select.h... yes checking for wait.h... yes checking for sys/wait.h... yes checking for malloc.h... (cached) yes checking for ostream.h... no checking for iostream.h... no checking for fstream.h... no and the tail of config.log: configure:2142: checking for fstream.h configure:2152: c++ -E conftest.C >/dev/null 2>conftest.out In file included from /usr/local/include/g++-v3/backward/fstream.h:31, from configure:2148: /usr/local/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. configure: failed program was: #line 2147 "configure" #include "confdefs.h" #include <fstream.h> >From: Jim Cole <gre...@yg...> >To: Paul Smith <log...@ho...> >CC: htd...@li... >Subject: Re: [htdig] Solaris 5.9 htdig 3.1.6 installation configure error >Date: Thu, 29 Aug 2002 00:22:48 -0600 (MDT) > >Paul Smith's bits of Wed, 28 Aug 2002 translated to: > > >checking for fstream.h... no > >configure: error: To compile ht://Dig, you will need a C++ library. Try > >installing libstdc++. > > > >The tail of the config.log file: > >(snip) > >configure:2104: checking for ostream.h > >configure:2114: c++ -E conftest.C >/dev/null 2>conftest.out > >In file included from /usr/local/include/g++-v3/backward/ostream.h:31, > > from configure:2110: > >/usr/local/include/g++-v3/backward/backward_warning.h:32:2: warning: > >#warning This file includes at least one deprecated or antiquated header. > >GCC 3 (you probably used GCC 2 last time) generates deprecated >header warnings for things like ostream.h vs. ostream, which >confuses some of the configure tests. The result is that >configure doesn't believe a C++ library is present. > >You might want to try something like > >CXXFLAGS="-Wno-deprecated" ./configure > >and see if that clears up any of the problems. > >You might also want to check to see if there is a GCC 2 >installation available on the server. > > >Jim > _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |