Bug 6675

Summary: 2.3.94+ ALIGN macro uses __typeof__ gccism
Product: fontconfig Reporter: Tim Mooney <Tim.Mooney>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: high    
Version: 2.3   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Tim Mooney 2006-04-20 11:40:36 UTC
I ran into exactly the same set of problems on Solaris 10 with Sun's Studio 11
(C compiler version 5.8) as Christian reported on HP-UX in bug #6110 .

I applied Dom's "alignof-6110" patch (thanks Dom!) that's attached to that bug,
which improved things considerably, but now the issue is that the ALIGN macro in
fcint.h is using __typeof__, which also isn't generally supported beyond gcc.
The Sun compiler outputs this:

 cc -DHAVE_CONFIG_H -I. -I. -I.. -I/local/include/freetype2 -I/local/include
-DFONTCONFIG_PATH=\"/etc/local/fonts\" -I.. -I../src
-DPKGCACHEDIR=\"/local/var/cache/fontconfig\" -I/local/include -Xa -xO2
-xstrconst -KPIC -mt -xtarget=native -xarch=amd64 -I/local/include -c
fccharset.c  -KPIC -DPIC -o .libs/fccharset.o
"fccharset.c", line 1383: warning: implicit function declaration: __typeof__
"fccharset.c", line 1383: function designator is not of function type
"fccharset.c", line 1387: function designator is not of function type
"fccharset.c", line 1391: function designator is not of function type
"fccharset.c", line 1395: function designator is not of function type
"fccharset.c", line 1407: cannot recover from previous errors
cc: acomp failed for fccharset.c
gmake: *** [fccharset.lo] Error 1


Suggestions?

Note that I'm also seeing the other issue that Christian mentioned in bug #
6110, regarding fc-case not listing the fontconfig library as a dependency so
the link fails for fc-case.  I can't find any bug that Christian opened
regarding that issue, so I'll open a new one.
Comment 1 Patrick Lam 2006-04-20 13:11:34 UTC
This has already been fixed in CVS.  -rfc-2_4_branch.

Could you look at the iconv bugs?  bug 4083, bug 2774.  Thanks!  I'd like to fix
them but don't really know how.
Comment 2 Tim Mooney 2006-04-22 09:31:29 UTC
Thanks, and I would be happy to take a look at the iconv issues.  I don't
currently have GNU iconv installed, but I can get it installed if I need to for
testing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.