Compile Problems on freebsd 4.1 using libwww 5.2.8

I've installed libwww version 5.2.8 using the freebsd 4.1 ports
system.  However, although it seems to have installed correctly, i'm
having odd problems compiling programs using the library...

i type:
"gcc -I/usr/local/include/w3c-libwww/ -L/usr/local/lib test.c"
 
where test.c is
"            #include "WWWLib.h"

              int main()
              {
                  HTLibInit("TestApp", "1.0");
                  HTLibTerminate();
                  return 0;
              }  
"

and the system returns:

"In file included from /usr/local/include/w3c-libwww/WWWUtil.h:62,
                 from /usr/local/include/w3c-libwww/WWWLib.h:62,
                 from test.c:3:
/usr/local/include/w3c-libwww/HTUtils.h:210: syntax error before `size_t'
/usr/local/include/w3c-libwww/HTUtils.h:221: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTMemory.h:60: syntax error before `size'
/usr/local/include/w3c-libwww/HTMemory.h:61: syntax error before `count'
/usr/local/include/w3c-libwww/HTMemory.h:62: syntax error before `size_t'
/usr/local/include/w3c-libwww/HTMemory.h:104: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTUser.h:137: syntax 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: syntax error before `time_t'
In file included from /usr/local/include/w3c-libwww/HTAnchor.h:59,
                 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 test.c:3:
/usr/local/include/w3c-libwww/HTResponse.h:97: syntax error before
`HTResponse_retryTime'
/usr/local/include/w3c-libwww/HTResponse.h:97: warning: data definition
has no type or storage class
/usr/local/include/w3c-libwww/HTResponse.h:98: syntax error before
`time_t'
/usr/local/include/w3c-libwww/HTResponse.h:268: syntax error before
`HTResponse_maxAge'
/usr/local/include/w3c-libwww/HTResponse.h:268: 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 test.c:3:
/usr/local/include/w3c-libwww/HTAnchor.h:588: syntax error before
`HTAnchor_date'
/usr/local/include/w3c-libwww/HTAnchor.h:588: warning: data definition has
no type or storage class
/usr/local/include/w3c-libwww/HTAnchor.h:589: syntax error before `date'
/usr/local/include/w3c-libwww/HTAnchor.h:599: syntax error before
`HTAnchor_lastModified'
/usr/local/include/w3c-libwww/HTAnchor.h:599: warning: data definition has
no type or storage class
/usr/local/include/w3c-libwww/HTAnchor.h:600: syntax error before `lm'
/usr/local/include/w3c-libwww/HTAnchor.h:627: syntax error before
`HTAnchor_age'
/usr/local/include/w3c-libwww/HTAnchor.h:627: warning: data definition has
no type or storage class
/usr/local/include/w3c-libwww/HTAnchor.h:628: syntax error before `age'
/usr/local/include/w3c-libwww/HTAnchor.h:636: syntax error before
`HTAnchor_expires'
/usr/local/include/w3c-libwww/HTAnchor.h:636: warning: data definition has
no type or storage class
/usr/local/include/w3c-libwww/HTAnchor.h:637: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTHost.h:406: syntax 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: syntax error before `timeout'
/usr/local/include/w3c-libwww/HTHost.h:414: syntax error before `time_t'
/usr/local/include/w3c-libwww/HTHost.h:415: syntax 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: syntax error before `size_t'
/usr/local/include/w3c-libwww/HTHost.h:475: syntax error before `size_t'
/usr/local/include/w3c-libwww/HTHost.h:476: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTChannl.h:62: syntax error before `FILE'  
/usr/local/include/w3c-libwww/HTChannl.h:98: syntax 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: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTIOStream.h:104: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTDNS.h:58: syntax error before `timeout'
/usr/local/include/w3c-libwww/HTDNS.h:59: syntax error before
`HTDNS_timeout'
/usr/local/include/w3c-libwww/HTDNS.h:59: syntax 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, 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 test.c:3:
/usr/local/include/w3c-libwww/HTReq.h:815: syntax error before
`HTRequest_date'
/usr/local/include/w3c-libwww/HTReq.h:815: warning: data definition has no
type or storage class
/usr/local/include/w3c-libwww/HTReq.h:816: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTWWWStr.h:160: syntax error before `*'
/usr/local/include/w3c-libwww/HTWWWStr.h:171: syntax error before `*'
/usr/local/include/w3c-libwww/HTWWWStr.h:187: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTMemLog.h:39: syntax error before `size_t'
/usr/local/include/w3c-libwww/HTMemLog.h:40: syntax 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 test.c:3:
/usr/local/include/w3c-libwww/HTHstMan.h:61: syntax error before `time_t'
/usr/local/include/w3c-libwww/HTHstMan.h:70: syntax error before `time_t'
/usr/local/include/w3c-libwww/HTHstMan.h:93: field `sock_addr' has
incomplete type
/usr/local/include/w3c-libwww/HTHstMan.h:101: syntax error before `size_t'
In file included from /usr/local/include/w3c-libwww/WWWCore.h:339,
                 from /usr/local/include/w3c-libwww/WWWLib.h:75,
                 from test.c:3:
/usr/local/include/w3c-libwww/HTInet.h:93: syntax error before
`HTGetTimeZoneOffset'
/usr/local/include/w3c-libwww/HTInet.h:93: warning: data definition has no
type or storage class 



....

whew.  Any ideas?

Patrick.

Received on Friday, 1 September 2000 01:31:27 UTC