Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149593 - x11-wm/pwm-1.0.20030617 does not emerge (compile error in snprintf.c)
Summary: x11-wm/pwm-1.0.20030617 does not emerge (compile error in snprintf.c)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Desktop WM Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-30 02:21 UTC by Berteun
Modified: 2006-11-19 14:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Berteun 2006-09-30 02:21:24 UTC
When trying to emerge pwm, the build exits with the following error:

gcc -O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe   -I./include  -ansi -D_POSIX_SOURCE -c snprintf_2.2/snprintf.c -o snprintf_2.2/snprintf.o
snprintf_2.2/snprintf.c: In function 'vasprintf':
snprintf_2.2/snprintf.c:455: error: incompatible types in assignment
make[1]: *** [snprintf_2.2/snprintf.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pwm-1.0.20030617/work/pwm-20030617/libtu-20030528'

Arguably this is a bug in PWM, however, for those systems that have a built-in asprintf (as does Linux) it is not needed to build the supplied snprintf.c. All that is needed is that HAS_SYSTEM_ASPRINTF is defined. This can be done either in the system.mk file of pwm (or set by the ebuild), or, as a workaround and for those who want to emerge it right now:

HAS_SYSTEM_ASPRINTF=1 emerge pwm

This compiles flawlessly on my system.
Comment 1 David Shakaryan (RETIRED) gentoo-dev 2006-11-19 14:00:10 UTC
Masked pending removal; see bug #153388