[SFLphone] g722.h - compilation problem (& patch)
Emmanuel Milou
emmanuel.milou at savoirfairelinux.com
Mon Jul 27 10:15:15 EDT 2009
We didn't make tests on Fedora 11 yet, so you might encounter some
problems.
Thank you for your patch, we'll test it on Fedora as soon as possible.
Emmanuel
Le dimanche 26 juillet 2009 à 23:06 +0200, Marcin Zajączkowski a écrit :
> Hi,
>
>
> I tried to play with latest snapshot, but I had problem with its
> compilation. sflphone-common-0.9.6~snapshot20090726-0ubuntu1.orig (also
> sflphone-common-0.9.6~rc2-0ubuntu1.orig) returns with:
> g722.h:133: error: ‘uint8_t’ was not declared in this scope
> (longer trace below).
>
> I dig a little about that and the problem seems to be caused by missing
> stdint.h include. I don't know if it should be included from some other
> file, but attached patch works fine.
>
> Problem occurred with g++ (gcc) 4.4.0 on Fedora 11.
>
>
> Regards
> Marcin
>
>
>
> <QUOTE>
> make[4]: Entering directory
> `/home/szpak/soft/u/sflphone-common-0.9.6~rc2-0ubuntu1.orig/src/audio/codecs'
> g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../libs
> -I../../../libs/dbus-c++/include -I../../../libs/iax2
> -I../../../libs/pjproject-"1.0.3" -I../../../src -I../../../src/config
> -I../../../test -DPREFIX=\"/usr/local\"
> -DPROGSHAREDIR=\"/usr/local/share/sflphone\"
> -I../../../libs/pjproject-"1.0.3"/pjsip/include
> -I../../../libs/pjproject-"1.0.3"/pjlib/include
> -I../../../libs/pjproject-"1.0.3"/pjlib-util/include
> -I../../../libs/pjproject-"1.0.3"/pjmedia/include
> -I../../../libs/pjproject-"1.0.3"/pjnath/include
> ../../../libs/dbus-c++/include/dbus-c++
> -DCODECS_DIR=\""/usr/local/lib/sflphone/codecs"\"
> -DPLUGINS_DIR=\""/usr/local/lib/sflphone/plugins"\" -DENABLE_TRACE
> -DSFLDEBUG -DHAVE_SPEEX_CODEC -DHAVE_GSM_CODEC -fPIC -g -Wall -g -Wall
> -O2 -MT libcodec_g722_so-g722.o -MD -MP -MF
> .deps/libcodec_g722_so-g722.Tpo -c -o libcodec_g722_so-g722.o `test -f
> 'g722.cpp' || echo './'`g722.cpp
> g++: ../../../libs/dbus-c++/include/dbus-c++: linker input file unused
> because linking not done
> In file included from g722.cpp:27:
> g722.h:133: error: ‘uint8_t’ was not declared in this scope
> g722.h:133: error: expected primary-expression before ‘const’
> g722.h:133: error: expected primary-expression before ‘int’
> g722.h:133: error: initializer expression list treated as compound
> expression
> g722.h:137: error: ‘int16_t’ was not declared in this scope
> g722.h:137: error: expected primary-expression before ‘const’
> g722.h:137: error: expected primary-expression before ‘int’
> g722.h:137: error: initializer expression list treated as compound
> expression
> g722.cpp:345: error: ISO C++ forbids declaration of
> ‘uint8_t’ with no type
> g722.cpp:345: error: expected ‘,’ or ‘...’
> before ‘g722_data’
> g722.cpp:570: error: ‘uint8_t’ has not been declared
> g722.cpp: In member function ‘virtual int G722::codecDecode(short
> int*, unsigned char*, unsigned int)’:
> g722.cpp:62: error: ISO C++ forbids declaration of ‘type
> name’ with no type
> g722.cpp:62: error: ISO C++ forbids declaration of ‘type
> name’ with no type
> g722.cpp:62: error: expected primary-expression before ‘const’
> g722.cpp:62: error: expected ‘)’ before ‘const’
> g722.cpp:59: warning: unused variable ‘in_byte’
> g722.cpp: In member function ‘virtual int
> G722::codecEncode(unsigned char*, short int*, unsigned int)’:
> g722.cpp:73: error: ‘uint8_t’ was not declared in this scope
> g722.cpp:73: error: expected primary-expression before ‘)’
> token
> g722.cpp: In member function ‘int
> G722::g722_encode_release()’:
> g722.cpp:338: warning: no return statement in function returning non-void
> g722.cpp: In member function ‘int
> G722::g722_decode_release()’:
> g722.cpp:343: warning: no return statement in function returning non-void
> g722.cpp: In member function ‘int G722::g722_decode(int16_t*,
> int)’:
> g722.cpp:414: error: ‘len’ was not declared in this scope
> g722.cpp:418: error: ‘g722_data’ was not declared in this
> scope
> g722.cpp:427: error: ‘g722_data’ was not declared in this
> scope
> g722.cpp: In member function ‘int G722::g722_encode(int*, const
> int16_t*, int)’:
> g722.cpp:768: error: ‘uint8_t’ was not declared in this scope
> g722.cpp:773: error: ‘uint8_t’ was not declared in this scope
> g722.cpp:773: error: expected ‘;’ before ‘code’
> make[4]: *** [libcodec_g722_so-g722.o] Error 1
> make[4]: Leaving directory
> `/home/szpak/soft/u/sflphone-common-0.9.6~rc2-0ubuntu1.orig/src/audio/codecs'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/home/szpak/soft/u/sflphone-common-0.9.6~rc2-0ubuntu1.orig/src/audio'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/home/szpak/soft/u/sflphone-common-0.9.6~rc2-0ubuntu1.orig/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/szpak/soft/u/sflphone-common-0.9.6~rc2-0ubuntu1.orig'
> make: *** [all] Error 2
> </QUOTE>
>
>
>
>
>
> --
> Ad...
>
> ----------------------------------------------------
> Podziel się wakacyjnymi wspomnieniami z Bliskimi
> wrzucaj zdjęcia, filmy, pisz dziennik
> Kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fbliscy.html&sid=808
> _______________________________________________
> SFLphone mailing list
> SFLphone at lists.savoirfairelinux.net
> http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
--
Emmanuel Milou
Consultant en Logiciel Libre
Savoir-Faire Linux Inc.
emmanuel.milou at savoirfairelinux.com
514-276-5468 poste 136
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Ceci est une partie de message
=?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url : http://lists.savoirfairelinux.net/pipermail/sflphone/attachments/20090727/721b3a24/attachment.pgp
More information about the SFLphone
mailing list