Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (No Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 9th July 2007, 07:43 AM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Is there posible to use this tool's to convert i386 rpm's into x86_64 rpm's?
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #17  
Old 9th July 2007, 03:14 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Yes, if you have the SRPM (source RPM). Just run:
Code:
rpmbuild --rebuild --target=ARCH my.src.rpm
Replace ARCH and my.src.rpm with their real values and it will build my.src.rpm for ARCH.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #18  
Old 9th July 2007, 04:04 PM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
I asked in a other tread aswell and was told to use rpmbuild --rebuild splash_mkinitrd-5.1.19.0.3-1.src.rpm

I got error and got the same using your comand. rpmbuild --rebuild splash_initscripts-8.45.7-1b.src.rpm gave me two nice rpms splash_initscripts-debuginfo-8.45.7-1b.x86_64.rpm and splash_initscripts-8.45.7-1b.x86_64.rpm

I wonder what could be wrong
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #19  
Old 9th July 2007, 04:11 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Quote:
Originally Posted by Stian1979
I asked in a other tread aswell and was told to use rpmbuild --rebuild splash_mkinitrd-5.1.19.0.3-1.src.rpm

I got error and got the same using your comand. rpmbuild --rebuild splash_initscripts-8.45.7-1b.src.rpm gave me two nice rpms splash_initscripts-debuginfo-8.45.7-1b.x86_64.rpm and splash_initscripts-8.45.7-1b.x86_64.rpm

I wonder what could be wrong
That looks fine, if that's working then I wouldn't worry about the other error.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #20  
Old 9th July 2007, 04:22 PM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Quote:
Originally Posted by Firewing1
That looks fine, if that's working then I wouldn't worry about the other error.
Firewing1
I won't make the new rpm.
Quote:
gcc -Wall -Werror -g -D_FORTIFY_SOURCE=2 -Wno-unused-function -fPIC -I/usr/src/redhat/BUILD/mkinitrd-5.1.19.0.3/nash/in bla bla bla bla
And it continue like that line after line until

Quote:
/usr/bin/ld: cannot find -lparted
collect2: ld returned 1 exit status
make[1]: *** [nash] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/mkinitrd-5.1.19.0.3/nash'
make: *** [subdirs] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.39947 (%build)


RPM build errors:
InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID 44aa3cbe
Bad exit status from /var/tmp/rpm-tmp.39947 (%build)
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #21  
Old 9th July 2007, 04:32 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Oh, my bad I didn't see they were two different RPMs you were building.

Usually when Make fails because of something starting in -l, you're missing the development package for whatever is after the -l. In this case it's -lparted, remove the -l and you get parted. I'm guessing you need to run:
Code:
yum install parted-devel
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #22  
Old 9th July 2007, 04:55 PM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Parted is allready installed (both 32 and 64bit) parted-devel is also allready installed (both 32 and 64bit)

Can I use the same comand for converting a i386 into x86_64? Maybe it's something wrong with the src.rpm?
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #23  
Old 9th July 2007, 05:03 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
I'm not sure what you mean by converting i386 into x86_64 - A binary package cannot be converted, but if you have the source code (eg, at SRPM) than you can recompile it for a different architecture.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #24  
Old 9th July 2007, 05:51 PM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Seam there is no way for me to get the src.rpm working like it should

Could it be my system and that someone else could be able to convert it?
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #25  
Old 9th July 2007, 09:26 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Quote:
Originally Posted by Stian1979
Seam there is no way for me to get the src.rpm working like it should

Could it be my system and that someone else could be able to convert it?
This is from Fedora's mkinitrd:
parted-devel >= 1.8.5 is needed by mkinitrd-6.0.9-5.i386
libdhcp4client-devel is needed by mkinitrd-6.0.9-5.i386
libdhcp6client-devel is needed by mkinitrd-6.0.9-5.i386
libdhcp-devel >= 1.9 is needed by mkinitrd-6.0.9-5.i386
device-mapper-devel is needed by mkinitrd-6.0.9-5.i386
libselinux-devel is needed by mkinitrd-6.0.9-5.i386
libsepol-devel is needed by mkinitrd-6.0.9-5.i386
I would make sure you have all those installed first.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #26  
Old 10th July 2007, 04:07 AM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
It all won't work for me. Everything is installed.

/usr/bin/ld: cannot find -lparted

What is lparted? Is it something from fc6 that do not eksist in f7?

It's rpmbuild --rebuild --target=x86_64 splash_mkinitrd-5.1.19.0.3-1.src.rpm right?

That and rpmbuild --rebuild splash_mkinitrd-5.1.19.0.3-1.src.rpm both fail, but they do make a folder containing setupfileds in the build derectory.
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?

Last edited by Stian1979; 10th July 2007 at 04:17 AM.
Reply With Quote
  #27  
Old 10th July 2007, 05:07 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
ld can't seem to find -lparted on my computer either, but Fedora's mkinitrd builds fine... Where did you get this source RPM? I'm thinking maybe -lparted is wrong (as in it shouldn't be in GCC's arg list) .
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #28  
Old 10th July 2007, 05:13 AM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Quote:
Originally Posted by Firewing1
Where did you get this source RPM?
http://home.arcor.de/helmut.schlattl....0.3-1.src.rpm

It's a replacement to get gensplash working on fedora, but the sorce I use is for fc6 and I'm running f7 so maybe thats the reason. I just hope I can find a way around it.
You must be tired of helping idiots like me, where do you find the strenght?
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
  #29  
Old 10th July 2007, 03:09 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Hmm... I tried to rebuild your RPM, and it worked after installing all the BuildRequires it asks for (libsepol-devel libselinux-devel libdhcp-devel libdhcp6client-devel parted-devel libdhcp4client-devel) - I'm not sure why though.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #30  
Old 10th July 2007, 03:51 PM
Stian1979 Offline
Registered User
 
Join Date: Dec 2006
Location: Taipei Taiwan
Age: 34
Posts: 401
Really?

Thats unfair, I downloaded half the packages for fedora and still I can not make it work.
Anny ca'hance you could e+mail it to me?
__________________
smolt profile

Without fedoraforum.org I would still be using Windows

Can annyone borow me some space on a ftp server?
Reply With Quote
Reply

Tags
build, including, kmods, rpms

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F8 kmods for ndiswrapper and nvidia complete with build instrutions leigh123linux Guides & Solutions (No Questions) 36 23rd September 2007 06:11 PM
build rpms jim Using Fedora 0 30th April 2005 05:50 AM
How to build *-devel-rpms? Der Hanseat Using Fedora 5 23rd December 2004 12:56 AM


Current GMT-time: 16:10 (Wednesday, 22-05-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