PJPROJECT building error? - asterisk

i am trying to install PJPROJECT using following commands:
[Note]: the server where i am installing it does not have internet accessibility so i have to manually install every thing...
1) untar pjproject file
2) ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV^=1" --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-opencore-amr
3) make dep
4) make
Here i am facing following error:
../../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 `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build/yuv'
make[2]: *** [libyuv-x86_64-unknown-linux-gnu.a] Error 2
make[2]: Leaving directory `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build/yuv'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build'
make: *** [all] Error 1
what causes this error to occur and how to resolve this issue??
i also tries to change ./configure parameters like on running
./configure --enable-shared only i get:
**output/libgsmcodec-x86_64-unknown-linux-gnu/add.o: could not read symbols: Bad value**
**collect2: ld returned 1 exit status**
**make[3]: *** [../../lib/libgsmcodec.so.2] Error 1**
**make[3]: Leaving directory `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build/gsm'**
**make[2]: *** [libgsmcodec.so] Error 2**
**make[2]: Leaving directory `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build/gsm'**
**make[1]: *** [all] Error 1**
**make[1]: Leaving directory `/root/Downloads/Asterisk/Asterisk_13.8/Asterisk/missing_packages/pjproject-2.6/third_party/build'**
**make: *** [all] Error 1**

Related

install OpenCL ICD Loader to ubuntu12 on Zedboard occured error

i want to run opencl on zedboard and now i'm failing to install ocl_icd on ubuntu12
i refer to the page "https://github.com/umaurmi/OPENCL_EXAMPLES_ZEDBOARD/wiki/Installing-POCL-dependencies-on-Ubuntu-linux-based-targets"
"./configure" complete without errors
but "make" cause errors ,show below
root#localhost:~/Downloads/ocl-icd-1.2.1# make
make all-am
make[1]: Entering directory `/root/Downloads/ocl-icd-1.2.1'
CC libOpenCL_la-ocl_icd_loader.lo
CC libOpenCL_la-ocl_icd_loader_gen.lo
In file included from ocl_icd_loader_gen.c:30:0:
ocl_icd_debug.h: In function 'debug_init':
ocl_icd_debug.h:66:5: error: implicit declaration of function 'getenv' [-Werror=implicit-function-declaration]
ocl_icd_debug.h:66:17: error: initialization makes pointer from integer without a cast [-Werror]
ocl_icd_debug.h:68:7: error: implicit declaration of function 'atoi' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [libOpenCL_la-ocl_icd_loader_gen.lo] Error 1
make[1]: Leaving directory `/root/Downloads/ocl-icd-1.2.1'
make: *** [all] Error 2
how can i do for that?

Compiling mvapich2-2.1 with PGI

I am currently trying to compile mvapich2-2.1 using pgcc 15.10 on a CentOS 6 machine. I run
export F90=; export CPP=cpp; ./configure --prefix=/home/user/local/mvapich2-2.1/pgi15
make
and it fails with (excluding much of the diagnostic output)
.
.
.
PGC/x86-64 Linux 15.10-0: compilation completed with warnings
CC adio/common/ad_iwrite_fake.lo
CC adio/common/ad_open.lo
CC adio/common/ad_opencoll.lo
CC adio/common/ad_opencoll_failsafe.lo
CC adio/common/ad_opencoll_scalable.lo
CC adio/common/ad_prealloc.lo
CC adio/common/ad_read.lo
PGC-W-0114-More than one type specified (/gpfs0/export/opt/pgi/linux86-64/15.10/include-gcc44/sys/types.h: 230)
PGC-W-0143-Useless typedef declaration (no declarators present) (/gpfs0/export/opt/pgi/linux86-64/15.10/include-gcc44/sys/types.h: 230)
PGC/x86-64 Linux 15.10-0: compilation completed with warnings
CC adio/common/ad_read_coll.lo
/tmp/pgccZZGhzd4sbsRT.s: Assembler messages:
/tmp/pgccZZGhzd4sbsRT.s:1510: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:1547: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2003: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2272: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2324: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2376: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2435: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2621: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2895: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2932: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:2986: Error: suffix or operands invalid for `vpxor'
/tmp/pgccZZGhzd4sbsRT.s:3038: Error: suffix or operands invalid for `vpxor'
make[3]: *** [adio/common/ad_read_coll.lo] Error 1
make[3]: Leaving directory `/gpfs0/home/user/local/src/mvapich2-2.1/src/mpi/romio'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gpfs0/home/user/local/src/mvapich2-2.1/src/mpi/romio'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gpfs0/home/user/local/src/mvapich2-2.1'
make: *** [all] Error 2
What is the solution to this problem? I have no experience using the assembler, so any hints / advice would be appreciated. Thanks.
I got it to install by using the following :
F90=; CPP=cpp; CFLAGS="-tp penryn-64" LDFLAGS="-L/usr/lib64" ./configure --prefix=/home/user/local/mvapich2-2.1/pgi15
make
make install
I also tried updating binutils to 2.24 and I was able to install it that way also.

Error in building qtsampleplayer

I am getting the following error in building qtsampleplayer:
ubuntu#ubuntu:~/Libdash/libdash/libdash/qtsampleplayer/build$ make
[ 3%] Automoc for target qtsampleplayer
[ 3%] Built target qtsampleplayer_automoc
Linking CXX executable qtsampleplayer
i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_'
/libz.so.1:error adding symbols:DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [qtsampleplayer] Error 1
make[1]: *** [CMakeFiles/qtsampleplayer.dir/all] Error 2
make: *** [all] Error 2
Tried several options like giving path of libz.so in command line but no help
Regards
Mayank
collect2: error: ld returned 1 exit status that means basically that something before went wrong.
/libz.so.1:error adding symbols:DSO missing from command linethat means that he is not finding DSO so you have not included correctly the libz.so BUT before it says: i386-linux-gnu/libQt5Gui.so.5.2.1:undefined reference to symbol 'inflateInit2_' So your problem is not in libz.so, it can be in libQt5Gui .
Do you really have both libraries where your project is looking? Seems the program is not finding them

Canot install edb in Ubuntu 11.10

I have tried to follow the steps as mentioned in http://samiux.blogspot.in/2012/12/howto-install-edb-debugger-on-ubuntu.html however I am getting an error
main.cpp: In function ‘void {anonymous}::usage()’:
main.cpp:158:18: error: request for member ‘toLocal8Bit’ in ‘plugin->QObject::metaObject()->QMetaObject::className()’, which is of non-class type ‘const char*’
make[1]: *** [.release-shared/obj/main.o] Error 1
...while doing make. Please help.
Just comment line 158 in file src/main.cpp

Qt compile error when use tslib with angstrom g++

In the above scenario I am getting the following compile error. Can someone tell me why? I am using the following doc as my guide line
http://billforums.station51.net/viewtopic.php?f=8&t=15
ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
ts_test.o: In function `main':
ts_test.c:(.text+0x1d8): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
ts_harvest.o: In function `main':
ts_harvest.c:(.text+0x5d0): undefined reference to `rpl_malloc'
fbutils.o: In function `open_framebuffer':
fbutils.c:(.text+0xa7c): undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_harvest] Error 1
make[2]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/thwijeth/Downloads/tslib-1.0'
make: *** [all] Error 2
A simple Google search on "rpl_malloc" finds many references to this issue, with suggestions for solutions. The problem is that the Autoconf configure script is having trouble finding malloc for some reason, and tries to fall back to rpl_malloc. There are a couple of suggestions to work around this:
1.) Define the ac_cv_func_malloc_0_nonnull=yes environment variable before you run configure, for instance by running configure (assuming a bash shell) as:
ac_cv_func_malloc_0_nonnull=yes ./configure <your configure options>
or
2.) Manually change the configure script to comment out the rpl_malloc problem AC_FUNC_MALLOC line by prefixing it with a #.
(Reference: this blog post, among others)

Resources