Subject: pkg/34176: audio/festival in the pkgsrc-2006Q2 branch doesn't build on I386 platform under NetbSD-3.0
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
List: pkgsrc-bugs
Date: 08/09/2006 15:10:00
>Number:         34176
>Category:       pkg
>Synopsis:       audio/festival under NetBSD-3.0 on the I386 platform fails to build with C++ errors.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 09 15:10:00 +0000 2006
>Originator:     Brian Buhrow
>Release:        NetBSD 3.0_STABLE
>Organization:
	
>Environment:
	
	
System: NetBSD lothlorien.nfbcal.org 3.0_STABLE NetBSD 3.0_STABLE (NFBNETBSD) #0: Tue Jan 31 14:45:08 PST 2006 buhrow@lothlorien.nfbcal.org:/usr/src/sys/arch/i386/compile/NFBNETBSD i386
Architecture: i386
Machine: i386
>Description:
	When trying to build audio/festival, I get the following errors:

make est_mainline from est_mainline-in
Making in directory ./main ...
making dependencies -- ch_lab_main.cc ch_track_main.cc ch_wave_main.cc na_play_main.cc na_record_main.cc sigfilter_main.cc sig2fv_main.cc spectgen_main.cc pda_main.cc pitchmark_main.cc ngram_test_main.cc ngram_build_main.cc tilt_synthesis_main.cc tilt_analysis_main.cc viterbi_main.cc dp_main.cc bcat_main.cc ch_utt_main.cc fringe_client_main.cc design_filter_main.cc align_main.cc siod_main.cc wagon_main.cc wagon_test_main.cc scfg_make_main.cc scfg_train_main.cc scfg_test_main.cc scfg_parse_main.cc wfst_build_main.cc wfst_run_main.cc wfst_train_main.cc ols_main.cc ols_test_main.cc xml_parser_main.cc 
g++ -c  -fno-implicit-templates  -O3 -Wall -Wno-non-template-friend -Wno-deprecated           -I../include      -o ch_lab_main.o ch_lab_main.cc
g++ -O3 -Wall -o ch_lab ch_lab_main.o -L../lib -lestools -L../lib -lestbase -L../lib -leststring -ltermcap -lm -lstdc++
ch_lab_main.o(.text+0xffa): In function `main':
: undefined reference to `cerr'
ch_lab_main.o(.text+0xfff): In function `main':
: undefined reference to `ostream::operator<<(char const*)'
ch_lab_main.o(.text+0x1015): In function `main':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0x2bb): In function `init_lib_ops(EST_Option&, EST_Option&)':
: undefined reference to `cout'
../lib/libestbase.a(cmd_line.o)(.text+0xbd8): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xbf2): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xbf7): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0xc77): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xc91): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xc96): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0xe1c): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xe36): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xe3b): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0xebe): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xed8): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0xedd): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0x1011): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0x102b): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0x1030): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'
../lib/libestbase.a(cmd_line.o)(.text+0x115c): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `cerr'
../lib/libestbase.a(cmd_line.o)(.text+0x1204): In function `parse_command_line(int, char**, EST_String const&, EST_TList<EST_String>&, EST_Option&, int)':
: undefined reference to `ostream::operator<<(char const*)'

	I have a feeling this is a simple error, but I don't understand the
structure of Festival enough to know exactly what to try to fix the
problem.  It's possible there's a problem with the C++ environment here,
but I doubt it, since I'm able to build and use other C++ programs.
	I'd use a pre-built binary package, but I haven't found any pre-built
versions of Festival.  Also, this problem has existed since at least the
pkgsrc-2005Q4 branch of the pkgsrc tree.

>How-To-Repeat:
	
	
cd /usr/pkgsrc/audio/festival
make >& make.log
... wait...
Check the last 2/3rd of the make.log file, you'll find the errors.

>Fix:
	
	I don't know at this point, I'll post if I figure it out.

>Unformatted: