pkgsrc-Bugs archive

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

pkg/45934: graphics/libwebp on Solaris/i86



>Number:         45934
>Category:       pkg
>Synopsis:       graphics/libwebp on Solaris/i86
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 06 08:40:01 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Building graphics/libwebp on Solaris/i86 with lang/gcc34 yields

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. 
-I/pkgsrc/source/pkgsrc/graphics/libwebp/work.pkgsrc-i86/.buildlink/include 
-I/pkgsrc/source/pkgsrc/graphics/libwebp/work.pkgsrc-i86/.buildlink/gcc34/include
 -O -MT libwebpdsp_la-cpu.lo -MD -MP -MF .deps/libwebpdsp_la-cpu.Tpo -c cpu.c  
-fPIC -DPIC -o .libs/libwebpdsp_la-cpu.o
cpu.c: In function `x86CPUInfo':
cpu.c:35: error: can't find a register in class `BREG' while reloading `asm'
*** Error code 1

As far as I can tell, the other half of the #if block (starting line 24) should 
have been used, but as __pic__ is not defined, it isn't. Adding

CFLAGS.SunOS+= -D__pic__

to the Makefile fixes the problem for me. I guess it should be restricted even 
more (only i86, maybe only 32 bit, maybe only GCC 3), but I am not sure.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index