Re: htdig: compiling htdig w/Solaris 7 and several C compilers


Dave Alden (alden@math.ohio-state.edu)
Wed, 6 Jan 1999 07:46:49 -0500


Hi,
  Actually, I had tried the most recent CVS snapshot because I wasn't
able to compile 3.1.0b4 -- I goofed when I sent the email and didn't
cut-and-paste from the right window. :-) Anyway, the problem I had
was in DocumentRef.cc:

% make
[...lots of stuff cut out...]
CC -c -DBIN_DIR=\"/opt/htdig/bin\" -DCOMMON_DIR=\"/opt/htdig/common\" -DCONFIG_DIR=\"/opt/htdig/conf\" -DDATABASE_DIR=\"/opt/htdig/db\" -DIMAGE_URL_PREFIX=\"/htdig\" -DPDF_PARSER=\"/opt/local/bin/acroread\" -DSORT_PROG=\"/usr/bin/sort\" -DDEFAULT_CONFIG_FILE=\"/opt/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../db/dist -I../rx/rx -I../include -g DocumentRef.cc
"DocumentRef.h", line 154: Warning: DocumentRef::Deserialize hides the virtual function Object::Deserialize(String&, int&).
"DocumentRef.cc", line 115: Error: Identifier expected instead of "}".
1 Error(s) and 1 Warning(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `DocumentRef.o'
Current working directory /home/src/htdig/htdig-3.1.0b4/htcommon
*** Error code 1
make: Fatal error: Command failed for target `all'
%

Looking in DocumentRef.cc, I had to remove the trailing comma from line
114 (I'll append the patch below). After I made that patch the compile
went fine with the SunPRO 5.0 compilers.

...dave

*** DocumentRef.cc_ORIG Tue Dec 22 20:53:12 1998
--- DocumentRef.cc Wed Jan 6 07:40:13 1999
***************
*** 111,117 ****
      DOC_STRING, // 16
      DOC_METADSC, // 17
      DOC_BACKLINKS, // 18
! DOC_SIG, // 19
  };
  
  
--- 111,117 ----
      DOC_STRING, // 16
      DOC_METADSC, // 17
      DOC_BACKLINKS, // 18
! DOC_SIG // 19
  };
  
  
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Thu Jan 07 1999 - 07:52:39 PST