[Expat-bugs] RE: Solaris make error

John.Hockaday@ga.gov.au John.Hockaday@ga.gov.au
Thu Nov 14 04:24:28 2002


Hi,

I noticed that there was a thread about compiling expat on the Solaris
2.8 platform in September 2002.  

I have been able to compile expat-1.95.5.tar.gz on a Solaris 2.8 UNIX
platform using the following gcc setup:

"gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2"

but .... when I run "make check" I get the following output:

################
make check
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions
-I./lib -I. -o tests/runtes
ts.o -c tests/runtests.c
tests/runtests.c:2:19: check.h: No such file or directory
tests/runtests.c: In function `basic_setup':
tests/runtests.c:19: warning: implicit declaration of function `fail'
tests/runtests.c: At top level:
tests/runtests.c:68: warning: return type defaults to `int'
tests/runtests.c:68: warning: function declaration isn't a prototype
tests/runtests.c: In function `START_TEST':
tests/runtests.c:76: warning: control reaches end of non-void function
tests/runtests.c: At top level:
tests/runtests.c:80: parse error before "START_TEST"
tests/runtests.c:81: warning: return type defaults to `int'
tests/runtests.c:81: warning: function declaration isn't a prototype
tests/runtests.c:81: redefinition of `START_TEST'
tests/runtests.c:68: `START_TEST' previously defined here
tests/runtests.c:89: parse error before "START_TEST"
tests/runtests.c:90: warning: return type defaults to `int'
tests/runtests.c:90: warning: function declaration isn't a prototype
tests/runtests.c:90: redefinition of `START_TEST'
tests/runtests.c:81: `START_TEST' previously defined here
tests/runtests.c:99: parse error before "START_TEST"
tests/runtests.c:100: warning: return type defaults to `int'
tests/runtests.c:100: warning: function declaration isn't a prototype
tests/runtests.c:100: redefinition of `START_TEST'
tests/runtests.c:90: `START_TEST' previously defined here
tests/runtests.c:108: parse error before "START_TEST"
tests/runtests.c:109: warning: return type defaults to `int'
tests/runtests.c:109: warning: function declaration isn't a prototype
tests/runtests.c:109: redefinition of `START_TEST'
tests/runtests.c:100: `START_TEST' previously defined here
tests/runtests.c:117: syntax error before "static"
tests/runtests.c:163: warning: return type defaults to `int'
tests/runtests.c:163: warning: function declaration isn't a prototype
tests/runtests.c:163: redefinition of `START_TEST'
tests/runtests.c:109: `START_TEST' previously defined here
tests/runtests.c:174: parse error before "START_TEST"
tests/runtests.c:175: warning: return type defaults to `int'
tests/runtests.c:175: warning: function declaration isn't a prototype
tests/runtests.c:175: redefinition of `START_TEST'
tests/runtests.c:163: `START_TEST' previously defined here
tests/runtests.c:184: parse error before "START_TEST"
tests/runtests.c:185: warning: return type defaults to `int'
tests/runtests.c:185: warning: function declaration isn't a prototype
tests/runtests.c:185: redefinition of `START_TEST'
tests/runtests.c:175: `START_TEST' previously defined here
tests/runtests.c:194: parse error before "START_TEST"
tests/runtests.c:195: warning: return type defaults to `int'
tests/runtests.c:195: warning: function declaration isn't a prototype
tests/runtests.c:195: redefinition of `START_TEST'
tests/runtests.c:185: `START_TEST' previously defined here
tests/runtests.c:204: parse error before "START_TEST"
tests/runtests.c:205: warning: return type defaults to `int'
tests/runtests.c:205: warning: function declaration isn't a prototype
tests/runtests.c:205: redefinition of `START_TEST'
tests/runtests.c:195: `START_TEST' previously defined here
tests/runtests.c:218: parse error before "START_TEST"
tests/runtests.c:219: warning: return type defaults to `int'
tests/runtests.c:219: warning: function declaration isn't a prototype
tests/runtests.c:219: redefinition of `START_TEST'
tests/runtests.c:205: `START_TEST' previously defined here
tests/runtests.c:230: parse error before "START_TEST"
tests/runtests.c:231: warning: return type defaults to `int'
tests/runtests.c:231: warning: function declaration isn't a prototype
tests/runtests.c:231: redefinition of `START_TEST'
tests/runtests.c:219: `START_TEST' previously defined here
tests/runtests.c:251: parse error before "START_TEST"
tests/runtests.c:252: warning: return type defaults to `int'
tests/runtests.c:252: warning: function declaration isn't a prototype
tests/runtests.c:252: redefinition of `START_TEST'
tests/runtests.c:231: `START_TEST' previously defined here
tests/runtests.c:269: parse error before "START_TEST"
tests/runtests.c:270: warning: return type defaults to `int'
tests/runtests.c:270: warning: function declaration isn't a prototype
tests/runtests.c:270: redefinition of `START_TEST'
tests/runtests.c:252: `START_TEST' previously defined here
tests/runtests.c:292: parse error before "START_TEST"
tests/runtests.c:293: warning: return type defaults to `int'
tests/runtests.c:293: warning: function declaration isn't a prototype
tests/runtests.c:293: redefinition of `START_TEST'
tests/runtests.c:270: `START_TEST' previously defined here
tests/runtests.c:312: parse error before "START_TEST"
tests/runtests.c:313: warning: return type defaults to `int'
tests/runtests.c:313: warning: function declaration isn't a prototype
tests/runtests.c:313: redefinition of `START_TEST'
tests/runtests.c:293: `START_TEST' previously defined here
tests/runtests.c:331: parse error before "START_TEST"
tests/runtests.c:332: warning: return type defaults to `int'
tests/runtests.c:332: warning: function declaration isn't a prototype
tests/runtests.c:332: redefinition of `START_TEST'
tests/runtests.c:313: `START_TEST' previously defined here
tests/runtests.c:370: syntax error before "static"
tests/runtests.c:379: warning: return type defaults to `int'
tests/runtests.c:379: warning: function declaration isn't a prototype
tests/runtests.c:379: redefinition of `START_TEST'
tests/runtests.c:332: `START_TEST' previously defined here
tests/runtests.c:407: syntax error before "static"
tests/runtests.c:483: warning: return type defaults to `int'
tests/runtests.c:483: warning: function declaration isn't a prototype
tests/runtests.c:483: redefinition of `START_TEST'
tests/runtests.c:379: `START_TEST' previously defined here
tests/runtests.c:510: parse error before "START_TEST"
tests/runtests.c:511: warning: return type defaults to `int'
tests/runtests.c:511: warning: function declaration isn't a prototype
tests/runtests.c:511: redefinition of `START_TEST'
tests/runtests.c:483: `START_TEST' previously defined here
tests/runtests.c:521: syntax error before "static"
tests/runtests.c:537: warning: return type defaults to `int'
tests/runtests.c:537: warning: function declaration isn't a prototype
tests/runtests.c:537: redefinition of `START_TEST'
tests/runtests.c:511: `START_TEST' previously defined here
tests/runtests.c:552: parse error before "START_TEST"
tests/runtests.c:552: warning: return type defaults to `int'
tests/runtests.c:552: warning: function declaration isn't a prototype
tests/runtests.c:552: redefinition of `START_TEST'
tests/runtests.c:537: `START_TEST' previously defined here
tests/runtests.c:565: parse error before "START_TEST"
tests/runtests.c:565: warning: return type defaults to `int'
tests/runtests.c:565: warning: function declaration isn't a prototype
tests/runtests.c:565: redefinition of `START_TEST'
tests/runtests.c:552: `START_TEST' previously defined here
tests/runtests.c:575: parse error before "START_TEST"
tests/runtests.c:575: warning: return type defaults to `int'
tests/runtests.c:575: warning: function declaration isn't a prototype
tests/runtests.c:575: redefinition of `START_TEST'
tests/runtests.c:565: `START_TEST' previously defined here
tests/runtests.c:587: syntax error before "static"
tests/runtests.c:610: warning: return type defaults to `int'
tests/runtests.c:610: warning: function declaration isn't a prototype
tests/runtests.c:610: redefinition of `START_TEST'
tests/runtests.c:575: `START_TEST' previously defined here
tests/runtests.c:627: parse error before "START_TEST"
tests/runtests.c:628: warning: return type defaults to `int'
tests/runtests.c:628: warning: function declaration isn't a prototype
tests/runtests.c:628: redefinition of `START_TEST'
tests/runtests.c:610: `START_TEST' previously defined here
tests/runtests.c:646: syntax error before "static"
tests/runtests.c:697: warning: return type defaults to `int'
tests/runtests.c:697: warning: function declaration isn't a prototype
tests/runtests.c:697: redefinition of `START_TEST'
tests/runtests.c:628: `START_TEST' previously defined here
tests/runtests.c:713: syntax error before "static"
tests/runtests.c:752: warning: return type defaults to `int'
tests/runtests.c:752: warning: function declaration isn't a prototype
tests/runtests.c:752: redefinition of `START_TEST'
tests/runtests.c:697: `START_TEST' previously defined here
tests/runtests.c:772: parse error before "START_TEST"
tests/runtests.c:773: warning: return type defaults to `int'
tests/runtests.c:773: warning: function declaration isn't a prototype
tests/runtests.c:773: redefinition of `START_TEST'
tests/runtests.c:752: `START_TEST' previously defined here
tests/runtests.c:793: syntax error before "static"
tests/runtests.c:795: warning: return type defaults to `int'
tests/runtests.c:795: warning: no previous prototype for
`make_basic_suite'
tests/runtests.c: In function `make_basic_suite':
tests/runtests.c:796: `Suite' undeclared (first use in this function)
tests/runtests.c:796: (Each undeclared identifier is reported only once
tests/runtests.c:796: for each function it appears in.)
tests/runtests.c:796: `s' undeclared (first use in this function)
tests/runtests.c:796: warning: implicit declaration of function
`suite_create'
tests/runtests.c:797: `TCase' undeclared (first use in this function)
tests/runtests.c:797: `tc_basic' undeclared (first use in this function)
tests/runtests.c:797: warning: implicit declaration of function
`tcase_create'
tests/runtests.c:798: `tc_namespace' undeclared (first use in this
function)
tests/runtests.c:800: warning: implicit declaration of function
`suite_add_tcase'
tests/runtests.c:801: warning: implicit declaration of function
`tcase_add_checked_fixture'
tests/runtests.c:802: warning: implicit declaration of function
`tcase_add_test'
tests/runtests.c:802: `test_nul_byte' undeclared (first use in this
function)
tests/runtests.c:803: `test_u0000_char' undeclared (first use in this
function)
tests/runtests.c:804: `test_bom_utf8' undeclared (first use in this
function)
tests/runtests.c:805: `test_bom_utf16_be' undeclared (first use in this
function)
tests/runtests.c:806: `test_bom_utf16_le' undeclared (first use in this
function)
tests/runtests.c:807: `test_illegal_utf8' undeclared (first use in this
function)
tests/runtests.c:808: `test_utf16' undeclared (first use in this
function)
tests/runtests.c:809: `test_utf16_le_epilog_newline' undeclared (first
use in this function)
tests/runtests.c:810: `test_latin1_umlauts' undeclared (first use in
this function)
tests/runtests.c:812: `test_danish_latin1' undeclared (first use in this
function)
tests/runtests.c:814: `test_french_charref_hexidecimal' undeclared
(first use in this function)
tests/runtests.c:815: `test_french_charref_decimal' undeclared (first
use in this function)
tests/runtests.c:816: `test_french_latin1' undeclared (first use in this
function)
tests/runtests.c:817: `test_french_utf8' undeclared (first use in this
function)
tests/runtests.c:818: `test_utf8_false_rejection' undeclared (first use
in this function)
tests/runtests.c:819: `test_line_count' undeclared (first use in this
function)
tests/runtests.c:820: `test_really_long_lines' undeclared (first use in
this function)
tests/runtests.c:821: `test_end_element_events' undeclared (first use in
this function)
tests/runtests.c:822: `test_attr_whitespace_normalization' undeclared
(first use in this function)
tests/runtests.c:823: `test_xmldecl_misplaced' undeclared (first use in
this function)
tests/runtests.c:824: `test_unknown_encoding_internal_entity' undeclared
(first use in this function
)
tests/runtests.c:826:
`test_wfc_undeclared_entity_unread_external_subset' undeclared (first
use in t
his function)
tests/runtests.c:827: `test_wfc_undeclared_entity_no_external_subset'
undeclared (first use in this
function)
tests/runtests.c:828: `test_wfc_undeclared_entity_standalone' undeclared
(first use in this function
)
tests/runtests.c:829: `test_wfc_undeclared_entity_with_external_subset'
undeclared (first use in thi
s function)
tests/runtests.c:830: `test_wfc_no_recursive_entity_refs' undeclared
(first use in this function)
tests/runtests.c:835: `test_return_ns_triplet' undeclared (first use in
this function)
tests/runtests.c:836: `test_ns_tagname_overwrite' undeclared (first use
in this function)
tests/runtests.c:837: `test_ns_tagname_overwrite_triplet' undeclared
(first use in this function)
tests/runtests.c: In function `main':
tests/runtests.c:848: `CK_NORMAL' undeclared (first use in this
function)
tests/runtests.c:849: `Suite' undeclared (first use in this function)
tests/runtests.c:849: `s' undeclared (first use in this function)
tests/runtests.c:850: `SRunner' undeclared (first use in this function)
tests/runtests.c:850: `sr' undeclared (first use in this function)
tests/runtests.c:850: warning: implicit declaration of function
`srunner_create'
tests/runtests.c:858: `CK_VERBOSE' undeclared (first use in this
function)
tests/runtests.c:860: `CK_SILENT' undeclared (first use in this
function)
tests/runtests.c:875: warning: implicit declaration of function
`srunner_set_fork_status'
tests/runtests.c:875: `CK_FORK' undeclared (first use in this function)
tests/runtests.c:875: `CK_NOFORK' undeclared (first use in this
function)
tests/runtests.c:876: warning: implicit declaration of function
`srunner_run_all'
tests/runtests.c:877: warning: implicit declaration of function
`srunner_ntests_failed'
tests/runtests.c:878: warning: implicit declaration of function
`srunner_free'
tests/runtests.c:879: warning: implicit declaration of function
`suite_free'
make: *** [tests/runtests.o] Error 1
################

Could this indicate that I am having troubles compiling expat-1.95.5
because of my gcc setup or is there something else that I am missing?
If so, what version of gcc should I be using and should I be using GNU
"as" and "ld"?

Thanks in advance for any help that anyone can provide me.


John



More information about the Expat-bugs mailing list