On 2012-02-28 13:48, Carlos E. R. wrote:
> So I’m attempting to download the git source, for which I had to install
> git first, and try to find what include could be missing by comparison of
> both files, and hoping there are no more broken codes 
Futile hope.
I looked at the “src/history/history.cpp” source code, and “backported” a
change:
#include <fstream>
Then attempted compile. And I got this:
> main.cpp: In function ‘int main(int, char**)’:
> main.cpp:85:91: warning: deprecated conversion from string constant to ‘char*’
> CXXLD libsflphone.la
> CXXLD sflphoned
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjnath-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsua-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjmedia-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-simple-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-ua-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjlib-util-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpj-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
> collect2: ld returned 1 exit status
> make[3]: *** [sflphoned] Error 1
> make[3]: Leaving directory `/home1/cer/Compilaciones/phone/sflphone/daemon/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home1/cer/Compilaciones/phone/sflphone/daemon/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home1/cer/Compilaciones/phone/sflphone/daemon'
> make: *** [all] Error 2
So I guess the configure forgot to check and request another bunch of
libraries 
Uh, no, the configure said something I thought I had done but perhaps not:
configure: Configuration done! Please make sure that pjsip library
(libs/pjproject) has already been compiled. Run `make' to build the software.
The INSTALL text says:
# Go to the root of the application core directory
cd daemon
# Compile pjsip
cd libs/pjproject
./configure
make
Make, but not install? It is indeed built. Ok, running install, creating an
rpm for it (checkinstall), installing the rpm… fails again:
> CXXLD sflphoned
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjnath-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsua-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjmedia-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-simple-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjsip-ua-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpjlib-util-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpj-x86_64-suse-linux-gnu
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
> collect2: ld returned 1 exit status
> make[3]: *** [sflphoned] Error 1
Same errors 
But they are installed:
/usr/local/lib/libpjnath-x86_64-unknown-linux-gnu.a
Or I’m mistaken.
I’m not very surprised the telephony repo is staying with an old version
and not compiling the current one. With so many dependencies and so many
problems…
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)