Re: libwww/PMCApp libs on Macs

>Bugs or no?  (Given the amount of manual tweeking necessary to get the new
>libwww merely to compile on a MW/GUSI-fied mac, I'm not sure I can say.)
>
>1. For libwww,  adding the following to sysdep.h (in the MWERKS section)
>helps a lot (any other suggestions welcome, since mac config/patching is
>apparently not scripted...):
>#define HAVE_STRCHR   /* lmd960627*/
>#define HAVE_MEMCPY
>#define STDC_HEADERS
>#define HAVE_MKTIME
>#define HAVE_STRFTIME

Here is the section of sysdeps.h that I have been using w/4.1b1 for some
time. I had forwarded this to Henrik several weeks ago but he has not yet
had time to include it in the archive. I agree, the mac is certainly a
second class citizen where www-lib is concerned. Subsequently it's a lot
harder now, having to figure all this stuff out, just to compile on mac.
As a result, I doubt if many MW/GUSI folks will 'get it', without
previous experience using the 4.0 version of the library and the tcp.h
file.

>2.Has anyone successfully compiled the CSApp lib on a mac? Immediate
>problem is that the compiler chokes on the forward declarations

try placing in the beginning of the source file:

struct TargetObject_t {};

Sorry I have not attempted to use CSApp and have no experience in this
area. Best of luck. sinc, -jeff

#ifdef __MWERKS__
#include <gusi.h>
#include <dirent.h>
#include <errno.h>
#include <sys/errno.h>
#include <sioux.h>

#define INCLUDES_DONE
#define TCP_INCLUDES_DONE

#define GUSI                    /* Identifies changes made for GUSI */

#undef  HAVE_GETDOMAINNAME      /* STR */
#undef  HAVE_GETPASS
#undef  HAVE_GETWD

#define HAVE_GETCWD
#define USE_DIRENT
#define NO_GROUPS
#define GOT_READ_DIR

#undef  HAVE_TIMEZONE           /* STR */
#define NO_GMTOFF
#define HAVE_STRERROR
#define HAVE_GETHOSTNAME

#define d_ino           d_fileno        /* backward compatibility */

#define SLEEP(n)        GUSIDefaultSpin( SP_SLEEP, n/60)

#define MKDIR(a,b)      mkdir(a)

#define HAVE_STRFTIME           // added JTD:5/1/96
#define HAVE_MKTIME             // added JTD:5/1/96
#define HAVE_STRCHR             // added JTD:5/1/96
#define STDC_HEADERS            // added JTD:5/1/96
#define HAVE_MEMCPY             // added JTD:5/1/96
#define TTY_IS_SELECTABLE       // added JTD:5/1/96
#define HAVE_READDIR            // added JTD:5/1/96
#define HAVE_DIRENT_INO         // added JTD:5/1/96
#define HAVE_DIRENT_H           // added JTD:5/1/96

#endif

Received on Sunday, 30 June 1996 13:44:54 UTC