Hi, I’m trying to build pjsip 2.9 on CentOS 6 which has gcc 4.4.7. It fails with this error… gcc -o ../bin/pjmedia-test-x86_64-unknown-linux-gnu \ output/pjmedia-test-x86_64-unknown-linux-gnu/codec_vectors.o output/pjmedia-test-x86_64-unknown-linux-gnu/jbuf_test.o output/pjmedia-test-x86_64-unknown-linux-gnu/main.o output/pjmedia-test-x86_64-unknown-linux-gnu/mips_test.o
output/pjmedia-test-x86_64-unknown-linux-gnu/vid_codec_test.o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_dev_test.o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_port_test.o output/pjmedia-test-x86_64-unknown-linux-gnu/rtp_test.o output/pjmedia-test-x86_64-unknown-linux-gnu/test.o
output/pjmedia-test-x86_64-unknown-linux-gnu/sdp_neg_test.o -lpjmedia-codec-x86_64-unknown-linux-gnu -lpjmedia-videodev-x86_64-unknown-linux-gnu -lpjmedia-audiodev-x86_64-unknown-linux-gnu -lpjmedia-x86_64-unknown-linux-gnu -lpjnath-x86_64-unknown-linux-gnu
-lpjlib-util-x86_64-unknown-linux-gnu -lpj-x86_64-unknown-linux-gnu -lsrtp-x86_64-unknown-linux-gnu -lresample-x86_64-unknown-linux-gnu -lgsmcodec-x86_64-unknown-linux-gnu -lspeex-x86_64-unknown-linux-gnu -lilbccodec-x86_64-unknown-linux-gnu -lyuv-x86_64-unknown-linux-gnu
-lwebrtc-x86_64-unknown-linux-gnu -lssl -lcrypto -luuid -lm -lrt -lpthread -lasound -L/home/Alan.Dennis/projects/MediaServer/pjproject-2/pjlib/lib -L/home/Alan.Dennis/projects/MediaServer/pjproject-2/pjlib-util/lib -L/home/Alan.Dennis/projects/MediaServer/pjproject-2/pjnath/lib
-L/home/Alan.Dennis/projects/MediaServer/pjproject-2/pjmedia/lib -L/home/Alan.Dennis/projects/MediaServer/pjproject-2/pjsip/lib -L/home/Alan.Dennis/projects/MediaServer/pjproject-2/third_party/lib /home/Alan.Dennis/projects/MediaServer/pjproject-2/third_party/lib/libwebrtc-x86_64-unknown-linux-gnu.a(cpu_features.o):(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' A quick search seemed to say that this error could be eliminated either by compiling with g++ instead of gcc and/or adding -lstdc++ at some point in the list of libraries. Before I set off working out how to do either of those, I thought I’d ask as someone is bound to know exactly where to do that
😉 gcc -v reports … gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) and this is CentOS 6 .. cat /etc/redhat-release CentOS release 6.8 (Final) Yes, it compiles fine on CentOS 7 / gcc 4.8.5, but there are legacy systems that need supporting too :-/ Thanks for any assistance Alan Dennis |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org