Re: lug-bg: LKM compilation
- Subject: Re: lug-bg: LKM compilation
- From: mitko@xxxxxxx (Dimitar Peikov)
- Date: Mon, 15 Apr 2002 13:37:57 +0300
On Mon, 15 Apr 2002 12:54:56 +0300
"Alexander Atanasov" <alex@xxxxxx> wrote:
> Hi there!
>
> >
> >Problema se okazva v podavaneto na argumentite na 'ld'. Po princip
> >sam fen na FreeBSD, a tam kak shte podadesh parametrite na ld njama
> >znachenie, vse go smila. Samo che ne taka stoi problema s
> >Slackware:-((
>
> Slackware 3,4,X idvaha sys gcc/binutils koito imaha niakakvi griji
> mislia si che problema s tova syshtia kato s compile na module-to.
>
> >
> >Generiraneto na libxxx.so po star priom go pravia na 2 pass-a ->
> >
> >1)
> >gcc -c -o $@ $<
> >
> >2)
> >ld -shared -lc *.o
> >
> >I problema e tochno v 2). Ako se prexvurli -lc sled *.o vsichko si
> >varvi, njama problemi. Za tova i tova koeto si napravil raboti,
> >zashtoto gcc-to prashta parametrite pravilno na ld. prosto mi otne
> >malko vreme da se usetja kade e problema. :-((
>
> Po princip si gi hvashtat da,no moje bi niakoi po stari versii si
> spazvat po strictno formata na args , gledah v man page na ld sega
> na redhat 5.2 i freebsd (staro kato sveta niakakvo) i v dvata
> pishe:
> ld [-o output] objfile....
> goliam salam s argumenti.
>
>
> >
> >BTW: Podoben problem imam samo na Slackware. Sashta code pod *BSD,
> >Red Hat, SuSE, Solaris raboti bez problemi! Imam predvid che linker-a
> >na drugite platformi se useshta za bibliotekite :-))
>
> Kakvi sa versiite na gcc i ld ?
>
Slackware 8
$ gcc --version
2.95.3
$ ld --version
GNU ld 2.11.90.0.19
FreeBSD 4.5 :
$ gcc --version
2.95.3
$ ld --version
GNU ld 2.11.2 20010719 [FreeBSD]
OpenBSD 3.0 :
$ gcc --version
2.95.3
ld ne si pokazva versiata :-(( ili trjabva da se pochete malko poveche
po vaprossa.
Red Hat 7 :
$ gcc --version
egcs-2.91.66
$ ld --version
GNU ld 2.9.5
SuSE 6.4 :
$ gcc --version
2.95.2
$ ld --version
GNU ld 2.9.5
Tova mi e pod ruka.
>
>
> --
> have fun,
> alex
>
> =====================================================================
> ====== A mail-list of Linux Users Group - Bulgaria (bulgarian
> linuxers) http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd.
> - Stara Zagora
>
--
Dimitar Peikov
Programmer Analyst
Globalization Group
"We Build e-Business"
RILA Solutions
27 Building, Acad.G.Bonchev Str.
1113 Sofia, Bulgaria
phone: (+359 2) 9797320
phone: (+359 2) 9797300
fax: (+359 2) 9733355
http://www.rila.com
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|