[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev --enable-persistent-cookies, Re: 2.8.1dev.18.patch.gz
From: |
Bela Lubkin |
Subject: |
lynx-dev --enable-persistent-cookies, Re: 2.8.1dev.18.patch.gz |
Date: |
Mon, 27 Jul 1998 16:51:14 -0700 |
T.E.Dickey wrote:
> * add RP's experimental persistent-cookie support, and configure option
> --enable-persistent-cookies, ifdef'd with EXP_PERSISTENT_COOKIES - TD
On SCO OpenServer Release 5.0.0, I have a compilation and a link problem
with this. At compile time:
cc -O3 -Kspace -DHAVE_CONFIG_H -I. -I.. -Ichrtrans -I./chrtrans
-I.. -I../src -I../WWW/Library/Implementation -belf -c ./LYCookie.c
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: oP "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
"./LYCookie.c", line 1850: error: non-constant initializer: op "U&"
Fixed that by making several buffers static:
=============================================================================
*** LYCookie.c.orig Fri Jul 24 20:01:03 1998
--- LYCookie.c Sun Jul 26 14:15:15 1998
***************
*** 1836,1843 ****
{
FILE *cookie_handle;
char buf[5000]; /* should be long enough for a cookie line */
! char domain[256], path[256], name[256], value[4100];
! char what[8], secure[8], expires_a[16];
int expires;
cookie_handle = fopen(cookie_file, "r+");
--- 1836,1843 ----
{
FILE *cookie_handle;
char buf[5000]; /* should be long enough for a cookie line */
! static char domain[256], path[256], name[256], value[4100];
! static char what[8], secure[8], expires_a[16];
int expires;
cookie_handle = fopen(cookie_file, "r+");
=============================================================================
Then I get a link error because my libc doesn't have strsep(). There's
a comment:
* 'fixed' by using strsep instead of strtok. No idea
* what kind of platform problems this might introduce. - RP
... the kind where some systems have it and some don't. I don't
understand what's being fixed by strsep() vs. strtok(), so can't propose
a concrete solution. Abstractly: either make do with strtok() or
provide a strsep.c and an appropriate test in configure...
>Bela<
- lynx-dev --enable-persistent-cookies, Re: 2.8.1dev.18.patch.gz,
Bela Lubkin <=