Subject: Build problems for liboil on netbsd-macppc
To: None <pkgsrc-users@netbsd.org>
From: Marco Righele <marco_righele@yahoo.it>
List: pkgsrc-users
Date: 09/03/2006 14:32:05
Trying to build liboil-0.3.6 on a G4 running netbsd-macppc 3.1_RC1 gives the following error.

 cc -DHAVE_CONFIG_H -I. -I../.. -Wall -Wa,-mregnames -D_BSD_SOURCE -D_GNU_SOURCE -O2 -O2 -O -pipe -MT libpowerpc_la-copy.lo -MD -MP -MF .deps/libpowerpc_la-copy.Tpo -c copy.c  -fPIC -DPIC -o .libs/libpowerpc_la-copy.o
{standard input}: Assembler messages:
{standard input}:37: Error: Unrecognized opcode: `lvsl'
{standard input}:38: Error: Unrecognized opcode: `lvx'
{standard input}:41: Error: Unrecognized opcode: `lvx'
{standard input}:42: Error: Unrecognized opcode: `vperm'
etc.

It seems that while Altivec is detected by configure, it is not enabled during building. 
So I added -maltivec to CFLAGS in /etc/mk.conf. With that, the port builds and install without problems.
Unfortunately, some other ports that depends on liboil won't work correctly, for example some gstreamer plugins.

If I run gst-inspect-0.10 --gst-debug-level=3, I can see several messages like the following:

WARN  (0x1824580 - 0:00:00.046078000)   GST_PLUGIN_LOADING( 7872) gstplugin.c(41 0):gst_plugin_load_file: module_open failed: /usr/pkg/lib/liboil-0.3.so.0: Unsup ported relocation type 10 in non-PLT relocations

Any idea on how to fix it ?

Thanks, 
Marco
--
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com