[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile-1.8.1 build fails at libguile/filesys.c on Solaris2.6
From: |
anirkko |
Subject: |
guile-1.8.1 build fails at libguile/filesys.c on Solaris2.6 |
Date: |
Thu, 10 May 2007 16:51:35 +0200 (MET DST) |
Hi
The guile-1.8.1 build fails at libguile/filesys.c on Solaris2.6
(see output below).
Reason: in file libguile/_scm.h, the wrong selection is taken in
#if HAVE_STAT64
#define CHOOSE_LARGEFILE(foo,foo64) foo64
#else
#define CHOOSE_LARGEFILE(foo,foo64) foo
#endif
When that is corrected, dirent_r is called with too many arguments,
etc...
workarounds (quick and dirty):
insert
#undef HAVE_STAT64
before the above block in file libguile/_scm.h
and remove / comment out
//### #define _GNU_SOURCE /* ask glibc for everything */
//### #define _LARGEFILE64_SOURCE /* ask for stat64 etc */
and insert
#define __EXTENSIONS__ (or #define _REENTRANT ?)
#define _POSIX_PTHREAD_SEMANTICS
#include <sys/types.h>
#include <dirent.h>
in file libguile/filesys.c
With that, the build continues - but there must be a better way
with a corrected configure...
Arto
output of 'gmake':
---------------------------------------------------------------
...
gcc -DHAVE_CONFIG_H -I. -I/build/guile-1.8.1/libguile -I.. -I..
-I/build/guile-1.8.1 -O2 -funswitch-loops -fgcse-after-reload -mcpu=supersparc
-mno-app-regs -Wall -Wmissing-prototypes -Werror -MT filesys.lo -MD -MP -MF
.deps/filesys.Tpo -c /build/guile-1.8.1/libguile/filesys.c -o filesys.o
cc1: warnings being treated as errors
/build/guile-1.8.1/libguile/filesys.c: In function 'scm_readdir':
/build/guile-1.8.1/libguile/filesys.c:916: warning: implicit declaration of
function 'readdir64_r'
gmake[3]: *** [filesys.lo] Error 1
gmake[3]: Leaving directory ...
...
...
- guile-1.8.1 build fails at libguile/filesys.c on Solaris2.6,
anirkko <=