Problems with kernel source RPM for Fedora C3

Problems with kernel source RPM for Fedora C3

Post by Andrew Fal » Mon, 28 Feb 2005 12:20:38


Hello,

Is there a problem with the kernel source rpm? I've downloaded it (file
name is kernel-2.6.9-1.667.src.rpm) and installing it appears to work,
but no source code in unpacked anywhere. When doing rpm -qa | grep
kernel it doesn't show the source rpm as being installed.

I decided to open the file using gvim and noticed that in the header it
appears to have the same name as the kernel rpm (i.e.
kernel-2.6.9-1.667). Is there a problem with this rpm? I downloaded
the sources for the AMD-64 port. Incidentally, I have a box at work
that runs FC-3 on i386 and I had the same problem when trying to install
this package at work.

Any help is greatly appreciated.

Andy

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.yqcomputer.com/ The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Spamles » Mon, 28 Feb 2005 15:36:37


Source RPMs are different from others.

You will not find it in the database of installed packages (no executable
package was installed).

What you should find is the source code in

/usr/src/redhat/SOURCES

and the *.spec file in

/usr/src/redhat/SPECS

You can rebuild the binary package by

cd /usr/src/redhat/SPECS

and

rpmbuild -bb [spec.file.name]

(as root)

and find the binary RPMs in

/usr/src/redhat/RPMS/[varies]

(e.g. [varies] will probably be i386)

If you installed THOSE rpms (in /usr/src/redhat/RPMS/[varies])
they will show up in the data base of installed RPMs.

There is an RPM (NOT src.rpm) for kernel-source which can be used
to install the kernel source code (configured and set up for your
kernel) instead of using the src.rpm.

An advantage of using the src rpm is when you have changed something
(a library, etc.) on your system and the package could compile and
install but the binary rpm is configured to DEMAND certain versions
of libraries. In that case you may be able to get away with rebuilding
the binary RPMs or may actually have to install manually from source
(not a binary RPM).

Using Fedora Core 2, I have built the xorg-x11-6.8.2-1 src rpm
(from the fedora development site) and installed it and have a
more recent version of X running than do most Core 3 users!

If you have problems (something does not work) in building the
binary rpm, be sure to clean out the /var/tmp directory (which
is used in compiling the source code) or it will take up a lot
of space. Also, after building, clean out the /usr/src/redhat
tree (especially /usr/src/redhat/BUILD/ which will take up
a LOT of space).

I usually backup (burn to CD) the *src.rpm I downloaded (in case
I have to rebuild) as well as the binary RPMs I created (in case
I don't have to rebuild but want to reinstall).

 
 
 

Problems with kernel source RPM for Fedora C3

Post by Spamles » Mon, 28 Feb 2005 16:17:49


Another advantage is to be able to update using RPMs for packages
which provide spec files. E.g. gqview 2 just came out.
I got the *tar.gz file (they have a FC3 rpm but I don't want even
to try using that on FC2). That contains a *spec file.
Putting the *spec fild in /usr/src/redhat/SPECS and the *tar.gz
file in /usr/src/redhat/SOURCES, I can build the binary RPM and
install.

Of course if a spec file is not available then it may be a
matter of ./configure && make && make install
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Andrew Ka » Mon, 28 Feb 2005 18:03:07


I believe that the whole kernel source situation in linux has changed
recently. If it works then it must have unpacked the source and it is
probably in the new location:
/lib/modules/2.6.9-xyz/source although that may be a symlnk to build in the
same place.

I dont think it is any longer placed in /usr/src/linux although either
location can be THE location and symlnked to the other.

andrew k
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Markku Kol » Mon, 28 Feb 2005 22:21:13


No.


Read the Release Notes for Fedora Core 3, either in
file:/usr/share/doc/fedora-release-3/RELEASE-NOTES-x86-en.html or
http://www.yqcomputer.com/

--
Markku Kolkka
XXXX@XXXXX.COM
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Andrew Fal » Tue, 01 Mar 2005 01:52:19


Thank you. If memory serves, simply installing the src.rpm file in FC-2
was sufficient. In any event, this process seems ok. However, while
following the instructions in the release notes you pointed me to
(thanks by the way) I now get this error when I try to do 'make xconfig':

[root@localhost linux-2.6.9]# make xconfig
HOSTLD scripts/kconfig/qconf
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/qconf] Error 1
make: *** [xconfig] Error 2


What's up with this?

Andy

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.yqcomputer.com/ The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Alexander » Tue, 01 Mar 2005 02:17:52


No, up to FC2 there was a kernel-sourcecode RPM available.


yum install qt-devel


Alexander


--
Alexander Dalloz | Enger, Germany | GPG http://www.yqcomputer.com/ 0xB366A773
legal statement: http://www.yqcomputer.com/
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.10-1.14_FC2smp
Serendipity 18:16:57 up 6 days, 5:25, load average: 0.13, 0.30, 0.46
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Andrew Fal » Tue, 01 Mar 2005 10:10:59


When I installed FC-3 I installed everything. I figured QT was
installed with that.

On a different note, I used make menuconfig and found the ntfs stuff to
compile as a module. I did this and did make modules_install.
Apparently I'm still missing something because when I tried to do mount
-t ntfs /dev/hda3 /mnt I still get ntfs not supported by kernel. Do I
actually have to compile a new kernel even though all I'm trying to do
is make a new module?

Andy

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.yqcomputer.com/ The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Lenar » Tue, 01 Mar 2005 10:22:28


Check your /lib/modules/<kernel_version_#>/kernel/fs/ntfs directory for
the file ntfs.ko, if you don't have one then try again or visit;

http://www.yqcomputer.com/


--
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." -- B. Franklin, 1759
 
 
 

Problems with kernel source RPM for Fedora C3

Post by Spamles » Tue, 01 Mar 2005 14:09:09


Or try

make menuconfig

or even

make config

(the latter is a plain text version, straight through,
no backing up to edit prior entries)