Subject: pkg/18077: xpm-3.4 does not build under sunos 5.8 with zoularis
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dolemite@wuli.nu>
List: netbsd-bugs
Date: 08/26/2002 09:36:45
>Number:         18077
>Category:       pkg
>Synopsis:       xpm-3.4 does not build under sunos 5.8 with zoularis
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 26 09:37:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alex Newman
>Release:        SUNOS 5.8
>Organization:
Psi Upsilon of Troy
>Environment:
SunOS unknown 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
>Description:
1) cc -c -Xc -xF -xcg92 -I.  -I/usr/openwin/include  -Dsun -Dsparc -DSVR4 -DSYSV     -O  data.c
/usr/ucb/cc:  language optional software package not installed
2) once you are using gcc you probably don't want -Xc -xF or -xcg92 as  it will break the build
3) also all of the Kpic should be changed to fpic	
>How-To-Repeat:
bmake
>Fix:
in the .if (${OPSYS} == SunOS) line
pre-build:
        for i in `find ./work -print | grep Makefile` ;do echo $$i; cat $$i  | s
ed s/CC\ \=\ cc/CC\ \=\ gcc/ |grep -v CCOPTIONS\ \=\ \-Xc | sed s/Kpic/fpic/ > $
$i.new ;mv $$i $$i.o ;mv $$i.new $$i ;done

>Release-Note:
>Audit-Trail:
>Unformatted: