Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gcc-Versions-Wirrwarr in Profilen... bitte um Hilfe.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
gosar
n00b
n00b


Joined: 01 Nov 2005
Posts: 52

PostPosted: Fri Aug 04, 2006 5:30 pm    Post subject: Gcc-Versions-Wirrwarr in Profilen... bitte um Hilfe. Reply with quote

Hallo..

ich habe neulich den aktuellen Gentoo-Kernel manuell kompiliert.
Angemeldet unter normalen Benutzer gosar, mit su in Superusermodus gewechselt und den Kernel erstellt.
Kernel installiert und neu gebootet.
Dabei fiel mir auf, dass mein WLAN-Modul ath_pci aus madwifi-ng natürlich nicht mehr vorhanden war.
Ergo dieses Package emerged. Wollte ich die Kernelmodule via modprobe ath_pci laden, gab es immer ein : "Invalid module format".
Laut Internetrecherche typisch bei Kompilierung (Kernel und Module) mit unterschiedlichen gcc-versionen.

Also habe ich das mal gecheckt und folgendes festgestellt:

User gosar

gcc-config -l:
Code:

 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.6 *
 [7] i686-pc-linux-gnu-3.4.6-hardened
 [8] i686-pc-linux-gnu-3.4.6-hardenednopie
 [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.6-hardenednossp



gcc --version
Code:
gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Als Superuser via su unter Anmeldung gosar:

gcc-config -l
Code:

 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.6 *
 [7] i686-pc-linux-gnu-3.4.6-hardened
 [8] i686-pc-linux-gnu-3.4.6-hardenednopie
 [9] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.6-hardenednossp


aber nun !!!!!!!!!

gcc --version
Code:
gcc (GCC) [b]3.3.6[/b] (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


erst ein source /etc/profile

bringt hier Synchronität auf gcc 3.4.6.

Nach diesem Befehl habe ich Kernel + Module + Ath-Modul neu kompiliert und nun funktioniert auch wieder meine Wlan-Karte.

Was muss ich machen, damit meine Profile korrekt funktionieren? Ich nicht als root immer source /etc/profile eingeben muss?


Danke,
Gosar
_________________
... and may the source be with Gnu ...


Last edited by gosar on Sun Aug 06, 2006 5:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
firefly
Watchman
Watchman


Joined: 31 Oct 2002
Posts: 5181

PostPosted: Fri Aug 04, 2006 5:37 pm    Post subject: Reply with quote

passiert das auch wenn du dich in der konsole (kein X) als root anmeldest ?

wenn nicht dann probvier mal ein
Code:
su -


das - sagt su das es sich so verhalten soll als ob du dich auf der konsole als root angemeldet hättest.
_________________
Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn.
Back to top
View user's profile Send private message
gosar
n00b
n00b


Joined: 01 Nov 2005
Posts: 52

PostPosted: Sat Aug 05, 2006 6:10 pm    Post subject: Reply with quote

Witzigerweise verhält er sich als Root in der Konsole richtig.

So weist ein gcc-config -l -> gcc 3.4.6 aus, genauso wie ein gcc --version auch gcc 3.4.6 bringt.
Benutze ich unter X als gosar das von Dir angegebene "su -", dann ist auch alles korrekt und synchron.

Melde ich mich an der Konsole (ohne X) als gosar an und wechsel dann auf su (ohne -), dann hat er wieder die Differenz.
Gebe ich aber stattdessen "su -" ein, so ist die Version mit dem Profil synchron.

Ne Idee ?
_________________
... and may the source be with Gnu ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum