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


Dave Alden (alden@math.ohio-state.edu)
Tue, 5 Jan 1999 14:31:49 -0500


Hi,
  I'm trying to compile htdig on a Sun Ultra 10/270 running Solaris 7 using:

% set path = (c++ path)
% c++ --version
egcs-2.92.33
% make
[...lots of stuff cut out...]
c++ -c -DDEFAULT_CONFIG_FILE=\"/opt/htdig/conf/htdig.conf\" -I../htlib -I../htcommon -I../db/dist -I../rx/rx -I../include -g -O2 StringList.cc
StringList.cc: In method `class String StringList::Join(char)':
StringList.cc:302: initialization of non-const reference type `class String &'
StringList.cc:302: from rvalue of type `String'
htString.h:114: in passing argument 1 of `String::append(String &)'
*** Error code 1
make: Fatal error: Command failed for target `StringList.o'
Current working directory /home/src/htdig/htdig-3.1.0b3-010399/htlib
*** Error code 1
make: Fatal error: Command failed for target `all'
%

then i tried sun's workshop compiler 5.0 (beta):

% set path = (beta sun workshop compilers 5.0)
% CC -v
CC: WorkShop Compilers 5.0 98/12/09 C++ 5.0 Dev
% make
[...lots of stuff cut out...]
CC -c -ddefault_config_file=\"/opt/htdig/conf/htdig.conf\" -i../htlib -i../htcommon -i../db/dist -i../rx/rx -i../include -g stringlist.cc
"stringlist.cc", line 281: warning (anachronism): formal argument 4 of type extern "c" int(*)(const void*,const void*) in call to qsort(void*, unsigned, unsigned, extern "c" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).
"stringlist.cc", line 302: error: formal argument s of type string& in call to string::append(string&) requires an lvalue.
1 error(s) and 1 warning(s) detected.
*** error code 1
%

any ideas?

...thnx,
...dave alden
----------------------------------------------------------------------
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 Tue Jan 05 1999 - 12:42:15 PST