abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    včera 13:11 | Upozornění

    V neděli 30. června skončí (EOL) podpora CentOS Linux 7.

    Ladislav Hagara | Komentářů: 10
    včera 10:44 | Zajímavý článek

    David Tschumperlé a Garry Osgood v obšírném článku se spoustou náhledů shrnují vývoj multiplatformního svobodného frameworku pro zpracování obrazu G'MIC (GREYC's Magic for Image Computing, Wikipedie) za poslední rok.

    Ladislav Hagara | Komentářů: 2
    23.6. 13:22 | IT novinky

    Andrew S. Tanenbaum byl oceněn 2023 ACM Software System Award (Wikipedie) za operační systém MINIX.

    Ladislav Hagara | Komentářů: 1
    23.6. 10:22 | Komunita

    Celkový počet stažení aplikací z Flathubu překročil 2 miliardy. Aktuální Statistiky Flathubu: Celkový počet stažení 2 002 793 783. Celkem desktopových aplikací 2 636.

    Ladislav Hagara | Komentářů: 15
    21.6. 23:33 | Nová verze

    Byla vydána nová verze 4.8.0 programu na úpravu digitálních fotografií darktable (Wikipedie).

    Ladislav Hagara | Komentářů: 0
    21.6. 23:11 | Zajímavý článek

    Nová čísla časopisů od nakladatelství Raspberry Pi: MagPi 142 (pdf) a HackSpace 79 (pdf).

    Ladislav Hagara | Komentářů: 0
    21.6. 18:22 | Nová verze

    Qtractor (Wikipedie) dospěl do verze 1.0.0. Jedná se o Audio/MIDI vícestopý sekvencer.

    Ladislav Hagara | Komentářů: 0
    21.6. 14:33 | Nová verze

    Byl vydán svobodný kancelářský balík OnlyOffice Docs 8.1. Vedle četných oprav přináší několik funkcí včetně podpory editace textu v PDF a vytváření formulářů v PDF.

    Fluttershy, yay! | Komentářů: 51
    21.6. 12:33 | Zajímavý článek

    Daniel Stenberg, autor nástroje curl, z databáze SteamDB zjistil, že aktuálně 22 734 her na Steamu používá curl.

    Ladislav Hagara | Komentářů: 5
    20.6. 19:55 | IT novinky

    Společnost Anthropic vydala Claude 3.5 Sonnet, tj. novou verzi své umělé inteligence Claude (Wikipedie). Videoukázky na YouTube. S Claude 3, stejně jak s GPT-3.5, Llama 3 a Mixtral, si lze pokecat bez přihlašování na DuckDuckGo AI Chat.

    Ladislav Hagara | Komentářů: 0
    Rozcestník

    Administrace komentářů

    Jste na stránce určené pro řešení chyb a problémů týkajících se diskusí a komentářů. Můžete zde našim administrátorům reportovat špatně zařazenou či duplicitní diskusi, vulgární či osočující příspěvek a podobně. Děkujeme vám za vaši pomoc, více očí více vidí, společně můžeme udržet vysokou kvalitu AbcLinuxu.cz.

    Příspěvek
    16.7.2006 00:16 diverman | skóre: 32 | blog: život s tučňáčkem
    Rozbalit Rozbalit vše Chyba při kompilci modulu
    Ahoj, pokouším se naučit zase něco nového, ale zasekl jsem se na problému. Kompiluji modul podle tohoto článku.

    hello.c:
    #ifdef MODULE
    
    #include <linux/kernel.h>
    #include <linux/module.h>
    #include <linux/init.h>
    
    EXPORT_NO_SYMBOLS;
    
    /* Protos */
    static int hello_init(void) __init;
    static void hello_exit(void) __exit;
    
    /* Module Lifecycle */
    module_init(hello_init);
    module_exit(hello_exit);
    
    static int __init hello_init(void)
    {
            printk(KERN_INFO "Hello world !!!\n");
            return 0;
    }
    
    static void __exit hello_exit(void)
    {
    	printk(KERN_INFO "Bye Bye !!!\n");
            return;
    }
    
    #endif /* MODULE */
    
    Makefile:
    
    all: hello.o
    hello.o: hello.c
    	gcc -Wall -O2 -I /usr/src/linux/include -D__KERNEL__ -DMODULE -o hello.o -c  hello.c
    
    chyba:
    gcc -Wall -O2 -I /usr/src/linux/include -D __KERNEL__ -D MODULE -o hello.o -c  hello.c
    In file included from /usr/src/linux/include/asm/processor.h:18,
                     from /usr/src/linux/include/asm/thread_info.h:17,
                     from /usr/src/linux/include/linux/thread_info.h:21,
                     from /usr/src/linux/include/linux/preempt.h:10,
                     from /usr/src/linux/include/linux/spinlock.h:50,
                     from /usr/src/linux/include/linux/capability.h:45,
                     from /usr/src/linux/include/linux/sched.h:7,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/system.h: In function '__set_64bit_var':
    /usr/src/linux/include/asm/system.h:210: warning: dereferencing type-punned pointer will break strict-aliasing rules
    /usr/src/linux/include/asm/system.h:210: warning: dereferencing type-punned pointer will break strict-aliasing rules
    In file included from /usr/src/linux/include/linux/rwsem.h:27,
                     from /usr/src/linux/include/asm/semaphore.h:42,
                     from /usr/src/linux/include/linux/sched.h:20,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/rwsem.h: In function '__down_read':
    /usr/src/linux/include/asm/rwsem.h:105: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/rwsem.h: In function '__down_write':
    /usr/src/linux/include/asm/rwsem.h:157: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/rwsem.h: In function '__up_read':
    /usr/src/linux/include/asm/rwsem.h:194: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/rwsem.h:188: warning: unused variable 'tmp'
    /usr/src/linux/include/asm/rwsem.h: In function '__up_write':
    /usr/src/linux/include/asm/rwsem.h:220: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/rwsem.h: In function '__downgrade_write':
    /usr/src/linux/include/asm/rwsem.h:245: error: syntax error before 'KBUILD_BASENAME'
    In file included from /usr/src/linux/include/linux/sched.h:20,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/semaphore.h: In function 'down':
    /usr/src/linux/include/asm/semaphore.h:105: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/semaphore.h: In function 'down_interruptible':
    /usr/src/linux/include/asm/semaphore.h:130: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/semaphore.h: In function 'down_trylock':
    /usr/src/linux/include/asm/semaphore.h:155: error: syntax error before 'KBUILD_BASENAME'
    /usr/src/linux/include/asm/semaphore.h: In function 'up':
    /usr/src/linux/include/asm/semaphore.h:179: error: syntax error before 'KBUILD_BASENAME'
    In file included from /usr/src/linux/include/asm/smp.h:18,
                     from /usr/src/linux/include/linux/smp.h:19,
                     from /usr/src/linux/include/linux/sched.h:26,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/mpspec.h:6:25: error: mach_mpspec.h: není souborem ani adresářem
    In file included from /usr/src/linux/include/asm/smp.h:18,
                     from /usr/src/linux/include/linux/smp.h:19,
                     from /usr/src/linux/include/linux/sched.h:26,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/mpspec.h: At top level:
    /usr/src/linux/include/asm/mpspec.h:8: error: 'MAX_MP_BUSSES' undeclared here (not in a function)
    /usr/src/linux/include/asm/mpspec.h:23: error: 'MAX_IRQ_SOURCES' undeclared here (not in a function)
    In file included from /usr/src/linux/include/linux/smp.h:19,
                     from /usr/src/linux/include/linux/sched.h:26,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/smp.h:77:26: error: mach_apicdef.h: není souborem ani adresářem
    In file included from /usr/src/linux/include/linux/smp.h:19,
                     from /usr/src/linux/include/linux/sched.h:26,
                     from /usr/src/linux/include/linux/module.h:10,
                     from hello.c:4:
    /usr/src/linux/include/asm/smp.h: In function 'hard_smp_processor_id':
    /usr/src/linux/include/asm/smp.h:81: warning: implicit declaration of function 'GET_APIC_ID'
    hello.c: At top level:
    hello.c:7: warning: type defaults to 'int' in declaration of 'EXPORT_NO_SYMBOLS'
    hello.c:7: warning: data definition has no type or storage class
    make: *** [hello.o] Error 1
    
    uname -r: 2.6.16.20, /usr/src/linux->/usr/src/linux-2.6.16.20
    deb http://ftp.cz.debian.org/debian jessie main contrib non-free

    V tomto formuláři můžete formulovat svou stížnost ohledně příspěvku. Nejprve vyberte typ akce, kterou navrhujete provést s diskusí či příspěvkem. Potom do textového pole napište důvody, proč by měli admini provést vaši žádost, problém nemusí být patrný na první pohled. Odkaz na příspěvek bude přidán automaticky.

    Vaše jméno
    Váš email
    Typ požadavku
    Slovní popis
    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.