[bug-notifications] [guile_dev 0005069]: Compilation issue with guile and solaris studio

Mantis Bug Tracker noreply at opencsw.org
Sun Apr 21 18:47:36 CEST 2013


A NOTE has been added to this issue. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=5069 
====================================================================== 
Reported By:                yann
Assigned To:                
====================================================================== 
Project:                    guile_dev
Issue ID:                   5069
Category:                   
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-04-21 15:07 CEST
Last Modified:              2013-04-21 18:47 CEST
====================================================================== 
Summary:                    Compilation issue with guile and solaris studio
Description: 
Hi,

I am currently running into a compilation issue when trying to re-package
mailutils with guile support.

I've got the following error message at the configure step:

"/opt/csw/include/guile/2.0/libguile/gc.h", line 279: warning: implicit
function declaration: scm_remember_upto_here_1
"/opt/csw/include/guile/2.0/libguile/gc.h", line 320: identifier
redeclared: scm_remember_upto_here_1
         current : function(pointer to struct scm_unused_struct {char
scm_unused_field}) returning void
         previous: function() returning int :
"/opt/csw/include/guile/2.0/libguile/gc.h", line 279

This prevents me from enabling guile support.


Having a look at the source, it seems that when GNU GCC is not used,
scm_remember_upto_here_1 is used before being defined hence the error.

Can you have a look at this issue ?

Thanks in advance,

Yann







====================================================================== 

---------------------------------------------------------------------- 
 (0010355) yann (developer) - 2013-04-21 18:47
 https://www.opencsw.org/mantis/view.php?id=5069#c10355 
---------------------------------------------------------------------- 
The workaround is temporary ugly one.
I just define scm_remember_upto_here_before including the guile header.

extern void scm_remember_upto_here_1();


It seems the compiler will stop if a prototype is redefined with a
different return type but not different arguments (it will just be a
warning in that case).



More information about the bug-notifications mailing list