Bari Posted May 11, 2006 Report Share Posted May 11, 2006 (edited) Trying to install slmodem-2.9.10 fom source after make command get the following error messages:- make -C modem all make[1]: Entering directory `/home/barry/Download/slmodem-2.9.10/modem' gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c modem.c: In function 'modem_reset': modem.c:1701: error: invalid storage class for function 'sregs_init' modem.c:1713: warning: implicit declaration of function 'sregs_init' modem.c: At top level: modem.c:1727: error: static declaration of 'sregs_init' follows non-static declaration modem.c:1713: error: previous implicit declaration of 'sregs_init' was here make[1]: *** [modem.o] Error 1 make[1]: Leaving directory `/home/barry/Download/slmodem-2.9.10/modem' make: *** [modem] Error 2 I assume that there are errors in the actual code of the programme and its nothing to do with the distro (Mandriva 2006) can anyone confirm pse or tell me what is saying? [moved from Hardware by spinynorman] Edited May 13, 2006 by Bari Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 12, 2006 Report Share Posted May 12, 2006 Have you got your kernel-source installed? Quote Link to comment Share on other sites More sharing options...
Bari Posted May 12, 2006 Author Report Share Posted May 12, 2006 I don't know as I am still fairly new to this, how do I check. I have pointed the makefile to /lib/modules/ and to the kernel version 2.6 I am assuming this is the kernel source? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 12, 2006 Report Share Posted May 12, 2006 The kernel source is usually under /usr/src. Here is my example: [ian@europa ~]$ ls -l /usr/src total 1 lrwxrwxrwx 1 root root 18 Apr 18 11:19 linux -> linux-2.6.12-18mdk/ drwxr-xr-x 21 root root 696 May 8 14:10 linux-2.6.12-18mdk/ drwxr-xr-x 7 root root 168 Apr 18 11:41 RPM/ As you can see, there is a symlink called linux pointing to linux-2.6.12-18mdk which is my kernel source. Try the same command, if you don't see similar to above, then you don't have your kernel-source installed. To install: urpmi kernel-source and then choose the main one, not stripped or mm source. Quote Link to comment Share on other sites More sharing options...
Bari Posted May 12, 2006 Author Report Share Posted May 12, 2006 Thanks for that I'll have a look I have also been told that it could be gcc 4, for this package I should be using gcc 3 I always thought these compilers were backwards compatable? Anyway off to have a look in usr. Quote Link to comment Share on other sites More sharing options...
Bari Posted May 12, 2006 Author Report Share Posted May 12, 2006 Ok, making a little bit of progress. I didn't have the kernel source installed , however after installing it got exactly the same error messages. So got rid of gcc4 and substituted gcc3 and the make worked fine...However the make install had a bit of a problem The sinstall instructions are to exit the makefile to point at the kernel source. The default is /lib/modules/ (kernel version/build. I then changed this to /usr/src/linux kernel version/build. on running make install got the error message that it couldn't find the build directory. (rats) so therefore it exited the make install. I have checked the source package and there is no seperate build directory. The install of the kernel source placed a link to build in /lib/modules/kernel but it just points to the /usr/src/kernel source. I have found these build directories in the kernel source should i point the makefile to one of these pse. /usr/src/linux-2.6.11-6mdk/3rdparty/mkbuild.pl /usr/src/linux-2.6.11-6mdk/Documentation/kbuild /usr/src/linux-2.6.11-6mdk/Documentation/kbuild/kconfig-language.txt /usr/src/linux-2.6.11-6mdk/Documentation/kbuild/00-INDEX /usr/src/linux-2.6.11-6mdk/Documentation/kbuild/makefiles.txt /usr/src/linux-2.6.11-6mdk/Documentation/kbuild/modules.txt /usr/src/linux-2.6.11-6mdk/arch/i386/boot/tools/build.c /usr/src/linux-2.6.11-6mdk/arch/x86_64/boot/tools/build.c /usr/src/linux-2.6.11-6mdk/fs/jffs2/build.c /usr/src/linux-2.6.11-6mdk/scripts/Makefile.build /usr/src/linux-2.6.11-6mdk/scripts/package/builddeb Quote Link to comment Share on other sites More sharing options...
Bari Posted May 13, 2006 Author Report Share Posted May 13, 2006 Ok, gave up on this after trying all sort of combinations and installled the smartlink rpm which didn't work either. Still I will be moving soon and getting broadband which i am told is easier to sort out than winmodems. Thanks to those who tried to help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.