PDA

View Full Version : pbbuttonsd on FC5 ppc


bogwire
27th March 2006, 12:15 PM
Hi,

I want to install pbbuttonsd (http://pbbuttons.berlios.de/) on my iBook G4 running Fedora Core 5. According to http://www.itux.net/rpm/pbbuttons.html there is a SRPM of version 0.7.2 meant for YellowDog Linux 4.0 available at http://www.itux.net/rpm/srpms/pbbuttonsd-0.7.2-1.src.rpm. I am trying to build the RPM of this SRPM on FC5:
rpm -ivh pbbuttonsd-0.7.2-1.src.rpm
rpmbuild -bb /usr/src/redhat/SPECS/pbbuttonsd.spec
However, the last command fails at module_display.c:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../libpbbipc -include /usr/include/linux/cdrom.h -I/lib/modules/2.6.16-1.2074_FC5/build/include -O2 -g -fsigned-char -c module_display.c
module_display.c:30:28: error: linux/radeonfb.h: No such file or directory
module_display.c: In function ‘display_switchmirror’:
module_display.c:793: error: ‘FBIO_RADEON_GET_MIRROR’ undeclared (first use in this function)
module_display.c:793: error: (Each undeclared identifier is reported only once
module_display.c:793: error: for each function it appears in.)
module_display.c:794: error: ‘ATY_RADEON_CRT_ON’ undeclared (first use in this function)
module_display.c:795: error: ‘FBIO_RADEON_SET_MIRROR’ undeclared (first use in this function)
make[2]: *** [module_display.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/pbbuttonsd-0.7.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/pbbuttonsd-0.7.2'
make: *** [all-recursive-am] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.4867 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.4867 (%build)
Any workarounds or suggestions on how to get a working FC5 RPM?
Thanks!

bogwire
27th March 2006, 05:00 PM
OK, I have now figured out how to successfully build pbbuttonsd-0.7.2-1.ppc.rpm from http://www.itux.net/rpm/srpms/pbbuttonsd-0.7.2-1.src.rpm on FC5 ppc:

First, it must be ensured that the kernel-devel package is installed (to provide 'radeonfb.h').

After executing rpm -ivh pbbuttonsd-0.7.2-1.src.rpm edit '/usr/src/redhat/SPECS/pbbuttonsd.spec' to include

%build
# workaround for radeonfb.h in src/module_display.c
#export CPPFLAGS="-include /usr/include/linux/cdrom.h -I/lib/modules/`uname -r`/build/include"
mkdir ./linux; ln -s /lib/modules/`uname -r`/build/include/linux/radeonfb.h ./linux/

Then rpmbuild -bb /usr/src/redhat/SPECS/pbbuttonsd.spec should succeed.