pkgsrc-Bugs archive

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

pkg/43947: audio/libaudiofile-0.2.7 fails to build with sun c compiler



>Number:         43947
>Category:       pkg
>Synopsis:       audio/libaudiofile-0.2.7 fails to build with sun c compiler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 06 08:40:00 +0000 2010
>Originator:     Daniel Vergien
>Release:        pkgsrc-current
>Organization:
private
>Environment:
SunOS pkgsrc 5.10 Generic_142910-17 i86pc i386 i86pc
>Description:
libaudiofile fails with these error:

===> Building for libaudiofile-0.2.7
/opt/pkgsrc-sunspro-current/bin/bmake  all-recursive
Making all in libaudiofile
Making all in modules
source='g711.c' object='g711.lo' libtool=yes  DEPDIR=.deps depmode=none 
/bin/bash ../../depcomp  /bin/bash ../../libtool --tag=CC --mode=compile cc 
-DHAVE_CONFIG_H  -I. -I. -I../.. -I./..    -DNDEBUG -O -c -o g711.lo g711.c
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../.. -I./.. -DNDEBUG -O -c g711.c  
-KPIC -DPIC -o .libs/g711.o
"/usr/include/stdbool.h", line 42: #error: "Use of <stdbool.h> is valid only in 
a c99 compilation environment."
cc: acomp failed for g711.c
*** Error code 1

>How-To-Repeat:

>Fix:
Add these lines to Makefile:

.include "../../mk/compiler.mk"
# SunPro needs -xc99 to compile c99 code
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+=              -xc99=all
.endif



Home | Main Index | Thread Index | Old Index