Subject: Libvisual on powerpc
To: None <tech-pkg@netbsd.org>
From: Davide Zanon <d.zanon@ininito.it>
List: tech-pkg
Date: 04/11/2005 13:00:06
Hello!
I'm having problems building audio/libvisual on a 2.0 macppc system
The error is at
lv_cpu.c:426:24: #if with no expression
I tried to read that file, and the lines are

#if VISUAL_ARCH_POWERPC
	check_os_altivec_support ();
#endif /* VISUAL_ARCH_POWERPC */

I know absolutely nothing decent about C (only the very basics), so I thought 
"why above every if clause is like #if defined(VAR)?" and tried to modify the 
lines to

#if defined(VISUAL_ARCH_POWERPC)
	check_os_altivec_support ();
#endif /* VISUAL_ARCH_POWERPC */

but it still fails the next step:

 cc -DHAVE_CONFIG_H -I. -I.. -I../libvisual 
-I/usr/pkgsrc/audio/libvisual/work/.buildlink/include 
-DPLUGPATH=\"/usr/pkg/lib/libvisual\" -O2 -MT lv_cpu.lo -MD -MP 
-MF .deps/lv_cpu.Tpo -c lv_cpu.c  -fPIC -DPIC -o .libs/lv_cpu.o
/var/tmp//ccrKifEk.s: Assembler messages:
/var/tmp//ccrKifEk.s:175: Error: Unrecognized opcode: `vand'

Can you help me, please? Thank you very much (I hope this is not the wrong 
list, but I don't know...:)

davide