Thanks for responding James and Oscar... after much agonising it dawned on me that I'd creamed my compiler... I'd uninstalled 3.3.2-6 and repaced it with 3.4.1-3 because vmware requested that I compile its interface with the same version the kernel was compiled with.
As soon as I reinstalled 3.3.2-6 things returned to normal, no more --as-needed rubbish, and I was able to proceeed with kernel compilation.
So - is there anything extra I ought to do when upgrading my compiler other than just installing the relevant rpms ? Magic spells etc ?
thanks
Rod


-----------------------------------------------------------
Brought to you by a thunderbird, penguin, gnu and a camel

James Gregory wrote:
On Sat, 2004-09-04 at 22:36 +1000, Rod Butcher wrote:

I'm compiling my kernel, mainly as an educational exercise. I've unpacked linux-2.6.7.tar.bz2 into /usr/src/temp/linux-2.6.7 and issued make mrproper. So far so good.
From then on, any make commands such as make oldconfig to compile using previous options give the following error :-
HOSTCC scripts/basic/fixdep
/usr/bin/ld: unrecognized option '--as-needed'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


I've done a file source seacrch and it doesn't find any files containg --as-needed .
????????


It will be a Makefile that you're looking for and if you can't find it,
it probably means you've got it in your environment somewhere. If it is
for educational purposes though, you might just want to take a look at
the instructions that are used to build the RPM. You can get them here:

http://cvs.mandrakesoft.com/cgi-bin/cvsweb.cgi/~checkout~/SPECS/kernel-2.6.8.0.rc2.2mdk/kernel-2.6.spec?rev=1.1&content-type=text/plain

HTH,

James.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to