From tsvika.hirst@minicom.com Mon Mar 22 03:37:55 2004 Received: with ECARTIS (v1.0.0; list devfs); Mon, 22 Mar 2004 03:37:58 -0800 (PST) Received: from minicom-mail.minicom.com ([192.114.161.102]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i2MBbrKO006452 for ; Mon, 22 Mar 2004 03:37:55 -0800 Received: from tsvikacomp061 ([192.114.161.98]) by minicom-mail.minicom.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 22 Mar 2004 13:39:30 +0200 Reply-To: From: "Tsvika Hirst" To: , Cc: "Nir Aloni \(E-mail\)" Subject: insmod fails on unresolved symbols Date: Mon, 22 Mar 2004 13:38:08 +0200 Message-ID: <000f01c41002$269aba70$9900a8c0@tsvikacomp061> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-OriginalArrivalTime: 22 Mar 2004 11:39:30.0140 (UTC) FILETIME=[568EE1C0:01C41002] X-archive-position: 180 X-ecartis-version: Ecartis v1.0.0 Sender: devfs-bounce@oss.sgi.com Errors-to: devfs-bounce@oss.sgi.com X-original-sender: tsvika.hirst@minicom.com Precedence: bulk X-list: devfs Content-Length: 3168 Lines: 100 Hello Richard, The two logs bellow are our unsuccessful tries to load a module mounted on devfs. Two of the 1st log errors were fixed by pointing to the same KERNEL_DIR and adding the MODULE_LICENCE("GPL") line. Still, we get unresolved symbols as seen in the 2nd log. We think we made all the necessary includes; see bellow. Please advice. Sincerely, Tsvika Hirst System Development Engineer Minicom Advanced Systems Ltd. 16 Hartom St., Har Hotsvim, Jerusalem 91450, Israel Phone +972 2 535 9657 Fax +972 2 535 9693 Surf: http://www.minicom.com 1st log: -sh-2.05b# insmod -f /home/mu_pq/gpio_drv_flash.o Warning: kernel-module version mismatch /home/mu_pq/gpio_drv_flash.o was compiled for kernel version 2.4.23 while this kernel is version 2.4.24 /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol unregister_chrdev /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol register_chrdev /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __save_flags_ptr /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __restore_flags /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol printk /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __cli /home/mu_pq/gpio_drv_flash.o: Hint: You are trying to load a module without a GPL compatible license and it has unresolved symbols. Contact the module supplier for assistance, only they can help you. 2nd log: ... Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) devfs: boot_options: 0x1 JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB. pty: 256 Unix98 ptys configured Generic RTC Driver v1.07 devsoc: devsoc_init: ... Starting portmap daemon: portmap. INIT: Entering runlevel: 2 Warning: kernel-module version mismatch /home/mu_pq/gpio_drv_flash.o was compiled for kernel version 2.4.24 while this kernel is version 2.4.24-MUPQ-04 /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol devfs_register /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __save_flags_ptr /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol devfs_unregister /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __restore_flags /home/mu_pq/gpio_drv_flash.o: /home/mu_pq/gpio_drv_flash.o: unresolved symbol __cli 192.168.0.152 login: error on open of /dev/gpio: No such file or directory ... from gpio_drv_flash.c: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gpio_drv_flash.h"