Fedora Linux Support Community & Resources Center
  #1  
Old 27th March 2006, 12:15 PM
bogwire Offline
Registered User
 
Join Date: Mar 2006
Posts: 53
pbbuttonsd on FC5 ppc

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/pbbutt....7.2-1.src.rpm. I am trying to build the RPM of this SRPM on FC5:
Code:
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:
Code:
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!
Reply With Quote
  #2  
Old 27th March 2006, 05:00 PM
bogwire Offline
Registered User
 
Join Date: Mar 2006
Posts: 53
OK, I have now figured out how to successfully build pbbuttonsd-0.7.2-1.ppc.rpm from http://www.itux.net/rpm/srpms/pbbutt....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
Code:
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
Code:
rpmbuild -bb /usr/src/redhat/SPECS/pbbuttonsd.spec
should succeed.
Reply With Quote
Reply

Tags
fc5, pbbuttonsd, ppc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


Current GMT-time: 12:32 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat