Henry Zhang wrote:
> Hi there,
> 
> We are trying to find out the common issue when porting some open source
> project to OpenSolaris, which exist in core system, for example, some
> issue in compiler, libc, etc. So that these can be fixed in the core
> system, we don't need to keep much patches, and make the porting
> smoothly/easier later.

Common problems I've hit with X.Org packages, off the top of my head:

 - gcc assumptions, though Studio 12 with -features=extensions allows
   some of those to work now

   Other fixes I keep having to patch in/workaround
        gcc __FUNCTION__ (replace with c99 __func__)
        gcc __attributes__
        gcc inline asm()
        gcc MMX/SSE intrinsic functions not compatible with Studio versions
        gcc -Wall (convert to cc -v if __SUNPRO_C is defined)

 - missing libc functions, including strsep, strcasestr, asprintf
   (though some have been added in recent builds, more should be coming)

 - sprintf("%s", NULL) segfaults on Solaris, works fine on BSD/Linux
   (being fixed by 6724478)

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to