Re: GerH source distro at hebbut.net: HOW TO compile/compare/merge for Bill et al

"Steve" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
-------- Original-Nachricht --------
> Datum: Thu, 27 Mar 2008 10:35:46 +0100
> Von: "Ger Hobbelt" <[email protected]>
> An: [email protected]
> Betreff: Re: [Crm114-general] GerH source distro at hebbut.net: HOW TO	compile/compare/merge for Bill et al

[...]

Okay. Here some other stuff I have with GerH sources from hebbut.net.

When trying to use GNU regex I get the following error:
In file included from crm_compiler.c:13:
crm114_sysincludes.h:283: error: field 'preg' has incomplete type
In file included from crm_compiler.c:22:
crm114.h:693: error: expected ')' before '*' token
crm114.h:695: error: expected ')' before '*' token
crm114.h:699: error: expected declaration specifiers or '...' before 'regex_t'
crm114.h:702: error: expected ')' before '*' token
make[2]: *** [crm_compiler.o] Error 1


When trying to use POSIX regex I get the following error:
In file included from crm_compiler.c:13:
crm114_sysincludes.h:256: error: expected specifier-qualifier-list before 'regex_t'
In file included from crm_compiler.c:22:
crm114.h:693: error: expected ')' before '*' token
crm114.h:695: error: expected ')' before '*' token
crm114.h:699: error: expected declaration specifiers or '...' before 'regex_t'
crm114.h:702: error: expected ')' before '*' token
make[2]: *** [crm_compiler.o] Error 1


When trying to use PCRE regex I get the following error:
In file included from crm_compiler.c:22:
crm114.h:693: error: expected ')' before '*' token
crm114.h:695: error: expected ')' before '*' token
crm114.h:699: error: expected declaration specifiers or '...' before 'regex_t'
crm114.h:702: error: expected ')' before '*' token
make[2]: *** [crm_compiler.o] Error 1


Compiling with verbose output and warnings I get the following issues:
[....]
crm_errorhandlers.c: In function 'generate_err_reason_msg':
crm_errorhandlers.c:196: warning: comparison between signed and unsigned
crm_errorhandlers.c:312: warning: comparison between signed and unsigned
crm_errorhandlers.c:328: warning: comparison between signed and unsigned
crm_errorhandlers.c:351: warning: comparison between signed and unsigned
crm_errorhandlers.c: In function 'crm_trigger_fault':
crm_errorhandlers.c:863: warning: unused variable 'j'
[....]


[....]
crm_var_hash_table.c: In function 'crm_vht_init':
crm_var_hash_table.c:230: warning: comparison between signed and unsigned
crm_var_hash_table.c:227: warning: unused variable 'value'
crm_var_hash_table.c: In function 'crm_set_temp_nvar':
crm_var_hash_table.c:511: warning: comparison between signed and unsigned
crm_var_hash_table.c: In function 'crm_set_windowed_nvar':
crm_var_hash_table.c:617: warning: unused variable 'i'
crm_var_hash_table.c: In function 'crm_destructive_alter_nvariable':
crm_var_hash_table.c:1155: warning: unused variable 'i'
crm_var_hash_table.c: In function 'crm_vht_lookup':
crm_var_hash_table.c:1330: warning: unused variable 'j'
crm_var_hash_table.c:1402: warning: unused variable 'ic'
crm_var_hash_table.c:1425: warning: unused variable 'ic'
crm_var_hash_table.c:1452: warning: unused variable 'ic'
crm_var_hash_table.c:1476: warning: comparison between signed and unsigned
crm_var_hash_table.c:1487: warning: unused variable 'ic'
crm_var_hash_table.c:1319: warning: unused variable 'k'
crm_var_hash_table.c: In function 'crm_updatecaptures':
crm_var_hash_table.c:1675: warning: unused variable 'i'
[....]


[....]
crm_vector_tokenize.c: In function 'crm_vector_string_kernel1':
crm_vector_tokenize.c:826: warning: comparison between signed and unsigned
crm_vector_tokenize.c: In function 'crm_vector_string_kernel2':
crm_vector_tokenize.c:859: warning: comparison between signed and unsigned
[....]


[....]
crm_expr_match.c: In function 'crm_expr_match':
crm_expr_match.c:31: warning: unused variable 'k'
[....]


[....]
crm_markovian.c: In function 'crm_expr_markov_learn':
crm_markovian.c:789: warning: comparison between signed and unsigned
crm_markovian.c:801: warning: comparison between signed and unsigned
crm_markovian.c:836: warning: comparison between signed and unsigned
crm_markovian.c: In function 'crm_expr_markov_classify':
crm_markovian.c:2270: warning: comparison between signed and unsigned
crm_markovian.c:2304: warning: comparison between signed and unsigned
crm_markovian.c:2307: warning: comparison between signed and unsigned
crm_markovian.c:2336: warning: comparison between signed and unsigned
[....]


[....]
crm_osb_bayes.c: In function 'crm_expr_osb_bayes_learn':
crm_osb_bayes.c:650: warning: comparison between signed and unsigned
crm_osb_bayes.c:662: warning: comparison between signed and unsigned
crm_osb_bayes.c:715: warning: comparison between signed and unsigned
crm_osb_bayes.c: In function 'crm_expr_osb_bayes_classify':
crm_osb_bayes.c:1523: warning: comparison between signed and unsigned
crm_osb_bayes.c:1871: warning: comparison between signed and unsigned
crm_osb_bayes.c:1897: warning: comparison between signed and unsigned
crm_osb_bayes.c:1900: warning: comparison between signed and unsigned
crm_osb_bayes.c:1928: warning: comparison between signed and unsigned
crm_osb_bayes.c:1956: warning: comparison between signed and unsigned
[....]


[....]
crm_osb_hyperspace.c: In function 'crm_expr_osb_hyperspace_classify':
crm_osb_hyperspace.c:1864: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1867: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1924: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1927: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1936: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1944: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1945: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:2289: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:2331: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:2334: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:2369: warning: comparison between signed and unsigned
crm_osb_hyperspace.c:1137: warning: unused variable 'textmaxoffset'
crm_osb_hyperspace.c:1136: warning: unused variable 'textoffset'
[....]


[....]
crm_correlate.c: In function 'crm_expr_correlate_learn':
crm_correlate.c:306: warning: comparison between signed and unsigned
crm_correlate.c: In function 'crm_expr_correlate_classify':
crm_correlate.c:859: warning: comparison between signed and unsigned
crm_correlate.c:888: warning: comparison between signed and unsigned
crm_correlate.c:891: warning: comparison between signed and unsigned
crm_correlate.c:921: warning: comparison between signed and unsigned
[....]


[....]
crm_osb_winnow.c: In function 'crm_expr_osb_winnow_learn':
crm_osb_winnow.c:488: warning: comparison between signed and unsigned
crm_osb_winnow.c:498: warning: comparison between signed and unsigned
crm_osb_winnow.c:505: warning: comparison between signed and unsigned
crm_osb_winnow.c:548: warning: comparison between signed and unsigned
crm_osb_winnow.c:561: warning: comparison between signed and unsigned
crm_osb_winnow.c:579: warning: comparison between signed and unsigned
crm_osb_winnow.c: In function 'crm_expr_osb_winnow_classify':
crm_osb_winnow.c:1210: warning: comparison between signed and unsigned
crm_osb_winnow.c:1220: warning: comparison between signed and unsigned
crm_osb_winnow.c:1391: warning: comparison between signed and unsigned
crm_osb_winnow.c:1421: warning: comparison between signed and unsigned
crm_osb_winnow.c:1424: warning: comparison between signed and unsigned
crm_osb_winnow.c:1451: warning: comparison between signed and unsigned
[....]


[....]
crm_winnow_maintenance.c: In function 'crm_winnow_microgroom':
crm_winnow_maintenance.c:179: warning: comparison between signed and unsigned
crm_winnow_maintenance.c:189: warning: comparison between signed and unsigned
crm_winnow_maintenance.c: In function 'crm_pack_winnow_seg':
crm_winnow_maintenance.c:395: warning: comparison between signed and unsigned
crm_winnow_maintenance.c:424: warning: comparison between signed and unsigned
crm_winnow_maintenance.c:451: warning: comparison between signed and unsigned
[....]


[....]
crm_osbf_bayes.c: In function 'crm_expr_osbf_bayes_learn':
crm_osbf_bayes.c:581: warning: comparison between signed and unsigned
crm_osbf_bayes.c:591: warning: comparison between signed and unsigned
crm_osbf_bayes.c: In function 'crm_expr_osbf_bayes_classify':
crm_osbf_bayes.c:1233: warning: comparison between signed and unsigned
crm_osbf_bayes.c:1280: warning: comparison between signed and unsigned
crm_osbf_bayes.c:1618: warning: comparison between signed and unsigned
crm_osbf_bayes.c:1640: warning: comparison between signed and unsigned
crm_osbf_bayes.c:1643: warning: comparison between signed and unsigned
crm_osbf_bayes.c:1666: warning: comparison between signed and unsigned
[....]


[....]
crm_osbf_maintenance.c: In function 'crm_osbf_microgroom':
crm_osbf_maintenance.c:110: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:112: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:132: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:140: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:246: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:259: warning: comparison between signed and unsigned
crm_osbf_maintenance.c: In function 'crm_osbf_update_bucket':
crm_osbf_maintenance.c:503: warning: comparison between signed and unsigned
crm_osbf_maintenance.c:516: warning: comparison between signed and unsigned
crm_osbf_maintenance.c: In function 'crm_osbf_insert_bucket':
crm_osbf_maintenance.c:551: warning: comparison between signed and unsigned
crm_osbf_maintenance.c: In function 'crm_osbf_create_cssfile':
crm_osbf_maintenance.c:621: warning: comparison between signed and unsigned
[....]


[....]
crm_bit_entropy.c: In function 'crm_expr_bit_entropy_classify':
crm_bit_entropy.c:3170: warning: comparison between signed and unsigned
crm_bit_entropy.c:3191: warning: comparison between signed and unsigned
crm_bit_entropy.c:3194: warning: comparison between signed and unsigned
crm_bit_entropy.c:3232: warning: comparison between signed and unsigned
[....]


[....]
crm_neural_net.c: In function 'map_file':
crm_neural_net.c:489: warning: unused variable 'i'
[....]


[....]
crm_expr_clump.c: In function 'thresholding_average_cluster':
crm_expr_clump.c:846: warning: comparison between signed and unsigned
crm_expr_clump.c: In function 'crm_expr_clump':
crm_expr_clump.c:1357: warning: comparison between signed and unsigned
[....]


[....]
crm_exec_engine.c: In function 'crm_invoke':
crm_exec_engine.c:333: warning: unused variable 'i'
[....]


[....]
crm_expr_sks.c: In function 'crm_expr_sks_learn':
crm_expr_sks.c:1394: warning: unused variable 'cmp'
crm_expr_sks.c: In function 'crm_expr_sks_classify':
crm_expr_sks.c:2595: warning: comparison between signed and unsigned
crm_expr_sks.c:2613: warning: comparison between signed and unsigned
crm_expr_sks.c:2617: warning: comparison between signed and unsigned
crm_expr_sks.c:2632: warning: comparison between signed and unsigned
[....]


[....]
crm_expr_svm.c: In function 'crm_expr_svm_learn':
crm_expr_svm.c:1481: warning: unused variable 'cmp'
crm_expr_svm.c: In function 'crm_expr_svm_classify':
crm_expr_svm.c:3115: warning: comparison between signed and unsigned
crm_expr_svm.c:3132: warning: comparison between signed and unsigned
crm_expr_svm.c:3136: warning: comparison between signed and unsigned
crm_expr_svm.c:3151: warning: comparison between signed and unsigned
[....]


[....]
crm_generic_port.c: In function 'memnCdump':
crm_generic_port.c:225: warning: comparison between signed and unsigned
[....]


[....]
crm_versioning.c: In function 'crm_correct_for_version_header':
crm_versioning.c:910: warning: comparison between signed and unsigned
[....]


[....]
crmregex_tre.c: In function 'free_regex_cache':
crmregex_tre.c:390: warning: comparison between signed and unsigned
[....]


[....]
crm_main.c: In function 'main':
crm_main.c:1292: warning: comparison between signed and unsigned
[....]


[....]
cssutil.c: In function 'main':
cssutil.c:499: warning: comparison between signed and unsigned
cssutil.c:566: warning: comparison between signed and unsigned
cssutil.c:587: warning: comparison between signed and unsigned
[....]


