Jump to content

Error messages after 'make' command/Gave up...


Recommended Posts

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 by Bari
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. :thumbs:

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...