Hello,
Here's an update relating to the error when attempting to compile
ht://Dig on Red Hat 7.2 Enterprise. The compiling error is resolved by
including the system ctype header file within the Retriever.cc file.
Compiling fails because the "isupper" call is not defined within the
application specific header files. The "isupper" function is defined
within the system specific ctype header file located under
/usr/include/ctype.h. Specific modiifications follow:
o Run "configure"
-- CXXFLAGS=-Wno-deprecated CPPFLAGS=-Wno-deprecated ./configure
--with-zlib=/usr/bin --disable-shared --prefix=/appl/htdig
--with-cgi-bin-dir=/appl/www/focus/cgi-bin
--with-image-dir=/appl/www/focus/common/images
--with-search-dir=/appl/www/focus
--with-image-url-prefix=/common/images
o Modify the Retriever.cc file to include the system ctype header
file:
-- cd ~/tmp/htdig/htdig-3.2.0b6-20041114/htdig
-- vi Retriever.cc
-- #include <ctype.h> /* Note: Last include entry, line 49 */
o Run "make"
o Run "make install"
I'm not certain if the "isupper" call issue is attributed to the
specific Linux system or potentially indicative of a more general change
that should be included in future ht://Dig releases. Has anyone
experienced this type of problem?
Thanks,
Jignesh Patel
Health Alliance Plan
248.443.1185: Office
614.323.8649: Cell
>>> "Jignesh Patel" <[EMAIL PROTECTED]> 5/25/2005 12:57:59 PM >>>
Good folks,
I'm seeing some uncommon errors when attempting to compile ht://Dig on
Red Hat 7.2 Enterprise. I'm using one of the most recent releases of
ht://Dig and have checked the appropriate system compilers/resources
as
well as the "configure" command syntax. Could you take a look at the
following abbreviated output and provide some direction? Any insight
is
most welcome.
[EMAIL PROTECTED] ~/tmp/htdig/htdig-3.2.0b6-20041114
(1221) cat /proc/version; uname -a; echo $SHELL; make -version| head
-1
Linux version 2.4.9-e.12smp ([EMAIL PROTECTED])
(gcc
version 2.96 20000731 (Red Hat Linux 7.2 2.96-116.7.2)) #1 SMP Tue Feb
11 02:24:10 EST 2003
Linux refocus 2.4.9-e.12smp #1 SMP Tue Feb 11 02:24:10 EST 2003 i686
unknown
/bin/bash
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
[EMAIL PROTECTED] ~/tmp/htdig/htdig-3.2.0b6-20041114
(1222) rpm -q binutils cpp gcc gcc-c++ gcc-g77 gcc-objc gettext glibc
glibc-common glibc-devel kernel-headers libstdc++ libstdc++-devel make
zlib-devel
binutils-2.11.90.0.19-4
cpp-2.96-116.7.2
gcc-2.96-116.7.2
gcc-c++-2.96-116.7.2
gcc-g77-2.96-116.7.2
gcc-objc-2.96-116.7.2
gettext-0.10.40-4
glibc-2.2.4-31.7
glibc-common-2.2.4-31.7
glibc-devel-2.2.4-31.7
kernel-headers-2.4.9-e.12
libstdc++-2.96-116.7.2
libstdc++-devel-2.96-116.7.2
make-3.79.1-8
zlib-devel-1.1.3-3
[EMAIL PROTECTED] ~/tmp/htdig/htdig-3.2.0b6-20041114
(1223) ls -lrt `which c++ cpp gcc g++ g77 make`
-rwxr-xr-x 2 root root 79276 Aug 28 2004 /usr/bin/gcc*
-rwxr-xr-x 1 root root 83052 Aug 28 2004 /usr/bin/g77*
-rwxr-xr-x 4 root root 80588 Aug 28 2004 /usr/bin/g++*
-rwxr-xr-x 1 root root 80812 Aug 28 2004 /usr/bin/cpp*
-rwxr-xr-x 4 root root 80588 Aug 28 2004 /usr/bin/c++*
-rwxr-xr-x 1 root root 120860 Jul 6 2001 /usr/bin/make*
[EMAIL PROTECTED] ~/tmp/htdig/htdig-3.2.0b6-20041114
(1224) ls -l ~/src/htdig/htdig-3.2.0b6-20041114.tar.gz
-rwxr-xr-x 1 iplanet techplan 3110498 May 13 12:55
/home/iplanet/src/htdig/htdig-3.2.0b6-20041114.tar.gz*
[EMAIL PROTECTED] /home/iplanet/tmp/htdig/htdig-3.2.0b6-20041114
(1087) # CXXFLAGS=-Wno-deprecated CPPFLAGS=-Wno-deprecated ./configure
--with-zlib=/usr/bin --disable-shared --prefix=/appl/htdig
--with-cgi-bin-dir=/appl/www/focus/cgi-bin
--with-image-dir=/appl/www/focus/common/images
--with-search-dir=/appl/www/focus
--with-image-url-prefix=/common/images
checking for a BSD-compatible install... /usr/bin/install -c
...
...
...
Now you must run 'make' followed by 'make install'
[EMAIL PROTECTED] /home/iplanet/tmp/htdig/htdig-3.2.0b6-20041114
(1088) # make
Making all in db
...
...
...
make[1]: Leaving directory
`/home/iplanet/tmp/htdig/htdig-3.2.0b6-20041114/htdb'
Making all in htdig
make[1]: Entering directory
`/home/iplanet/tmp/htdig/htdig-3.2.0b6-20041114/htdig'
g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DDEFAULT_CONFIG_FILE=\"/appl/htdig/conf/htdig.conf\" -I../include
-I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
-Wno-deprecated -I/usr/bin/include -Wno-deprecated -Wall -fno-rtti
-fno-exceptions -c -o Document.o `test -f 'Document.cc' || echo
'./'`Document.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DDEFAULT_CONFIG_FILE=\"/appl/htdig/conf/htdig.conf\" -I../include
-I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
-Wno-deprecated -I/usr/bin/include -Wno-deprecated -Wall -fno-rtti
-fno-exceptions -c -o HTML.o `test -f 'HTML.cc' || echo './'`HTML.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DDEFAULT_CONFIG_FILE=\"/appl/htdig/conf/htdig.conf\" -I../include
-I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
-Wno-deprecated -I/usr/bin/include -Wno-deprecated -Wall -fno-rtti
-fno-exceptions -c -o Parsable.o `test -f 'Parsable.cc' || echo
'./'`Parsable.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DDEFAULT_CONFIG_FILE=\"/appl/htdig/conf/htdig.conf\" -I../include
-I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
-Wno-deprecated -I/usr/bin/include -Wno-deprecated -Wall -fno-rtti
-fno-exceptions -c -o Plaintext.o `test -f 'Plaintext.cc' || echo
'./'`Plaintext.cc
g++ -DHAVE_CONFIG_H -I. -I. -I../include
-DDEFAULT_CONFIG_FILE=\"/appl/htdig/conf/htdig.conf\" -I../include
-I../htlib -I../htnet -I../htcommon -I../htword -I../db -I../db
-Wno-deprecated -I/usr/bin/include -Wno-deprecated -Wall -fno-rtti
-fno-exceptions -c -o Retriever.o `test -f 'Retriever.cc' || echo
'./'`Retriever.cc
Retriever.cc: In method `void Retriever::got_word (const char *, int,
int)':
Retriever.cc:1449: `isupper' undeclared (first use this function)
Retriever.cc:1449: (Each undeclared identifier is reported only once
for each function it appears in.)
make[1]: *** [Retriever.o] Error 1
make[1]: Leaving directory
`/home/iplanet/tmp/htdig/htdig-3.2.0b6-20041114/htdig'
make: *** [all-recursive] Error 1
For those that are interested, I'm more than happy to share the entire
output of the "configure" and "make" steps. Let me know and I'll
individually email the log file output.
Many thanks,
Jignesh Patel
Health Alliance Plan
248.443.1185: Office
614.323.8649: Cell
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general