unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Cannot build guile 1.6.7 on Solaris 2.8 with gcc 4.0.2
@ 2005-10-11 14:35 Andrew Koenig
  2005-10-11 22:50 ` Kevin Ryde
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Koenig @ 2005-10-11 14:35 UTC (permalink / raw)


Solaris 2.8, guile 1.6.7, gcc 4.0.2

When I try to build, the build ultimately dies with the following:

guile.c: In function 'main':
guile.c:91: error: array type has incomplete element type
guile.c:91: warning: unused variable 'lt_preloaded_symbols'
make[2]: *** [guile.o] Error 1
make[2]: Leaving directory `/tmp/build-gnu28313/guile-1.6.4/libguile'

The relevant code from guile.c:

int
main (int argc, char **argv)
{
#ifdef DYNAMIC_LINKING
  /* libtool automagically inserts this variable into your executable... */
  extern const scm_lt_dlsymlist lt_preloaded_symbols[];  /* Line 91 */
  scm_lt_dlpreload_default (lt_preloaded_symbols);
#endif
  scm_boot_guile (argc, argv, inner_main, 0);
  return 0; /* never reached */
}

So apparently the compiler has gotten stricter about rejecting declarations
of incomplete types.  I imagine the fix is to insert a definition for
scm_lt_symlist before this line.




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


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

end of thread, other threads:[~2005-10-12  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 14:35 Cannot build guile 1.6.7 on Solaris 2.8 with gcc 4.0.2 Andrew Koenig
2005-10-11 22:50 ` Kevin Ryde
2005-10-12  0:57   ` Andrew Koenig

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