Subject: Trouble Building xpm
To: None <>
From: J. Alexander Jacocks <>
List: tech-pkg
Date: 05/01/2004 22:13:48
I seem to be having problems with imake, especially with the xpm 
package.  It doesn't seem to correctly setup gcc (3.3.3nb1 from pkgsrc) 
when compiling the package.

However, the IMAKE variable looks OK:

ajacocks@achilles[/usr/pkgsrc/graphics/xpm]$ sudo bmake show-var 
/usr/openwin/bin/imake -DHasGcc2=YES -DHasGcc2ForCplusplus=YES

But, it is calling cc as if it was SunPro C:

makedepend  -- -I.  -I/usr/pkg/include  -Dsun -Dsparc -DSVR4 -DSYSV     
     -- data.c create.c misc.c rgb.c scan.c parse.c hashtab.c  
CrBufFrI.c CrDatFrP.c CrPFrBuf.c RdFToI.c WrFFrI.c  CrBufFrP.c 
CrIFrBuf.c CrPFrDat.c RdFToP.c WrFFrP.c  CrDatFrI.c CrIFrDat.c 
RdFToDat.c WrFFrDat.c  Attrib.c CrIFrP.c CrPFrI.c Image.c Info.c 
RdFToBuf.c WrFFrBuf.c
depending in ./sxpm...
makedepend  -- -I../X11 -I..  -I/usr/pkg/include  -Dsun -Dsparc -DSVR4 
-DSYSV      -- sxpm.c
depending in ./cxpm...
makedepend  -- -I../X11 -I..  -I/usr/pkg/include  -Dsun -Dsparc -DSVR4 
-DSYSV      -- cxpm.c
===> Building for xpm-3.4knb1
making all in ./lib...
rm -f data.o unshared/data.o
cc -c -Xc -xF -xcg92 -I.  -I/usr/pkg/include  -Dsun -Dsparc -DSVR4 
-DSYSV     -O  data.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: data.c: linker input file unused because linking not done

I can't find reference to this happening anywhere.