[....]
crm_util_errorhandlers.c: In function 'generate_err_reason_msg':
crm_util_errorhandlers.c:122: warning: comparison between signed and unsigned
crm_util_errorhandlers.c:238: warning: comparison between signed and unsigned
crm_util_errorhandlers.c:263: warning: comparison between signed and unsigned
[....]


[....]
osbf-util.c: In function 'main':
osbf-util.c:201: warning: comparison between signed and unsigned
osbf-util.c:447: warning: comparison between signed and unsigned
osbf-util.c:501: warning: comparison between signed and unsigned
osbf-util.c:553: warning: comparison between signed and unsigned
osbf-util.c:574: warning: comparison between signed and unsigned
osbf-util.c:576: warning: comparison between signed and unsigned
osbf-util.c:605: warning: comparison between signed and unsigned
[....]


[....]
cssdiff.c: In function 'main':
cssdiff.c:223: warning: comparison between signed and unsigned
cssdiff.c:260: warning: comparison between signed and unsigned
[....]


[....]
cssmerge.c: In function 'main':
cssmerge.c:325: warning: comparison between signed and unsigned
[....]


[....]
crm_test_hashes.c: In function 'show_stats':
crm_test_hashes.c:251: warning: comparison between signed and unsigned
crm_test_hashes.c:272: warning: comparison between signed and unsigned
crm_test_hashes.c:302: warning: comparison between signed and unsigned
crm_test_hashes.c:314: warning: comparison between signed and unsigned
crm_test_hashes.c:343: warning: comparison between signed and unsigned
crm_test_hashes.c:382: warning: comparison between signed and unsigned
crm_test_hashes.c:421: warning: comparison between signed and unsigned
crm_test_hashes.c:459: warning: comparison between signed and unsigned
crm_test_hashes.c:469: warning: comparison between signed and unsigned
crm_test_hashes.c: In function 'test_avalanche2':
crm_test_hashes.c:745: warning: comparison between signed and unsigned
crm_test_hashes.c:743: warning: unused variable 'feedlen'
crm_test_hashes.c: In function 'test_avalanche3':
crm_test_hashes.c:810: warning: comparison between signed and unsigned
crm_test_hashes.c:818: warning: pointer targets in passing argument 1 of 'hashfunc' differ in signedness
crm_test_hashes.c:808: warning: unused variable 'feedlen'
crm_test_hashes.c: In function 'test_avalanche4':
crm_test_hashes.c:864: warning: unused variable 'feedlen'
crm_test_hashes.c: In function 'crm114_ger_hash':
crm_test_hashes.c:1034: warning: comparison between signed and unsigned
crm_test_hashes.c: In function 'fake_hash':
crm_test_hashes.c:2011: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult_hash':
crm_test_hashes.c:2026: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult2_hash':
crm_test_hashes.c:2040: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult3_hash':
crm_test_hashes.c:2054: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult4_hash':
crm_test_hashes.c:2068: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult5_hash':
crm_test_hashes.c:2082: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:2087: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'mult7_hash':
crm_test_hashes.c:2597: warning: pointer targets in passing argument 2 of 'md5_update' differ in signedness
crm_test_hashes.c: In function 'fake2_hash':
crm_test_hashes.c:2618: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake3_hash':
crm_test_hashes.c:2634: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake4_hash':
crm_test_hashes.c:2650: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake5_hash':
crm_test_hashes.c:2666: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake6_hash':
crm_test_hashes.c:2682: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake7_hash':
crm_test_hashes.c:2706: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:2725: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake8_hash':
crm_test_hashes.c:2755: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:2774: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake9_hash':
crm_test_hashes.c:2804: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:2823: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c: In function 'fake10_hash':
crm_test_hashes.c:2981: warning: unused variable 'i'
crm_test_hashes.c: In function 'fake11_hash':
crm_test_hashes.c:3010: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:3031: warning: this decimal constant is unsigned only in ISO C90
crm_test_hashes.c:2998: warning: unused variable 'm'
crm_test_hashes.c: In function 'fake12_hash':
crm_test_hashes.c:3051: warning: unused variable 'm'
[....]


That's all :) Most are anyway just warnings. Would however be nice to not see them at all.

Another issue I have is, that I can not compile CRM114 with "--enable-static". It just does not work. I don't know why.


> -- 
> Met vriendelijke groeten / Best regards,
> 
> Ger Hobbelt
> 
Steve

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.