W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2001

Inexplicable compilation errors

From: Mark Healey <mark@healeyonline.com>
Date: Wed, 26 Dec 2001 21:32:15 -0500 (EST)
Message-Id: <200112270621.WAA07720@blossom.healeyonline.com>
To: "www-lib@w3.org" <www-lib@w3.org>
When trying to compile the first example I get the long list of
compilation errors at the end of this message.

I checked the files mentioned and the lines look OK.

I'm using Redhat 6.2

What am I doing wrong?  Please keep explanations simple.  My knowledge
is limited to the Herb Shildt book.




gcc wwww test.c -o wwwtest

In file included from /usr/local/include/w3c-libwww/WWWUtil.h:62,

                 from /usr/local/include/w3c-libwww/WWWLib.h:62,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTUtils.h:210: parse error before `size_t'

/usr/local/include/w3c-libwww/HTUtils.h:221: parse error before `size_t'

In file included from /usr/local/include/w3c-libwww/HTUtils.h:396,

                 from /usr/local/include/w3c-libwww/WWWUtil.h:62,

                 from /usr/local/include/w3c-libwww/WWWLib.h:62,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTMemory.h:60: parse error before `size'

/usr/local/include/w3c-libwww/HTMemory.h:61: parse error before `count'

/usr/local/include/w3c-libwww/HTMemory.h:62: parse error before `size_t'

/usr/local/include/w3c-libwww/HTMemory.h:104: parse error before `size'

In file included from /usr/local/include/w3c-libwww/HTLib.h:29,

                 from /usr/local/include/w3c-libwww/WWWCore.h:60,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTUser.h:137: parse error before 
`HTUserProfile_timezone'

/usr/local/include/w3c-libwww/HTUser.h:137: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTUser.h:138: parse error before `time_t'

In file included from /usr/local/include/w3c-libwww/HTAnchor.h:74,

                 from /usr/local/include/w3c-libwww/HTFormat.h:77,

                 from /usr/local/include/w3c-libwww/HTReq.h:72,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTResponse.h:109: parse error before 
`HTResponse_retryTime'

/usr/local/include/w3c-libwww/HTResponse.h:109: warning: data definition has no type 
or storage class

/usr/local/include/w3c-libwww/HTResponse.h:110: parse error before `time_t'

/usr/local/include/w3c-libwww/HTResponse.h:280: parse error before 
`HTResponse_maxAge'

/usr/local/include/w3c-libwww/HTResponse.h:280: warning: data definition has no type 
or storage class

In file included from /usr/local/include/w3c-libwww/HTFormat.h:77,

                 from /usr/local/include/w3c-libwww/HTReq.h:72,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTAnchor.h:603: parse error before `HTAnchor_date'

/usr/local/include/w3c-libwww/HTAnchor.h:603: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTAnchor.h:604: parse error before `date'

/usr/local/include/w3c-libwww/HTAnchor.h:614: parse error before 
`HTAnchor_lastModified'

/usr/local/include/w3c-libwww/HTAnchor.h:614: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTAnchor.h:615: parse error before `lm'

/usr/local/include/w3c-libwww/HTAnchor.h:642: parse error before `HTAnchor_age'

/usr/local/include/w3c-libwww/HTAnchor.h:642: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTAnchor.h:643: parse error before `age'

/usr/local/include/w3c-libwww/HTAnchor.h:651: parse error before `HTAnchor_expires'

/usr/local/include/w3c-libwww/HTAnchor.h:651: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTAnchor.h:652: parse error before `exp'

In file included from /usr/local/include/w3c-libwww/HTChannl.h:43,

                 from /usr/local/include/w3c-libwww/HTIOStream.h:38,

                 from /usr/local/include/w3c-libwww/HTTrans.h:60,

                 from /usr/local/include/w3c-libwww/HTNet.h:57,

                 from /usr/local/include/w3c-libwww/HTReq.h:75,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTHost.h:406: parse error before 
`HTHost_persistTimeout'

/usr/local/include/w3c-libwww/HTHost.h:406: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTHost.h:407: parse error before `timeout'

/usr/local/include/w3c-libwww/HTHost.h:414: parse error before `time_t'

