Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 237327

Summary: make dev-libs/xmlrpc-c build in a solaris prefix
Product: Gentoo/Alt Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: Prefix SupportAssignee: Gentoo non-Linux Team <alt>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Solaris   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 236740    

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2008-09-10 14:01:50 UTC
Trying to build dev-libs/xmlrpc-c in a sparc-solaris prefix will fail because /usr/include/sys/time.h needs -std=c99
 


Reproducible: Always

Steps to Reproduce:
1. emerge dev-libs/xmlrpc-c

Actual Results:  
In file included from /usr/include/sys/time.h:24,                                                                   
                 from select.c:10:                                                                                  
/home/pub/lib/gentoo-prefix/usr/lib/gcc/sparc-sun-solaris2.10/4.2.4/include/sys/feature_tests.h:345:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications        require the use of c99"
make[2]: *** [select.o] Error 1

Expected Results:  
build successfully
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-09-10 14:04:12 UTC
patch to make it build:

--- xmlrpc-c-1.14.07-r1.ebuild  2008-09-10 16:03:22.582081534 +0200
+++ xmlrpc-c-1.14.07-r2.ebuild  2008-09-10 15:57:29.746900631 +0200
@@ -52,7 +52,7 @@

        # Respect the user's LDFLAGS.
        export LADD=${LDFLAGS}
-       export CFLAGS_PERSONAL=${CFLAGS}
+       export CFLAGS_PERSONAL="${CFLAGS} -std=c99"
        econf   --disable-wininet-client \
                --enable-libxml2-backend \
                --disable-libwww-client \
Comment 2 Fabian Groffen gentoo-dev 2008-09-10 20:58:20 UTC
didn't I fix this just yesterday?
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2008-09-10 23:25:03 UTC
You are right, it is fixed now. I didn't sync today so I missed it. I guess xmlrpc-c can be keyworded ~sparc-solaris too.
Comment 4 Fabian Groffen gentoo-dev 2008-09-11 07:05:23 UTC
keyworded, thanks