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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-guile

Reply via email to