Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: LKM compilation


  • Subject: Re: lug-bg: LKM compilation
  • From: whitefang@xxxxxx ( )
  • Date: Sat, 13 Apr 2002 04:40:36 +0300



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 12 April 2002 19:34, you wrote:
> > Zna4i tova e nqkakva stara distrubuciq bazirana na kernel 2.0 ili 2.2 i v
> > prehod ot libc5 kym libc6 (glibc 2) ili ti si si kompiliral sam glibc i
> > linuxthreads i nqkude v stari docs si pro4el za tezi symlinks ot
> > /usr/include kym /usr/src/linux.  Tova ne go pishe v docs na glibc, nito
> > pyk v docs na linuxthreads !!! Ta:
>
> Tova e Slackware 8 distribucia i viarno, veche ne e chak tolkova nova :)
> Naskoro imashe niakakva diskusia za headers i tam se kazvashe che glibc 2
> si ima kernel headers, i che vyprosnite symlinks predstavliavat niakakyv
> security thread (poneje moeto e domashna mashina sigurnostta ne e na
> pyrvo miasto). Rabotata e tam, che sled kato instalirah Slacka niamah
> nito tezi linkove, nito neshto kato /usr/include/linux, zatova gi
> syzdadoh rychno kato symlinkove.
>   V kraina smetka obache se kompilira jivotnoto, niamah drugi problemi s
> tova, za koeto blagodaria oshte vednyj

Predpolagam 4e problema ti e bil lipsvashtia -I /usr/src/linux/iclude.
Kolkoto do symlink-a /usr/include/linux-> /usr/src/linux/include/liux.
Ne e security "threat", a kakto kaza G.Danchev po vremeto na libc5 kernel-a se
e razvival dosta agresivno i ne e mojelo da se garantira ABI-to za syscalls. 
taka ,,4e vsiaka distribucia si izbira libc syvmestima s daden kernel .Oba4e 
ako ne me lyje pammeta Slack 4 e poslednata libc5 bazirana distribucia.
Taka 4e v /usr/include/linux triabva da imash kernel headers "against" koito 
ti e bila compilirana glibc. Mislia 4e po tozi vypros imashe iformacia vyv 
documentite za compilacia na C bibliotekata. ( ne sym siguren )
cp -xa /usr/src/linux/include/linux /usr/include
predi vsi4ko ostanalo ot build procesa na glibc2.

Za lipsvashtata opcia -I /usr/src/linux/include.
Vij /usr/src/linux/Makefile.

Za MODVERSIONS:
Principno bi triabvalo da si napishesh Makefile za tozi modul.
Edno ot neshtata koito sa zadyljieli e da compilirash module-a si s poddryjka 
na MODVERSIONS( syotvetno bez takava ) ako kernel-a e bil compiliran s opcia 
CONFIG_MODVERSIONS( syotvetno bez neia ), ina4e stava "mazalo" :)
Ili neshto ot sorta na(vyv Makefile-a):

include $(KERNELDIR)/.config
ifdef CONFIG_MODVERSIONS
        CFLAGS += -DMODVERSIONS -include $(KERNELDIR)/include/linux/modversions.h
endif

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8t4yamx3uqe61brwRApmdAKDsTPx7vFTPeNp8AncT5lVDfjICxwCfWxTT
wXWoFGx9oQLguFr9YyNdenc=
=4RY2
-----END PGP SIGNATURE-----
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.