Re: Unable to compile since changeset 5360

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ming,


This works correctly for Fedora 23 however on CentOS I am getting the following error:


                ../../yuv/source/rotate_win.cc

g++ -c -fomit-frame-pointer -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC    -I. -I../../yuv/include -I../../../pjlib/include \

                -o output/libyuv-x86_64-unknown-linux-gnu/row_any.o \

                ../../yuv/source/row_any.cc

g++ -c -fomit-frame-pointer -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC    -I. -I../../yuv/include -I../../../pjlib/include \

                -o output/libyuv-x86_64-unknown-linux-gnu/row_common.o \

                ../../yuv/source/row_common.cc

../../yuv/source/row_common.cc: In function ‘void libyuv::YuvPixel(uint8, uint8, uint8, uint8*, uint8*, uint8*, const libyuv::YuvConstants*)’:

../../yuv/source/row_common.cc:1256: error: invalid types ‘const signed char __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1257: error: invalid types ‘const signed char __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1258: error: invalid types ‘const signed char __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1259: error: invalid types ‘const signed char __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1260: error: invalid types ‘const short int __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1261: error: invalid types ‘const short int __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1262: error: invalid types ‘const short int __vector__[int]’ for array subscript

../../yuv/source/row_common.cc:1263: error: invalid types ‘const short int __vector__[int]’ for array subscript

make[3]: *** [output/libyuv-x86_64-unknown-linux-gnu/row_common.o] Error 1

make[3]: Leaving directory `/usr/src/pjproject-trunk_REV5378/third_party/build/yuv'

make[2]: *** [libyuv-x86_64-unknown-linux-gnu.a] Error 2

make[2]: Leaving directory `/usr/src/pjproject-trunk_REV5378/third_party/build/yuv'

make[1]: *** [all] Error 1

