unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile-1.8.1 build fails at libguile/posix.c on Solaris2.6
@ 2007-05-10 15:04 anirkko
  2007-05-25 16:00 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: anirkko @ 2007-05-10 15:04 UTC (permalink / raw)
  To: bug-guile


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 ...
...


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: guile-1.8.1 build fails at libguile/posix.c on Solaris2.6
  2007-05-10 15:04 guile-1.8.1 build fails at libguile/posix.c on Solaris2.6 anirkko
@ 2007-05-25 16:00 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2007-05-25 16:00 UTC (permalink / raw)
  To: bug-guile

Hi,

anirkko@insel.ch writes:

> 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.

I believe this has been fixed in CVS:

  http://cvs.savannah.gnu.org/viewvc/guile/guile-core/libguile/posix.c?view=log&root=guile&pathrev=branch_release-1-8

Thanks,
Ludovic.



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-25 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-10 15:04 guile-1.8.1 build fails at libguile/posix.c on Solaris2.6 anirkko
2007-05-25 16:00 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).