/usr/local/include/w3c-libwww/HTHost.h:415: parse error before 
`HTHost_persistExpires'

/usr/local/include/w3c-libwww/HTHost.h:415: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTHost.h:474: parse error before `size_t'

/usr/local/include/w3c-libwww/HTHost.h:475: parse error before `size_t'

/usr/local/include/w3c-libwww/HTHost.h:476: parse error before 
`HTHost_remainingRead'

/usr/local/include/w3c-libwww/HTHost.h:476: warning: data definition has no type or 
storage class

In file included from /usr/local/include/w3c-libwww/HTIOStream.h:38,

                 from /usr/local/include/w3c-libwww/HTTrans.h:60,

                 from /usr/local/include/w3c-libwww/HTNet.h:57,

                 from /usr/local/include/w3c-libwww/HTReq.h:75,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTChannl.h:62: parse error before `FILE'

/usr/local/include/w3c-libwww/HTChannl.h:98: parse error before `*'

/usr/local/include/w3c-libwww/HTChannl.h:98: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTChannl.h:99: parse error before `FILE'

In file included from /usr/local/include/w3c-libwww/HTTrans.h:60,

                 from /usr/local/include/w3c-libwww/HTNet.h:57,

                 from /usr/local/include/w3c-libwww/HTReq.h:75,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTIOStream.h:104: parse error before `size_t'

In file included from /usr/local/include/w3c-libwww/HTNet.h:61,

                 from /usr/local/include/w3c-libwww/HTReq.h:75,

                 from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTDNS.h:58: parse error before `timeout'

/usr/local/include/w3c-libwww/HTDNS.h:59: parse error before `HTDNS_timeout'

/usr/local/include/w3c-libwww/HTDNS.h:59: parse error before `timeout'

/usr/local/include/w3c-libwww/HTDNS.h:59: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTDNS.h:75: warning: `struct hostent' declared inside 
parameter list

/usr/local/include/w3c-libwww/HTDNS.h:75: warning: its scope is only this definition or 
declaration,

/usr/local/include/w3c-libwww/HTDNS.h:75: warning: which is probably not what you 
want.

In file included from /usr/local/include/w3c-libwww/WWWCore.h:73,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTReq.h:832: parse error before `HTRequest_date'

/usr/local/include/w3c-libwww/HTReq.h:832: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTReq.h:833: parse error before `time_t'

In file included from /usr/local/include/w3c-libwww/WWWCore.h:161,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTWWWStr.h:160: parse error before `*'

/usr/local/include/w3c-libwww/HTWWWStr.h:171: parse error before `*'

/usr/local/include/w3c-libwww/HTWWWStr.h:187: parse error before `HTParseTime'

/usr/local/include/w3c-libwww/HTWWWStr.h:187: warning: data definition has no type 
or storage class

In file included from /usr/local/include/w3c-libwww/WWWCore.h:196,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTMemLog.h:39: parse error before `size_t'

/usr/local/include/w3c-libwww/HTMemLog.h:40: parse error before `size_t'

In file included from /usr/local/include/w3c-libwww/HTInet.h:30,

                 from /usr/local/include/w3c-libwww/WWWCore.h:339,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTHstMan.h:61: parse error before `time_t'

/usr/local/include/w3c-libwww/HTHstMan.h:61: warning: no semicolon at end of struct or 
union

/usr/local/include/w3c-libwww/HTHstMan.h:70: parse error before `expires'

/usr/local/include/w3c-libwww/HTHstMan.h:70: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTHstMan.h:102: parse error before `remainingRead'

/usr/local/include/w3c-libwww/HTHstMan.h:102: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTHstMan.h:110: parse error before `}'

In file included from /usr/local/include/w3c-libwww/WWWCore.h:339,

                 from /usr/local/include/w3c-libwww/WWWLib.h:75,

                 from wwwtest.c:1:

/usr/local/include/w3c-libwww/HTInet.h:93: parse error before `HTGetTimeZoneOffset'

/usr/local/include/w3c-libwww/HTInet.h:93: warning: data definition has no type or 
storage class

/usr/local/include/w3c-libwww/HTHstMan.h:94: storage size of `sock_addr' isn't known
Received on Thursday, 27 December 2001 00:25:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:40 GMT