make[1]: Leaving directory `/usr/src/pjproject-trunk_REV5378/third_party/build'

make: *** [all] Error 1

[root@inbound04 pjproject-trunk_REV5378]# svn info

Path: .

URL: http://svn.pjsip.org/repos/pjproject/trunk

Repository Root: http://svn.pjsip.org/repos

Repository UUID: 74dad513-b988-da41-8d7b-12977e46ad98

Revision: 5378

Node Kind: directory

Schedule: normal

Last Changed Author: ming

Last Changed Rev: 5378

Last Changed Date: 2016-07-11 01:51:12 +0100 (Mon, 11 Jul 2016)


Kind regards,


Ross




From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> on behalf of Ming <ming@xxxxxxxxx>
Sent: 11 July 2016 01:52
To: pjsip list
Subject: Re: Unable to compile since changeset 5360
 
Ah, alright. This only happens when building shared library. We just fixed this in r5378 (https://trac.pjsip.org/repos/changeset/5378). Thanks for the report.

Regards,
Ming

On Fri, Jul 8, 2016 at 8:27 PM, George Joseph <gjoseph@xxxxxxxxxx> wrote:
I can confirm on Fedora 24.


---------- Forwarded message ----------
From: Ross Beer <ross.beer@xxxxxxxxxxx>
Date: Fri, Jul 8, 2016 at 2:13 AM
Subject: Re: Unable to compile since changeset 5360
To: pjsip list <pjsip@xxxxxxxxxxxxxxx>


Hi Ming,


I have re-tested on CentOS 7 and Fedora 23 using the following steps and both OS fail to build enen thoug previous versions such as SVN 5353 work without issue:


cd pjproject-trunk_REV5377


--------------- CONFIG FILE ---------------

vi pjlib/include/pj/config_site.h


#define NDEBUG 1

#define PJ_HAS_IPV6 1

#define PJ_MAX_HOSTNAME 256

#define PJSIP_MAX_URL_SIZE 512


/* The upper limit on MAX_HANDLES is determined by

* the value of FD_SETSIZE on your system.  For Linux

* this is usually 1024.  The following code sets it

* to whatever FD_SETSIZE is or you can set it to a

* specific number yourself.  pjproject will not

* compile if you set it to greater than FD_SETSIZE.*/


#include <sys/select.h>

#define PJ_IOQUEUE_MAX_HANDLES (FD_SETSIZE)


/* Set for maximum server performance.

* In tests, setting these parameters reduced

* CPU load by approximately 25% for the same number

* of calls per second.  Your results will vary,

* of course.*/


#define PJ_SCANNER_USE_BITWISE  0

#define PJ_OS_HAS_CHECK_STACK   0

#define PJ_LOG_MAX_LEVEL        3

#define PJ_ENABLE_EXTRA_CHECK   0

#define PJSIP_MAX_TSX_COUNT     ((64*1024)-1)

#define PJSIP_MAX_DIALOG_COUNT  ((64*1024)-1)

#define PJSIP_UDP_SO_SNDBUF_SIZE    (512*1024)

#define PJSIP_UDP_SO_RCVBUF_SIZE    (512*1024)

#define PJ_DEBUG            0

#define PJSIP_SAFE_MODULE       0

#define PJ_HAS_STRICMP_ALNUM        0

#define PJ_HASH_USE_OWN_TOLOWER     1


/* Increased the max packet length for receiving 

* incoming packets*/


#define PJSIP_MAX_PKT_LEN       6000


/* It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined.

 Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.*/


#define PJSIP_UNESCAPE_IN_PLACE     0

#undef PJ_TODO

#define PJ_TODO(x)


/* Defaults too low for WebRTC */

#define PJ_ICE_MAX_CAND 32

#define PJ_ICE_MAX_CHECKS (PJ_ICE_MAX_CAND * 2)


----------------------------------------------


./configure CFLAGS='-O2 -g -DNDEBUG' --prefix=/usr --libdir=/usr/lib64 --enable-epoll --with-external-srtp --enable-shared --disable-video --disable-sound --disable-opencore-amr 

make dep

make


---------------- CENT OS 7 ISSUES ------------------------


../src/test/mips_test.c: In function ‘run_entry’:

../src/test/mips_test.c:2295:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]

     pj_status_t status;

                 ^

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_codec_test.o \

        ../src/test/vid_codec_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_dev_test.o \

        ../src/test/vid_dev_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_port_test.o \

        ../src/test/vid_port_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/rtp_test.o \

        ../src/test/rtp_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/test.o \

        ../src/test/test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/sdp_neg_test.o \

        ../src/test/sdp_neg_test.c

if test ! -d ../bin; then mkdir -p ../bin; fi

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 -lpjmedia-videodev -lpjmedia -lpjmedia-audiodev -lpj -lpjlib-util -lpjnath  -lresample -lgsmcodec -lspeex -lilbccodec -lg7221codec -lyuv  -lsrtp  -lssl -lcrypto -luuid -lm -lrt -lpthread    -L/usr/src/pjproject-trunk_REV5377/pjlib/lib -L/usr/src/pjproject-trunk_REV5377/pjlib-util/lib -L/usr/src/pjproject-trunk_REV5377/pjnath/lib -L/usr/src/pjproject-trunk_REV5377/pjmedia/lib -L/usr/src/pjproject-trunk_REV5377/pjsip/lib -L/usr/src/pjproject-trunk_REV5377/third_party/lib

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_video_format_mgr_instance'

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_format_get_video_format_detail'

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_get_video_format_info'

collect2: error: ld returned 1 exit status

make[2]: *** [../bin/pjmedia-test-x86_64-unknown-linux-gnu] Error 1

make[2]: Leaving directory `/usr/src/pjproject-trunk_REV5377/pjmedia/build'

make[1]: *** [pjmedia-test-x86_64-unknown-linux-gnu] Error 2

make[1]: Leaving directory `/usr/src/pjproject-trunk_REV5377/pjmedia/build'

make: *** [all] Error 1


---------------- FEDORA 23 ------------------------


../src/test/mips_test.c: In function ‘run_entry’:

../src/test/mips_test.c:2295:17: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]

     pj_status_t status;

                 ^

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_codec_test.o \

        ../src/test/vid_codec_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_dev_test.o \

        ../src/test/vid_dev_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/vid_port_test.o \

        ../src/test/vid_port_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/rtp_test.o \

        ../src/test/rtp_test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/test.o \

        ../src/test/test.c

gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -g -DNDEBUG -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 -fPIC           -I/usr/src/pjproject-trunk_REV5377/third_party/build/speex -I/usr/src/pjproject-trunk_REV5377/third_party/speex/include -DPJMEDIA_HAS_OPENCORE_AMRNB_CODEC=0 -DPJMEDIA_HAS_OPENCORE_AMRWB_CODEC=0 -DPJMEDIA_EXTERNAL_SRTP=1 -DPJMEDIA_SRTP_HAS_DEINIT=0 -DPJMEDIA_SRTP_HAS_SHUTDOWN=1 -DPJMEDIA_RESAMPLE_IMP=PJMEDIA_RESAMPLE_LIBRESAMPLE -DPJMEDIA_HAS_LIBYUV=1 -I/usr/src/pjproject-trunk_REV5377/third_party/yuv/include -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -DPJMEDIA_AUDIO_DEV_HAS_PORTAUDIO=0 -DPJMEDIA_AUDIO_DEV_HAS_WMME=0 -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjmedia/include -I../../pjnath/include -I../.. \

        -o output/pjmedia-test-x86_64-unknown-linux-gnu/sdp_neg_test.o \

        ../src/test/sdp_neg_test.c

if test ! -d ../bin; then mkdir -p ../bin; fi

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 -lpjmedia-videodev -lpjmedia -lpjmedia-audiodev -lpj -lpjlib-util -lpjnath  -lresample -lgsmcodec -lspeex -lilbccodec -lg7221codec -lyuv  -lsrtp  -lssl -lcrypto -luuid -lm -lrt -lpthread    -L/usr/src/pjproject-trunk_REV5377/pjlib/lib -L/usr/src/pjproject-trunk_REV5377/pjlib-util/lib -L/usr/src/pjproject-trunk_REV5377/pjnath/lib -L/usr/src/pjproject-trunk_REV5377/pjmedia/lib -L/usr/src/pjproject-trunk_REV5377/pjsip/lib -L/usr/src/pjproject-trunk_REV5377/third_party/lib

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_video_format_mgr_instance'

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_format_get_video_format_detail'

/usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined reference to `pjmedia_get_video_format_info'

collect2: error: ld returned 1 exit status

/usr/src/pjproject-trunk_REV5377/build/rules.mak:124: recipe for target '../bin/pjmedia-test-x86_64-unknown-linux-gnu' failed

make[2]: *** [../bin/pjmedia-test-x86_64-unknown-linux-gnu] Error 1

make[2]: Leaving directory '/usr/src/pjproject-trunk_REV5377/pjmedia/build'

Makefile:243: recipe for target 'pjmedia-test-x86_64-unknown-linux-gnu' failed

make[1]: *** [pjmedia-test-x86_64-unknown-linux-gnu] Error 2

make[1]: Leaving directory '/usr/src/pjproject-trunk_REV5377/pjmedia/build'

Makefile:14: recipe for target 'all' failed

make: *** [all] Error 1


This has only started happening since SVN 5360.


Regards,


Ross




From: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> on behalf of Ming <ming@xxxxxxxxx>
Sent: 08 July 2016 03:45
To: pjsip list
Subject: Re: Unable to compile since changeset 5360
 
Hi Ross,

I just tried it here and didn't encounter any issue. Could you please
try using the latest revision (r5377 as of now) and rebuild PJSIP from
scratch?

--
Ming

On Thu, Jul 7, 2016 at 8:08 PM, Ross Beer <ross.beer@xxxxxxxxxxx> wrote:
> Hi,
>
>
> I am unable to compile PJSIP after the changed made in 5360, I am getting
> the following errors when using make:
>
>
> 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
> -lpjmedia-videodev -lpjmedia -lpjmedia-audiodev -lpj -lpjlib-util -lpjnath
> -lresample -lgsmcodec -lspeex -lilbccodec -lg7221codec -lyuv  -lsrtp  -lssl
> -lcrypto -luuid -lm -lrt -lpthread
> -L/usr/src/pjproject-trunk_REV5377/pjlib/lib
> -L/usr/src/pjproject-trunk_REV5377/pjlib-util/lib
> -L/usr/src/pjproject-trunk_REV5377/pjnath/lib
> -L/usr/src/pjproject-trunk_REV5377/pjmedia/lib
> -L/usr/src/pjproject-trunk_REV5377/pjsip/lib
> -L/usr/src/pjproject-trunk_REV5377/third_party/lib
>
> /usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined
> reference to `pjmedia_video_format_mgr_instance'
>
> /usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined
> reference to `pjmedia_format_get_video_format_detail'
>
> /usr/src/pjproject-trunk_REV5377/pjmedia/lib/libpjmedia.so: undefined
> reference to `pjmedia_get_video_format_info'
>
> collect2: error: ld returned 1 exit status
>
> make[2]: *** [../bin/pjmedia-test-x86_64-unknown-linux-gnu] Error 1
>
> make[2]: Leaving directory `/usr/src/pjproject-trunk_REV5377/pjmedia/build'
>
> make[1]: *** [pjmedia-test-x86_64-unknown-linux-gnu] Error 2
>
> make[1]: Leaving directory `/usr/src/pjproject-trunk_REV5377/pjmedia/build'
>
> make: *** [all] Error 1
>
>
> Can this please be fixed in SVN?
>
>
> Thanks,
>
>
> Ross
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
Tracking development of pjsip and SIP SDK for smartphones


>
> pjsip mailing list
> pjsip@xxxxxxxxxxxxxxx
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org





--
George Joseph
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux