Subject: pkg/18430: xforms not using gcc well
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dolemite@wuli.nu>
List: netbsd-bugs
Date: 09/26/2002 09:27:07
>Number:         18430
>Category:       pkg
>Synopsis:       xforms not using gcc well
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 26 09:28:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alex Newman
>Release:        SunOS5.8
>Organization:
Psi Upsilon of Troy
>Environment:
SunOS unknown 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10

>Description:
1)if you do not have cc installed it will of course bomb
2) if you just replace the gcc with cc you will have a whole bunch dep cc -Xcg92 etc..
3) the mapfile isnt needed and causes compile to die
4) also i cleaned up the Makefile alot
even with CC=gcc look at all of these great bugs
cc -c -Xc -xF -xcg92    -Iprivate  -Ibitmaps  -I.  -Ifd  -I/usr/pkg/include -I/u sr/openwin/include  -Dsun -Dsparc -DSVR4 -DSYSV -DMAKING_FORMS      -g -O4  alig n.c
gcc: unrecognized option `-Xc'
gcc: language cg92 not recognized
gcc: align.c: linker input file unused since linking not done
mv align.o unshared/align.o
mv: cannot access align.o
*** Error code 2
make: Fatal error: Command failed for target `align.o'
Current working directory /usr/pkgsrc/x11/xforms/work/xforms-0.9999/lib
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /usr/pkgsrc/x11/xforms/work/xforms-0.9999
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/xforms
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/x11/xforms
4) here is what happens when you leave the mapfile in
*** Error code 1 (ignored)
*** Error code 2 (ignored)
rm -f libforms.so.0.9999~
LD_RUN_PATH=/usr/openwin/lib /usr/ccs/bin/ld -o libforms.so.0.9999~ -G -z tex-M mapfile -h libforms.so.0.9999 align.o  appwin.o  asyn_io.o  be.o  bitmap.obox.o  browser.o  button.o  canvas.o  chart.o  checkbut.o  child.o  choice.o lipboard.o  clock.o  cmd_br.o  colsel.o  counter.o  cursor.o  dial.o  display  errmsg.o  events.o  flcolor.o  fldraw.o  flresource.o  flvisual.o  fonts.o ormbrowser.o  forms.o  frame.o  free.o  fselect.o  goodie_alert.o  goodie_choe.o  goodie_input.o  goodie_msg.o  goodie_sinput.o  goodie_yesno.o  goodies.oimage.o  image_bmp.o  image_combine.o  image_convolve.o  image_crop.o  image_sp.o  image_fits.o  image_genesis.o  image_gif.o  image_gzip.o  image_io_filt.o  image_jpeg.o  image_jquant.o  image_marker.o  image_png.o  image_pnm.o  ige_postscript.o  image_proc.o  image_replace.o  image_rotate.o  image_scale.oimage_sgi.o  image_text.o  image_tiff.o  image_type.o  image_warp.o  image_xbo  image_xpm.o  image_xwd.o  input.o  interpol.o  keyboard.o  labelbut.o  lfre.o  lightbut.o  listdir.o  matrix.o  menu.o  n2a.o  objects.o  oneliner.o  pmap.o  positioner.o  postscript.o  ps_core.o  ps_draw.o  ps_text.o  read2lsbf  read2msbf.o  read4lsb.o  read4msb.o  readint.o  rgb_db.o  round3d.o  roundb.o  scrollbar.o  scrollbut.o  signal.o  simu.o  sldraw.o  slider.o  space.o  line.o  strdup.o  symbols.o  sysdep.o  tabfolder.o  text.o  textbox.o  thumbwel.o  timeout.o  timer.o  tooltip.o  util.o  valuator.o  version.o  vn_pair.ovstrcat.o  win.o  xdraw.o  xpopup.o  xsupport.o  xtext.o  xyplot.o   
mapfile: file not recognized: File truncated
*** Error code 1
make: Fatal error: Command failed for target `libforms.so.0.9999'
Current working directory /export/home/dolemite/porters/netbsd/pkgsrc/x11/xfos/work/xforms-0.9999/lib
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/dolemite/porters/netbsd/pkgsrc/x11/xfos/work/xforms-0.9999
*** Error code 1


>How-To-Repeat:
cd /usr/pkgsrc/x11/xforms
bmake clean
cvs update -d -P
bmake install
>Fix:
My working Makefile is here
http://host4.rpi.wulimasters.net/cgi-bin/cvsweb.cgi/netbsd/pkgsrc/x11/xforms/Makefile?cvsroot=porters
Please use the latest version
>Release-Note:
>Audit-Trail:
>Unformatted: