Subject: pkg/6746: xwave doesn't build
To: None <>
From: Lennart Augustsson <>
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
>Originator:     Lennart Augustsson
>Release:        NetBSD-current 990104
System: NetBSD 1.3I NetBSD 1.3I (DOGBERT) #0: Mon Dec 21 01:18:44 CET 1998 i386

	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
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 ./ ../../../man/
cp ./ ../../../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

	cd pkgsrc/audio/xwave; make
	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.