- From: <gpicher@desknetinc.com>
- Date: Wed, 20 Jan 2010 12:08:21 -0500
- To: www-lib@w3.org
While trying to rebuild the current CVS state of libwww with MSVC6SP6, I saw the DIR problems referenced in this thread, but wanted to clarify the solution that worked for me (and report other problems coming up afterwards). First, the file to change is wwwsys.h, not wwwysy.h . Second, there is more than one #ifdef WWW_MSWINDOWS in the file; the change should go under the first one. Original message: http://lists.w3.org/Archives/Public/www-lib/2009JanMar/0001.html There was another problem right after resolving this one - "buffer size for readdir_r cannot be determined" in the implementation of HTFile_irent_buf_size in library\src\HTFile.c. I tried to resolve that by simply setting name_max to 256 as a practical maximum path length (as the code just above it does), instead of raising the error (following the suggestion here: http://lists.w3.org/Archives/Public/www-lib/2006JanMar/0013.html ) . But then the final line of this function also caused two problems on Windows: 1) offsetof was not defined (cured by adding #include stddef.h just above the function); 2) offsetof doesn't know about 'struct dirent' which is not implemented under MSVC. It appears this code has never been working on Windows. Web mailing list posting suggested that this function does not seem currently to be used by code anwhere else in the library, so you could move past the problem by ignoring it, commenting the whole function out. That did not work. The wwwfile project requires the function at link time. My ultimate ambition here is to be able to rebuild the library with Microsoft Visual Studio.NET 2008, but I'm just following the original install instructions carefully for now. Has anyone had success with the newer version of the Microsoft compiler? Glenn Picher DeskNet Inc. ===== From: Sinha, Raj (Raj) <rajsinha@avaya.com> Date: Sat, 14 Mar 2009 05:51:50 -0400 Message-ID: <A4D36489ED316642BDCD63B144B613A40307E2E8@300815ANEX3.global.avaya.com> To: "DootDog" <wdoutre@cs.brown.edu>, <www-lib@w3.org> This seems to have resolved the build error #define DIR WIN32_FIND_DATA In wwwysy.h Under #ifdef WWW_MSWINDOWS -----Original Message----- From: www-lib-request@w3.org [mailto:www-lib-request@w3.org] On Behalf Of DootDog Sent: Thursday, March 12, 2009 6:43 PM To: www-lib@w3.org Subject: Re: Build Trouble I've run into this same problem. Was anybody able to solve it? I've searched through the files and can't find DIR defined anywhere. Will Amrull wrote: > > Hi, I am trying to build libw3 using the latest CVS and MSVC files, but I > am > encountering a problem which causes about 85% of the project builds to > fail. > > The problem seems to center around HTFile.h Line 102 : > extern size_t HTFile_dirent_buf_size(DIR * dirp); > > These are the errors I receieve: > \libwww\Library\src\HTFile.h(102) : error C2143: syntax error : missing > ')' > before '*' > \libwww\Library\src\HTFile.h(102) : error C2143: syntax error : missing > '{' > before '*' > \libwww\Library\src\HTFile.h(102) : error C2059: syntax error : ')' > > This error happens over and over and over as I try a bach build and I > can't > figure out what the problem is.. > > Any help would be greatly appreciated. > >
Received on Thursday, 21 January 2010 13:52:09 UTC