pkgsrc-Bugs archive

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

pkg/40660: print/libpaper does not compile with Sun Studio Compiler



>Number:         40660
>Category:       pkg
>Synopsis:       print/libpaper does not compile with Sun Studio Compiler
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 16 09:50:00 +0000 2009
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
SunOS opensolaris 5.11 snv_101b i86pc i386 i86pc

>Description:
print/libpaper fails on OpenSolaris 11 with Sun Studio Compiler:

 cc -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -O -c paper.c  -KPIC -DPIC -o 
.libs/libpaper_la-paper.o
"paper.c", line 50: identifier redeclared: papername
        current : function(pointer to const struct paper {pointer to const char 
name, double pswidth, double psheight}) returning pointer to const char
        previous: function() returning pointer to char : "paper.h", line 46
"paper.c", line 65: identifier redeclared: paperfirst
        current : function(void) returning pointer to const struct paper 
{pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 58
"paper.c", line 69: identifier redeclared: paperlast
        current : function(void) returning pointer to const struct paper 
{pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 59
"paper.c", line 80: identifier redeclared: papernext
        current : function(pointer to const struct paper {pointer to const char 
name, double pswidth, double psheight}) returning pointer to const struct paper 
{pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 60
"paper.c", line 85: identifier redeclared: paperprev
        current : function(pointer to const struct paper {pointer to const char 
name, double pswidth, double psheight}) returning pointer to const struct paper 
{pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 62
"paper.c", line 90: identifier redeclared: defaultpapersizefile
        current : function(void) returning pointer to const char
        previous: function() returning pointer to char : "paper.h", line 50
"paper.c", line 94: identifier redeclared: systempapersizefile
        current : function(void) returning pointer to const char
        previous: function() returning pointer to char : "paper.h", line 51
"paper.c", line 111: identifier redeclared: defaultpapername
        current : function(void) returning pointer to const char
        previous: function() returning pointer to char : "paper.h", line 52
"paper.c", line 213: identifier redeclared: paperinfo
        current : function(pointer to const char) returning pointer to const 
struct paper {pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 54
"paper.c", line 226: identifier redeclared: paperwithsize
        current : function(double, double) returning pointer to const struct 
paper {pointer to const char name, double pswidth, double psheight}
        previous: function() returning pointer to struct paper {pointer to 
const char name, double pswidth, double psheight} : "paper.h", line 55
cc: acomp failed for paper.c
*** Error code 1

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index