View previous topic :: View next topic |
Author |
Message |
gosar n00b
Joined: 01 Nov 2005 Posts: 52
|
Posted: Fri Aug 04, 2006 5:30 pm Post subject: Gcc-Versions-Wirrwarr in Profilen... bitte um Hilfe. |
|
|
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 |
|
|
firefly Watchman
Joined: 31 Oct 2002 Posts: 5329
|
Posted: Fri Aug 04, 2006 5:37 pm Post subject: |
|
|
passiert das auch wenn du dich in der konsole (kein X) als root anmeldest ?
wenn nicht dann probvier mal ein
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 |
|
|
gosar n00b
Joined: 01 Nov 2005 Posts: 52
|
Posted: Sat Aug 05, 2006 6:10 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|