Problems with the 5.1m and 5.1m1 versions

Hi,
I'm trying to use the 5.1m version of the www lib. My environment is
solaris2.5
I've got some warnings and I can't get any object file.
This is my compilation command :
cc -o toto -I/libwww/Library/src
-L/libwww/solaris2.5/Library/src/.libs/libwww.a test5.c

these are the warnings I get:
"/libwww/Library/src/HTDNS.h", line 45: warning: dubious tag
declaration: struct hostent
"/libwww/Library/src/HTHstMan.h", line 82: incomplete struct/union/enum
sockaddr_in: sock_addr
"/libwww/Library/src/HTMulti.h", line 43: warning: dubious tag
declaration: struct stat
cc: acomp failed for test5.c

The file test5.c is just an include of WWWInit.h
/* test file */
#include <stdio.h>
#include <time.h>
#include "WWWInit.h"
#include "wwwsys.h"
void main()
{
	printf("toto"\n");
}

the corresponding line in the header files are :
"/libwww/Library/src/HTDNS.h"
extern HTdns * HTDNS_add (HTList * list, struct hostent * element,
                          char * host, int * homes);

"/libwww/Library/src/HTHstMan.h"
    SockA               sock_addr;           /* SockA is defined in
wwwsys.h */

"/libwww/Library/src/HTMulti.h"
extern char * HTMulti (HTRequest *      req,
                      char *            path,
                      struct stat *     stat_info);


If someone could help me ! I've just get the 5.1m1 version and it's
exactly the same problem. When I comment the #include "WWWInit.h"
everything is OK but with it :-(

Thanks for your help,
Thib
-- 
Thibault Parmentier, Projet SHERPA - INRIA
OFFICE: (+33) 4 76 61 53 74     Fax: (+33) 4 76 61 52 07
HOME:   (+33) 4 76 86 24 04  ROWING: (+33) 4 76 42 77 86
OUAIB:  http://chooyu.inrialpes.fr:2000/

Received on Thursday, 29 October 1998 11:40:31 UTC