opensuse12.3 and pwlib_v1_11_0 = Please help me compile

Hi All

opensuse12.3 ( x86 ). ( under opensuse12.1 was all ok )

Have Error when compile pwlib_v1_11_0. Please, help me resolver this problem.

This is Error:

asterisk@asterisk02:/usr/local/src/asterisk/pwlib_v1_11_0> make
make P_SHAREDLIB=1 opt
make[1]: Entering directory `/usr/local/src/asterisk/pwlib_v1_11_0'
set -e; make -C src/ptlib/unix opt; make -C plugins opt;
make[2]: Entering directory `/usr/local/src/asterisk/pwlib_v1_11_0/src/ptlib/unix'
g++ -D_REENTRANT -Wall  -fPIC -DPIC -I/usr/local/src/asterisk/pwlib_v1_11_0/include -Os   -felide-constructors -Wreorder -c ../../ptclib/pldap.cxx -o /usr/local/src/asterisk/pwlib_v1_11_0/lib/obj_linux_x86_r/pldap.o
In file included from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/timer.h:133:0,
                 from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib.h:175,
                 from ../../ptclib/pldap.cxx:95:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/notifier.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/notifier.h:42:18: warning: the address of ‘obj’ will always evaluate as ‘true’ -Waddress]
In file included from ../../ptclib/pldap.cxx:98:0:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptclib/pldap.h: In static member function ‘static PLDAPStructBase& PLDAPStructBase::GetInitialiser()’:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptclib/pldap.h:506:57: warning: the address of ‘PLDAPStructBase::initialiserInstance’ will always evaluate as ‘true’ -Waddress]
g++ -D_REENTRANT -Wall  -fPIC -DPIC -I/usr/local/src/asterisk/pwlib_v1_11_0/include -Os   -felide-constructors -Wreorder -c ../../ptclib/pils.cxx -o /usr/local/src/asterisk/pwlib_v1_11_0/lib/obj_linux_x86_r/pils.o
In file included from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/timer.h:133:0,
                 from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib.h:175,
                 from ../../ptclib/pils.cxx:49:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/notifier.h: In constructor ‘PNotifierFunction::PNotifierFunction(void*)’:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/notifier.h:42:18: warning: the address of ‘obj’ will always evaluate as ‘true’ -Waddress]
In file included from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptclib/pils.h:52:0,
                 from ../../ptclib/pils.cxx:51:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptclib/pldap.h: In static member function ‘static PLDAPStructBase& PLDAPStructBase::GetInitialiser()’:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptclib/pldap.h:506:57: warning: the address of ‘PLDAPStructBase::initialiserInstance’ will always evaluate as ‘true’ -Waddress]
In file included from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/contain.h:796:0,
                 from /usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib.h:158,
                 from ../../ptclib/pils.cxx:49:
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/array.h: In instantiation of ‘void PScalarArray<T>::ReadElementFrom(std::istream&, PINDEX) [with T = short unsigned int; std::istream = std::basic_istream<char>; PINDEX = int]’:
../../ptclib/pils.cxx:160:1:   required from here
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/array.h:635:9: error: ‘SetAt’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation -fpermissive]
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/array.h:635:9: note: declarations in dependent base ‘PBaseArray<short unsigned int>’ are not found by unqualified lookup
/usr/local/src/asterisk/pwlib_v1_11_0/include/ptlib/array.h:635:9: note: use ‘this->SetAt’ instead
make[2]: *** [/usr/local/src/asterisk/pwlib_v1_11_0/lib/obj_linux_x86_r/pils.o] Error 1
make[2]: Leaving directory `/usr/local/src/asterisk/pwlib_v1_11_0/src/ptlib/unix'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/usr/local/src/asterisk/pwlib_v1_11_0'
make: *** [optshared] Error 2
asterisk@asterisk02:/usr/local/src/asterisk/pwlib_v1_11_0> 


Serg

And why do you want to compile it?
openSUSE 12.3 already contains pwlib-1.11.0…

To fix your compile problem, you would need this patch I guess:
https://build.opensuse.org/package/view_file/openSUSE:12.3/pwlib/pwlib-gcc47.patch?expand=1
Also have a look at the other patches included in the openSUSE package, click on “Overview” on that page.

Thank you !

At this yime compile OK !

Serg