Problem found for hpux on config file parsing, FILENAME_MAX is the size
of the string for the lines read in from the config file.
loadcfg.c
--------------------------------------------------
void LoadConfig(char *file)
{
FILE *f;
char s[FILENAME_MAX];
char ss[FILENAME_MAX];
char s1[256],s2[256],s3[256];
--------------------------------------------------
As you can see below on linux that is 4095 bytes on solaris 1024 bytes
and on hpux only 14 bytes
for linux
/usr/include/stdio_lim.h:#define FILENAME_MAX 4095
for hpux
/usr/include/stdio.h:# define FILENAME_MAX 14
for solaris
/usr/include/stdio.h:#define FILENAME_MAX 1024
FILENAME_MAX is also used many other places in the code
[ghayes@ns1 enl-0.13.3] grep FILENAME_MAX *.c *.h
actions.c: char ss[FILENAME_MAX];
actions.c: char c1[FILENAME_MAX];
actions.c: char c2[FILENAME_MAX];
loadcfg.c: char ss[FILENAME_MAX];
loadcfg.c: char name[FILENAME_MAX];
loadcfg.c: char s[FILENAME_MAX];
loadcfg.c: char ss[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
states.c: char ss[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
states.c: char s1[FILENAME_MAX];
states.c: char ss[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
states.c: char s1[FILENAME_MAX];
states.c: char ss[FILENAME_MAX];
states.c: char sss[FILENAME_MAX];
states.c: char s[FILENAME_MAX];
suggest either a redefine of FILENAME_MAX on hpux or use of a differant
constant
On Mon, 27 Apr 1998, Titus Roth wrote:
> > I have compiled/installed these packages on solaris 2.5.1, hp-ux 10.20
> > and linux 2.0.33. But for now I will stick to solaris.
> >
> > Eterm-DR-0.8-pre6/
> > ImageMagick-4.0.5/
> > enl-0.13.3/
> > giflib-3.0/
> > imlib-1.3/
> > jpeg-6b/
> > libgr-2.0.13/
> > libpng-1.0.1/
> > tiff-v3.4/
> > zlib-1.1.2/
>
> Have you gotten enlightenment to run on HP-UX? I've compiled it, but
> it doesn't parse the config file. What's your secret?
>
Greg
-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop