Subject: mk/wrapper/transform-sunpro-cc problems
To: None <tech-pkg@netbsd.org>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: tech-pkg
Date: 07/09/2006 15:24:05
I installed binary distribution of XFree86-4.6.0 under /usr/X11R6. Now I'm
trying to build packages from pkgsrc and link them to XFree86 libs.

When building graphics/xpm I get the following error:

===> Configuring for xpm-3.4knb6
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/opt/pkg/lib/X11/config -I/usr/X11R6/lib/X11/config
cc: Warning: illegal option -ditional
cc: -a conflicts with -dy.
/opt/pkg.obj/graphics/xpm/work.ultra10-lan/.tools/bin/imake: Exit code 1.
  Stop.
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/graphics/xpm

Something (XFree86 imake) is passing SunPro C compiler '-traditional'
parameter, so I added the following line to mk/wrapper/transform-sunpro-cc
problems

######################################################################
# -traditional is not portable to non-GCC compilers
######################################################################
-traditional*)
        arg=
        msg_log $wrapperlog "   (transform-sunpro-cc) to: $arg"
        addtocache=yes
        ;;

However it does not seem to make a difference, xpm still fails with the same
error, even after I ran 'bmake clean && bmake package'

Any ideas how to resolve this?