 |
 |
 |
 |
| 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. |

9th July 2007, 07:43 AM
|
|
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?
|

9th July 2007, 03:14 PM
|
 |
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
|

9th July 2007, 04:04 PM
|
|
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?
|

9th July 2007, 04:11 PM
|
 |
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
|

9th July 2007, 04:22 PM
|
|
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?
|

9th July 2007, 04:32 PM
|
 |
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
|

9th July 2007, 04:55 PM
|
|
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?
|

9th July 2007, 05:03 PM
|
 |
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
|

9th July 2007, 05:51 PM
|
|
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?
|

9th July 2007, 09:26 PM
|
 |
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
|

10th July 2007, 04:07 AM
|
|
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.
|

10th July 2007, 05:07 AM
|
 |
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
|

10th July 2007, 05:13 AM
|
|
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?
|

10th July 2007, 03:09 PM
|
 |
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
|

10th July 2007, 03:51 PM
|
|
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?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 16:10 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|