Make error: variable 'tei' set but not used

Bug #1102723 reported by Mathieu D
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libpri (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I downloaded libpri from SVN:
> svn co http://svn.asterisk.org/svn/libpri/tags/1.4.11.2
> cd 1.4.11.2
> make

Executing "make" gives me the following error:

q921.c: In function 'q921_dump':
q921.c:811:7: error: variable 'tei' set but not used [-Werror=unused-but-set-variable]

I found a similar bug here: https://bugs.launchpad.net/ubuntu/+source/libpri/+bug/831145
But I don't understand how I am supposed to solve this issue, and get a successful make.

Revision history for this message
Mathieu D (mett-work-deactivatedaccount) wrote :

I am running Lubuntu 12.10 Desktop

Revision history for this message
Isac Ferreira (isacfernando) wrote :

Change de gcc and g++

sudo apt-get install gcc-4.4 g++-4.4
sudo ln -sf /usr/bin/gcc-4.4 /usr/bin/gcc
sudo ln -sf /usr/bin/g++-4.4 /usr/bin/g++

make clean
make
sudo make install

Att,

Revision history for this message
Andreas Moog (ampelbein) wrote :

Since this affects the svn version and not the ubuntu package, closing this bug report. Generally you want to disable -Werror when building as a non-developer.

Changed in libpri (Ubuntu):
status: New → Invalid
Revision history for this message
bornhater (iambornhater) wrote :

hi guys, i have same problem.

when i "sudo make install"
==========
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -02 -MD q921.o -MF .q921.o -MF .q921.o.d -MP -c -o q921.o q921.c
q921.c: In function 'q921_dump':
q921.c:811:7: error: variable 'tei' set but not used [-Werror=unused-but-set-variable]
  int tei;
     ^
cc1: all warnings being treated as errors
Makefile:188: recipe for target 'q921.o' failed
make: *** [921.o] Error 1
==========

please help me,,, Thank you.

ps. somebody knows that about q921?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.