guile-devel
[Top][All Lists]
Advanced

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

Re: guile and visibility problems


From: Ludovic Courtès
Subject: Re: guile and visibility problems
Date: Thu, 03 Jul 2008 00:01:31 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi Patrick,

Sorry for the delay...

Patrick Horgan <address@hidden> writes:

> gcc (GCC) 4.3.1
> Linux dell 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686
> GNU/Linux

OK.  I had been using 4.2.3 until now, and I was able to reproduce the
problem with 4.3.1 (with 4.3, symbols not declared as `extern' are
considered as "common" symbols).

Can you try out the attached patch?  It seems to fix the problem for me.
To apply it:

  $ cd /path/to/guile
  $ patch -p1 < ,,no-common-symbols.diff

Thanks in advance,
Ludovic.

diff --git a/libguile/__scm.h b/libguile/__scm.h
index 76b4448..30077fd 100644
--- a/libguile/__scm.h
+++ b/libguile/__scm.h
@@ -101,9 +101,9 @@
  * as having "internal" linkage.  */
 #if (defined __GNUC__) && \
   ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ == 3))
-# define SCM_INTERNAL  __attribute__ ((__visibility__ ("internal")))
+# define SCM_INTERNAL  extern __attribute__ ((__visibility__ ("internal")))
 #else
-# define SCM_INTERNAL
+# define SCM_INTERNAL  extern
 #endif
 
 

reply via email to

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