On Friday, July 4, 2003, at 11:13 PM, Tony at Bluehaze wrote:

HtRegexReplace.cc:24: default argument given for parameter 3 of `
   HtRegexReplace::HtRegexReplace(const char*, const char*, int = 0)'
HtRegexReplace.h:31: after previous specification in `
   HtRegexReplace::HtRegexReplace(const char*, const char*, int = 0)'
make[1]: *** [HtRegexReplace.lo] Error 1
make[1]: Leaving directory `/usr/local/src/htdig-3.2.0b3/htlib'
make: *** [all-recursive] Error 1
  ------------------

Hmmm ... okay. So I did some more searching (htdig FAQ, list, google) but
this time got no clues. It looked a bit as though ongoing attempts by the
gnu guys to tidy up and rationalise the c and c++ libs may have been causing

You are correct. As GCC evolves, they are continuing to bring the C++ compiler into closer compliance with the standard. One of the things the standard specifies is that a value for a default argument is not to be provided in both the method declaration and definition. Removing the '= 0' from line 24 of HtRegexReplace.cc should get you past the above error.


../htcommon/.libs/libcommon.so: undefined reference to `HtConfiguration::ParseSt
ring(char const*) const'
../htnet/.libs/libhtnet.so: undefined reference to `HtDateTime::operator<(HtDate
Time const&) const'
collect2: ld returned 1 exit status
make[1]: *** [htfuzzy] Error 1
make[1]: Leaving directory `/usr/local/src/htdig-3.2.0b3/htfuzzy'
make: *** [all-recursive] Error 1
------------------

I believe these errors are due to the fact that the methods were originally defined inline in the .cc file rather than the header file, which is typically a bad idea. It was as much luck as anything that they didn't cause a problem with other compile systems. They have been moved to the corresponding header files since 3.2.0b3, which you could also do if for some reason you wish to continue with that version.


At this point, I'd run out of ideas (I'm reasonable with C but hopeless with
c++) so I went back to perservering with the binary that'd come as part of RH
9 (3.2.04b).

If you don't want to use Red Hat's binary, you can try building your own 3.2.0b4. The snapshots are available at http://www.htdig.org/files/snapshots/ (there is not a 3.2.0b4 release). I believe at least a couple people have mentioned successful builds with Red Hat 9; personally I can only vouch for Red Hat 8 at this point. There is also a 3.2.0b5 release planned for sometime in the not too distant future.


Jim



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to