Alexander Bergolth writes:
 > 
 > *) removed "-Wall" from Makefiles

 You did very well. How stupid of me to hard code it. Sorry.

 > *) removed code for dependency info generation:
 >    perl -pi -e 's/-Wp,-MD,[^\s]+//' */Makefile

 Reading more on the subject it seems that we should do the following:
 (Dependency chapter of automake) 
 automake --foreign --include-deps
 on a system with gcc will put the dependency information in the Makefile.in
 and remove the dependency generation rules. 
 It is needed for people who don't have a gcc compiler. This step is
 automatically done when packaging a distribution with make dist, but
 it does not help developpers like you. 

 If cannot do it yourself I can run automake --foreign --include-deps
and commit the generated Makefile.in.

 > *) If you want inline code (e.g. in htlib/htString.h), you have to put it
 >    directly into the declaration, otherwise xlC complains:
 > 
 >"/afs/wu-wien.ac.at/home/edvz/bergolth/projects/htdig/htdig-cvs/htdig-main/htdig3/htlib/htString.h",
 > line 225.20: 1540-241: (S) "String::length() const" was declared with

 g++ too permissive then. I'm trying to compile on FreeBSD-3.2 with gcc-2.95
who seems to be very picky, hopefully it will help track compiler 
compatibility issues.

 > *) DBTYPE is already an enum. changed "enum DBTYPE" to "DBTYPE" in various
 >    functions

 Ok, my fault again. 

 > *) had to remove the initializers from the DocumentDB::Read declaration
 >    in DocumentDB.h

 Ok, my fault again. When I changed from const char* to const String&
I was not careful enough. It did not harm because the initializers were
not used, but it would have dump core.

 > *) htcommon/defaults.cc: uff! multiline strings have to be quoted!!!
 >    perl -pe 'chop; if ($str) { /^"\s*}\s*,/ && ($str= 0); } \
 >        else { /,\s*"$/ && ($str= 1); }; \
 >      $_.= $str ? " \\\n" : "\n"' htcommon/defaults.cc
 >    (... and correct something by hand...)

 Ha, my fault again, I forgot that some compilers do not like multiline
strings. You basically added a \n\ at the end of each line, yes ?

 > OK - now it hangs at the linking stage.

 Well, a lot to examine. I'm sorry I don't have your compiler handy. I'll
study the messages and fix problems. Hopefully gcc-2.95 will help. 
Let me know if I should begin working on fixing all that or if you're
currently doing it.

     Cheers,

-- 
                Loic Dachary

                ECILA
                100 av. du Gal Leclerc
                93500 Pantin - France
                Tel: 33 1 56 96 09 80, Fax: 33 1 56 96 09 61
                e-mail: [EMAIL PROTECTED] URL: http://www.senga.org/


------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the SUBJECT of the message.

Reply via email to