bug-guile
[Top][All Lists]
Advanced

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

guile-1.8.1 build fails at libguile/posix.c on Solaris2.6


From: anirkko
Subject: guile-1.8.1 build fails at libguile/posix.c on Solaris2.6
Date: Thu, 10 May 2007 17:04:28 +0200 (MET DST)

Hi
The guile-1.8.1 build also fails at libguile/stime.c on Solaris2.6
(see output below; configured with --without-threads which was necessary
because the default --with-threads also didn't work, see previous reports).

Reason:  variable len is not declared, because the declaration
is in a "#ifdef __MINGW32__" and the condition that determines
whether the variable is used or not is a "#ifdef HAVE_UNSETENV" / "#else"
Thus, if both Macros are undefined, the error results.

Workaround:

replace the #else
with
  #endif
  #ifdef __MINGW32__

Then it builds, but maybe it should be checked if it does what it should...?

Arto


output of 'gmake':
---------------------------------------------------------------
...
gcc -DHAVE_CONFIG_H -I. -I/_mnt/hd32/package/build/guile-1.8.1/libguile -I.. 
-I.. -I/_mnt/hd32/package/build/guile-1.8.1 -O2 -funswitch-loops 
-fgcse-after-reload -mcpu=supersparc -mno-app-regs -Wall -Wmissing-prototypes 
-Werror -MT posix.lo -MD -MP -MF .deps/posix.Tpo -c 
/_mnt/hd32/package/build/guile-1.8.1/libguile/posix.c -o posix.o
/_mnt/hd32/package/build/guile-1.8.1/libguile/posix.c: In function 'scm_putenv':
/_mnt/hd32/package/build/guile-1.8.1/libguile/posix.c:1332: error: 'len' 
undeclared (first use in this function)
/_mnt/hd32/package/build/guile-1.8.1/libguile/posix.c:1332: error: (Each 
undeclared identifier is reported only once
/_mnt/hd32/package/build/guile-1.8.1/libguile/posix.c:1332: error: for each 
function it appears in.)
gmake[3]: *** [posix.lo] Error 1
gmake[3]: Leaving directory ...
...




reply via email to

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