Subject: pkg/6746: xwave doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 01/06/1999 20:18:15
>Number:         6746
>Category:       pkg
>Synopsis:       xwave doesn't build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan  6 11:35:00 1999
>Last-Modified:
>Originator:     Lennart Augustsson
>Organization:
>Release:        NetBSD-current 990104
>Environment:
System: NetBSD dogbert.cs.chalmers.se 1.3I NetBSD 1.3I (DOGBERT) #0: Mon Dec 21 01:18:44 CET 1998 augustss@dogbert.cs.chalmers.se:/usr/src/sys/arch/i386/compile/DOGBERT i386


>Description:
	the audio/xwave package doesn't build successfully (this is not
	a new problem, I've never been able to build it).  Here's the
	message:
gcc -o xwave -O2      -L/usr/X11R6/lib xwave.o filebrowse.o menu.o fileop.o edit.o graphics.o button.o       audio.o sample_settings.o misc.o status.o record_dialog.o       audio_file.o aifc.o effects.o help.o riff.o au.o -lossaudio -L../lib -lfwf -lXaw -lXpm -lXmu -lXt -lX11 -L../ccitt -lccitt -L../adpcm2pcm -ladpcm -L../ieee -lieee -lm -lc    -lgnumalloc  -R/usr/X11R6/lib
Toggle.o: Undefined symbol `_xfwfButtonClassRec' referenced from text segment
Toggle.o: Undefined symbol `_xfwfButtonClassRec' referenced from data segment

	Poking around a little bit show that the reason is that the Button
	class is never added to the fwf archive.

building objects in FWF/src/Button...
rm -f Button.o
gcc -c -I../../../include -I/usr/X11R6/include -O2     -I/usr/X11R6/include   -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   Button.c
rm -f ButtonT.o
gcc -c -I../../../include -I/usr/X11R6/include -O2     -I/usr/X11R6/include   -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   ButtonT.c
cp ./Button.man ../../../man/Button.man
cp ./ButtonT.man ../../../man/ButtonT.man

	Compare this with compiling in the Label directory where the object
	file IS added to the archive.

building objects in FWF/src/Label...
rm -f Label.o
gcc -c -I../../../include -I/usr/X11R6/include -O2     -I/usr/X11R6/include   -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   Label.c
rm -f LabelT.o
gcc -c -I../../../include -I/usr/X11R6/include -O2     -I/usr/X11R6/include   -DCSRG_BASED   -DFUNCPROTO=15 -DNARROWPROTO   LabelT.c
Adding Label.o To Library ../../../lib/libfwf.a
ar r ../../../lib/libfwf.a Label.o
ranlib ../../../lib/libfwf.a

>How-To-Repeat:
	cd pkgsrc/audio/xwave; make
>Fix:
	I have no clue.  The Button and Label Imakefiles look the same to
	me, so I don't know why one works, but not the other.
>Audit-Trail:
>Unformatted: