Hi Guys,

I just wanted to share with you a configure error using opal trunk and linux.

I made a checkout in the OPAL trunk (I am using CentOS 6.5). After the configure command I've got this message:

$ make opt
cd /home/user/opal_trunk/ && aclocal
autoconf
configure.ac:138: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure:5992: error: possibly undefined macro: m4_bpatsubsts
make: ** [/home/user/opal_trunk/configure] Erro 1

To overcome this, I typed the following commands:

$ aclocal --force -I /usr/share/aclocal                                                                                                                  
$ autoconf

$ make opt

Then I've got the error:

checking where plugins are being installed... "${libdir}/opal-3.15.0"                                                                                                                                         
./configure: line 6343: syntax error near unexpected token `newline'                                                                                                                                          
./configure: line 6343: `  PKG_CHECK_MODULES('                                                                                                                                                                
configure: error: ./configure failed for plugins


Then I typed autoconf again and make opt was able to compile/link everything, but not the Opus plugin:

[LD] /home/user/opal_trunk/lib_linux_x86_64/plugins/opus/opus_ptplugin.so
/usr/bin/ld: /home/user/opal_trunk/plugins/audio/Opus/opus/.libs/libopus.a(celt.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/user/opal_trunk/plugins/audio/Opus/opus/.libs/libopus.a: could not read symbols: Bad value

To solve this, do the following:

export OPAL_PLATFORM_DIR=opal_dir
cd plugins/audio/Opus/opus/
make clean
./configure CFLAGS=-fPIC
cd ../../../../
make opt

Then OPAL is finally compiled.

Giovani