Darmawan Salihun wrote: > Note: (*) I believe that this error had a relation with the data type > declaration in pjlib. The error is actually not as bad as that (well, actually it's a warning, but it's got treated as error with -Werror). It's because the printf() argument doesn't match the format string. Something like this: long lval=0; printf("%d\n", lval); With the printf() above gcc will complain that the format ("%d", an integer) doesn't exactly match the argument (a long int). The solution is either to change the format to long int ("%ld"), or to typecast the variable to int, or to disable -Werror, for now. cheers, -benny > (*) I'm building on a Slackware 12 system (kernel 2.6.23.12) > ----------------------------- > > I'm building with the Pjsip svn revision 1656 (01-02-2008) > > The configuration script is invoked for cross compiling as follows > ./configure CC=bfin-uclinux-gcc --host=bfin-uclinux --build=i686-linux LDFLAGS=' > -Wl,-elf2flt' CFLAGS=-O2 > > and then building pjsip with: > make dep && make clean && make > > The error message excerpt: > -------- > make[1]: Entering directory > `/lfs/blackfin_devel/uClinux-dist.R1.1-RC3/user/pjproject/pjnath/build' > make -f /lfs/blackfin_devel/uClinux-dist.R1.1-RC3/user/pjproject/build/rules.mak > APP=PJNATH app=pjnath ../lib/libpjnath-bfin-unknown-uclinux.a > make[2]: Entering directory > `/lfs/blackfin_devel/uClinux-dist.R1.1-RC3/user/pjproject/pjnath/build' > mkdir -p output/pjnath-bfin-unknown-uclinux > bfin-uclinux-gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -Werror > -Wno-unused-label -I../include -I../../pjlib/include > -I../../pjlib-util/include \ > -o output/pjnath-bfin-unknown-uclinux/errno.o \ > ../src/pjnath/errno.c > bfin-uclinux-gcc -c -Wall -DPJ_AUTOCONF=1 -O2 -Werror > -Wno-unused-label -I../include -I../../pjlib/include > -I../../pjlib-util/include \ > -o output/pjnath-bfin-unknown-uclinux/ice_session.o \ > ../src/pjnath/ice_session.c > cc1: warnings being treated as errors > ../src/pjnath/ice_session.c: In function 'dump_check': > ../src/pjnath/ice_session.c:749: warning: format '%d' expects type > 'int', but argument 4 has type 'long int' > ../src/pjnath/ice_session.c:749: warning: format '%d' expects type > 'int', but argument 4 has type 'long int' > make[2]: *** [output/pjnath-bfin-unknown-uclinux/ice_session.o] Error 1 > make[2]: Leaving directory > `/lfs/blackfin_devel/uClinux-dist.R1.1-RC3/user/pjproject/pjnath/build' > make[1]: *** [pjnath] Error 2 > make[1]: Leaving directory > `/lfs/blackfin_devel/uClinux-dist.R1.1-RC3/user/pjproject/pjnath/build' > make: *** [all] Error 1 > -------- > > > Anyone have a detailed clue or patch on the matter? > > I'm trying to work on the pjlib *hack* at the moment as well ;-) > > Regards, > > Darmawan Salihun