Subject: Re: Trouble Building xpm
To: None <tech-pkg@netbsd.org>
From: J. Alexander Jacocks <jjacocks@mac.com>
List: tech-pkg
Date: 05/01/2004 23:17:46
OK, well, I managed to get it to build by doing the following:

1) sudo bmake configure CC=gcc IMAKE="/usr/openwin/bin/imake 
-DHasGcc2=YES -DHasGcc2ForCplusplus=YES -DUseInstalled 
-I/usr/pkg/lib/X11/config -I/usr/openwin/lib/X11/config"
2) edit all Makefile instances and replace -Kpic with -fpic
3) sudo bmake install CC=gcc IMAKE="/usr/openwin/bin/imake 
-DHasGcc2=YES -DHasGcc2ForCplusplus=YES -DUseInstalled 
-I/usr/pkg/lib/X11/config -I/usr/openwin/lib/X11/config"

Any ideas if there is an easy way to get this fixed?

Thanks!

On May 1, 2004, at 10:13 PM, J. Alexander Jacocks wrote:

> 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 
> VARNAME=IMAKE
> /usr/openwin/bin/imake -DHasGcc2=YES -DHasGcc2ForCplusplus=YES
>
> But, it is calling cc as if it was SunPro C:
>
> <snip>
> 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
> <snip>
>
> I can't find reference to this happening anywhere.
>
> Help!
>