guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile 1.7.91 has been released.


From: Bill Schottstaedt
Subject: Re: Guile 1.7.91 has been released.
Date: Mon, 13 Feb 2006 04:49:25 -0800

In solaris 10, I think the readdir_r usage is incorrect.

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 -Wall -Wmissing-prototypes 
-MT filesys.lo -MD -
MP -MF .deps/filesy
s.Tpo -c filesys.c  -fPIC -DPIC -o .libs/filesys.o
filesys.c: In function `scm_readdir':
filesys.c:860: error: `NAME_MAX' undeclared (first use in this function)
filesys.c:860: error: (Each undeclared identifier is reported only once
filesys.c:860: error: for each function it appears in.)
filesys.c:863: error: too many arguments to function `readdir_r'

readdir_r is now:

     struct dirent *readdir_r(DIR *dirp, struct dirent *entry);

I changed filesys.c line 860 (or thereabouts) from:

    union {
      struct dirent ent;
      char pad1 [sizeof(struct dirent) + NAME_MAX];
      char pad2 [offsetof (struct dirent, d_name) + NAME_MAX + 1];
    } u;
    SCM_SYSCALL (readdir_r ((DIR *) SCM_CELL_WORD_1 (port), &u.ent, &rdent));

to:

    struct dirent ent;
    SCM_SYSCALL (readdir_r ((DIR *) SCM_CELL_WORD_1 (port), &ent));

and the rest went smoothly, although I had to remove -Werror from 
libguile/Makefile
because:

In file included from eval.c:5969:
eval.c: In function `deval':
eval.c:3248: warning: implicit declaration of function `alloca'
make[2]: *** [libguile_la-eval.lo] Error 1
make[2]: Leaving directory `/home/bil/test/guile-1.7.91/libguile'
make[1]: *** [all-recursive] Error 1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]