Subject: pkg/28321: audio/festival does not build on NetBSD/i396 -current
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <andreas@planix.com>
List: pkgsrc-bugs
Date: 11/15/2004 14:53:01
>Number:         28321
>Category:       pkg
>Synopsis:       audio/festival does not build on NetBSD/i396 -current
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 15 14:53:01 +0000 2004
>Originator:     Andreas Wrede <andreas@planix.com>
>Release:        NetBSD 2.99.10
>Organization:
Planix, Inc.
>Environment:
	
	
System: NetBSD woffi.planix.com 2.99.10 NetBSD 2.99.10 (WOFFI) #0: Wed Nov 10 11:26:34 EST 2004 root@woffi.planix.com:/m5/netbsd-current/obj.i386/sys/arch/i386/compile/WOFFI i386
Architecture: i386
Machine: i386
>Description:
	audio/festival build fails with compile errors, apparently because
the source is not compatible with the default gcc (3.3.3) compiler.

Adding 
GCC_REQD=       2.95.3
USE_PKGSRC_GCC= yes
to the Makefile gets a lot further but eventually fails with

gcc -c -fno-implicit-templates -fguiding-decls -O3 -Wall -I../../../src/include -I../../../../speech_tools/include find_inits.cc
gcc -O3 -Wall -o find_inits find_inits.o -L../../../../speech_tools/lib -lestools -L../../../../speech_tools/lib -lestbase -L../../../../speech_tools/lib -leststring -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -laudio -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lX11 -lXt -lSM -lICE -ltermcap -lm -lstdc++
Making init_modules.cc
LD_LIBRARY_PATH='../../../speech_tools/lib::' utilities/find_inits utilities Lexicon base Duration Intonation Text UniSyn donovan parser UniSyn_diphone  rxp  OGIcommon  OGIdbase  OGIresLPC > init_modules.cc
Undefined symbol "cerr" referenced from COPY relocation in utilities/find_inits

It looks like an incorrect libstd++ gets linked, causing the  undefined cerr error:
$ ldd src/modules/utilities/find_inits
src/modules/utilities/find_inits:
        -laudio.2 => /usr/pkg/lib/libaudio.so.2
        -lX11.6 => /usr/X11R6/lib/libX11.so.6
        -lICE.6 => /usr/X11R6/lib/libICE.so.6
        -lSM.6 => /usr/X11R6/lib/libSM.so.6
        -lXt.6 => /usr/X11R6/lib/libXt.so.6
        -ltermcap.0 => /usr/lib/libtermcap.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
        -lstdc++ => /usr/lib/libstdc++.so
        -lc.12 => /usr/lib/libc.so.12


>How-To-Repeat:
	on a NetBSD/i386 -current (2.99.10) system:
	cd /usr/pkgsrc/audio/festival
	make
>Fix:
Unknown

>Unformatted: