Error in Libpri : after Make command

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Error in Libpri : after Make command

Postby cire_08 » Tue Jul 22, 2008 9:51 pm

Hi All,

I encountered problem installing libpri-1.2.5, here are the errors:

root@ericvicidial:/usr/src/asterisk/libpri-1.2.5# make clean
rm -f *.o *.so *.lo *.so.1 *.so.1.0
rm -f testpri testprilib libpri.a libpri.so.1.0
rm -f pritest pridump
rm -f .depend
root@ericvicidial:/usr/src/asterisk/libpri-1.2.5# make
CC=gcc ./mkdep -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g `ls *.c`
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o pri.o pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o q921.o q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o prisched.o prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o q931.o q931.c
In file included from q931.c:27:
pri_internal.h:256: error: expected declaration specifiers or '...' before 'size_t'
q931.c: In function 'receive_calling_party_number':
q931.c:933: error: too many arguments to function 'libpri_copy_string'
q931.c: In function 'dump_keypad_facility':
q931.c:1374: error: too many arguments to function 'libpri_copy_string'
q931.c: In function 'pri_release_finaltimeout':
q931.c:2615: error: too many arguments to function 'libpri_copy_string'
q931.c: In function 'q931_setup':
q931.c:2764: error: too many arguments to function 'libpri_copy_string'
q931.c:2767: error: too many arguments to function 'libpri_copy_string'
q931.c:2784: error: too many arguments to function 'libpri_copy_string'
q931.c:2801: error: too many arguments to function 'libpri_copy_string'
q931.c:2807: error: too many arguments to function 'libpri_copy_string'
q931.c: In function 'q931_receive':
q931.c:3258: error: too many arguments to function 'libpri_copy_string'
q931.c:3259: error: too many arguments to function 'libpri_copy_string'
q931.c:3260: error: too many arguments to function 'libpri_copy_string'
q931.c:3262: error: too many arguments to function 'libpri_copy_string'
q931.c:3263: error: too many arguments to function 'libpri_copy_string'
q931.c:3264: error: too many arguments to function 'libpri_copy_string'
q931.c:3265: error: too many arguments to function 'libpri_copy_string'
q931.c:3266: error: too many arguments to function 'libpri_copy_string'
q931.c:3267: error: too many arguments to function 'libpri_copy_string'
q931.c:3268: error: too many arguments to function 'libpri_copy_string'
q931.c:3295: error: too many arguments to function 'libpri_copy_string'
q931.c:3325: error: too many arguments to function 'libpri_copy_string'
q931.c:3339: error: too many arguments to function 'libpri_copy_string'
q931.c:3340: error: too many arguments to function 'libpri_copy_string'
q931.c:3425: error: too many arguments to function 'libpri_copy_string'
q931.c:3453: error: too many arguments to function 'libpri_copy_string'
q931.c:3488: error: too many arguments to function 'libpri_copy_string'
q931.c:3516: error: too many arguments to function 'libpri_copy_string'
q931.c:3542: error: too many arguments to function 'libpri_copy_string'
q931.c:3548: error: too many arguments to function 'libpri_copy_string'
q931.c:3549: error: too many arguments to function 'libpri_copy_string'
make: *** [q931.o] Error 1


So, what i did, I tried release libpri-1.2.7, Here are the logs that i got after make command:

root@ericvicidial:/usr/src/asterisk/libpri-1.2.7# make
CC=gcc ./mkdep -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC `ls *.c`
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o pri.o pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o q921.o q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o prisched.o prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o q931.o q931.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -c -o pri_facility.o pri_facility.c
ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_facility.o
ranlib libpri.a
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o copy_string.lo -c copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o pri.lo -c pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o q921.lo -c q921.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o prisched.lo -c prisched.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o q931.lo -c q931.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -o pri_facility.lo -c pri_facility.c
gcc -shared -Wl,-hlibpri.so.1.0 -o libpri.so.1.0 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo
/sbin/ldconfig -n .
ln -sf libpri.so.1.0 libpri.so
ln -sf libpri.so.1.0 libpri.so.1

My question now is from the logs that i got from libpri-1.2.7.. I would like to know if that logs are ok and good to continue my installation process of Asterisk.

Second thing (sorry i did not open new thread). .this link is not accessible svn:URL 'http://svn.digium.com/svn/zaptel/trunk' doesn't exist .Is that ok not to install it since I don't have card anyway, I'm planning to use SIP Trunk. Pls advice.

Regards,
cire_08
 
Posts: 56
Joined: Tue Jul 01, 2008 1:02 am

Postby mflorell » Tue Jul 22, 2008 9:54 pm

If you are using a SIP trunk you do not even need libpri, just skip it.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby cire_08 » Tue Jul 22, 2008 9:57 pm

Hi Matt,

thank u very much for your prompt reply!!!

regards
Cire
cire_08
 
Posts: 56
Joined: Tue Jul 01, 2008 1:02 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 259 guests