[asterisk-users] libpri error
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Jul 31 08:22:07 CDT 2012
On Mon, Jul 30, 2012 at 10:50:20AM +0000, Kamlesh Kumar wrote:
>
> when I issue 'make' command, below output comes. [root at localhost libpri-1.4.11.3]# make
> gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c
[snip]
Looks OK.
Make is quite noisy when it encounters an error:
$ echo "something invalid" >>q921.c
$ LANG=C make
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c
q921.c:3113:1: error: unknown type name 'something'
q921.c:3113:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
make: *** [q921.o] Error 1
$ echo $?
2
Had I not sabotaged the code:
$ make
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c
[snip]
gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_aoc.lo pri_cc.lo pri_facility.lo asn1_primitive.lo rose.lo rose_address.lo rose_etsi_aoc.lo rose_etsi_cc.lo rose_etsi_diversion.lo rose_etsi_ect.lo rose_etsi_mwi.lo rose_other.lo rose_q931.lo rose_qsig_aoc.lo rose_qsig_cc.lo rose_qsig_ct.lo rose_qsig_diversion.lo rose_qsig_mwi.lo rose_qsig_name.lo version.lo
/sbin/ldconfig -n .
ln -sf libpri.so.1.4 libpri.so
$ echo $?
0
'$?' (the value of the shell variable named '?') holds the return status
of the last command. If it's not 0, it means that this command returned
an error.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list