Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248821 - media-sound/esound-0.2.41 USE=debug - clients.c:175: error: ‘addr’ undeclared (first use in this function)
Summary: media-sound/esound-0.2.41 USE=debug - clients.c:175: error: ‘addr’ undeclared...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2008-11-25 20:48 UTC by BedOS_Gui
Modified: 2008-11-27 23:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patches in the missing addr definition required when enabling debug (esound-0.2.41-debug.patch,374 bytes, patch)
2008-11-26 18:18 UTC, Arttu Valo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BedOS_Gui 2008-11-25 20:48:03 UTC
When compiling esound-0.2.4.1 this error occurs if USE flag "debug" is activated :

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\"    -march=native -O3 -pipe -msse3 -fno-strict-aliasing   -Wall -c clients.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\"    -march=native -O3 -pipe -msse3 -fno-strict-aliasing   -Wall -c filter.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\"    -march=native -O3 -pipe -msse3 -fno-strict-aliasing   -Wall -c mix.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR=\"/etc/esd\" -DSERVERDIR=\"/usr/bin\"    -march=native -O3 -pipe -msse3 -fno-strict-aliasing   -Wall -c players.c
clients.c: In function ‘get_new_clients’:
clients.c:175: erreur: ‘addr’ undeclared (first use in this function)
clients.c:175: erreur: (Each undeclared identifier is reported only once
clients.c:175: erreur: for each function it appears in.)
make[2]: *** [clients.o] Erreur 1
make[2]: *** Attente des tâches non terminées....
players.c: In function ‘new_stream_player’:
players.c:551: attention : pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness
make[2]: quittant le répertoire « /var/tmp/portage/media-sound/esound-0.2.41/work/esound-0.2.41 »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /var/tmp/portage/media-sound/esound-0.2.41/work/esound-0.2.41 »
make: *** [all] Erreur 2

Reproducible: Always
Comment 1 Arttu Valo 2008-11-26 17:59:52 UTC
It look like a bug in esound when debug is enabled. Somebody has been moving code around near that spot -- and removed the addr type declaration altogether while doing it. I think this commit shows the accidental removal:

http://svn.gnome.org/viewvc/esound/trunk/clients.c?r1=495&r2=516
Comment 2 Arttu Valo 2008-11-26 18:18:35 UTC
Created attachment 173496 [details, diff]
patches in the missing addr definition required when enabling debug

Patches in the missing addr definition required when enabling debug.

I also filed my first ever GNOME-bug upstream:

http://bugzilla.gnome.org/show_bug.cgi?id=562360
Comment 3 BedOS_Gui 2008-11-26 22:03:05 UTC
(In reply to comment #2)
> Created an attachment (id=173496) [edit]
> patches in the missing addr definition required when enabling debug
patch tested and working fine on my box, thanks Arttu :-) 

Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2008-11-27 23:40:56 UTC
added in tree without a revbump, thanks for reporting and patch.