pkgsrc-Bugs archive

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

pkg/38555: databases/rrdtool build failure with Sun Studio 11



>Number:         38555
>Category:       pkg
>Synopsis:       databases/rrdtool build failure with Sun Studio 11
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 01 11:50:00 +0000 2008
>Originator:     NAKAJI Hiroyuki
>Release:        Solaris 10
>Organization:
>Environment:
SunOS janus.4407.kankyo-u.ac.jp 5.10 Generic_127111-11 sun4u sparc SUNW,Ultra-2 
Solaris
>Description:
rrdtool-1.2.27 fails with Sun's cc.

cc -DHAVE_CONFIG_H -I. -I.. 
-DRRD_DEFAULT_FONT=\"/usr/pkg/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf\" 
-DNUMVERS=1.2027 -DPNG_NO_ASSEMBLER_CODE 
-I/usr/pkgsrc/databases/rrdtool/work/.buildlink/include/freetype2 
-I/usr/pkgsrc/databases/rrdtool/work/.buildlink/include 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/include/libart-2.0 
-I/usr/include/freetype2 -O -KPIC -DPIC -c rrd_getopt.c  -KPIC -DPIC 
"/usr/include/iso/stdio_iso.h", line 190: identifier redeclared: rename
        current : function(pointer to char, pointer to char) returning int
        previous: function(pointer to const char, pointer to const char) 
returning int : "/usr/include/unistd.h", line 449
cc: acomp failed for rrd_getopt.c
>How-To-Repeat:
Set CC=/opt/SUNWspro/bin/cc and CFLAGS without -Xc.

cd /usr/pkgsrc/databases/rrdtool && bmake

>Fix:
rrdtool-1.2.27/src/rrd_getopt{,1}.c need change. This may be a bug of rrdtool 
itself.

I put the patch files in my website.
http://d4407.kankyo-u.ac.jp/~nakaji/NetBSD/pkgsrc/databases/rrdtool/patch-aa
and
http://d4407.kankyo-u.ac.jp/~nakaji/NetBSD/pkgsrc/databases/rrdtool/patch-ab



Home | Main Index | Thread Index | Old Index