Carl, I was able to install linux-headers-2.16.* on my System and can confirm the failure you reported even for a slusb compile alone. I've requested assistance from the code originator Sasha K. The failure is concerned with.BUILD_BUG_ON_ZERO , which is not included in the sl-modem-source itself. This renders it beyond my capabilties to proceed. I am attaching the compile record, for others interest. MarvS On Sun, Jul 26, 2015 at 8:28 PM, Carl D. Goldin <cdgoldin@xxxxxxxxx> wrote: > Mr. Stodolsky, > > dkms was already installed. The compile is failing (just as it did before) > :-( Console log follows: > > $ sudo apt-get install sl-modem-dkms > [sudo] password for cdg: > Reading package lists... Done > Building dependency tree > Reading state information... Done > sl-modem-dkms is already the newest version. > > $ cd /usr/src/sl-modem-2.9.11~20110321/drivers > /usr/src/sl-modem-2.9.11~20110321/drivers $ sudo make clean > rm -f kernel-ver slamr.o slusb.o slamr.ko slusb.ko *st7554.o amrmo_init.o > sysdep_amr.o *.mod.* .*.cmd *~ slusb.* > rm -f -r .tmp_versions > > $ sudo make > doing kernel-ver:: > cc -I/lib/modules/3.16.0-38-generic/build/include -o kernel-ver kernel-ver.c > make all KERNEL_VER=3.16.0-38-generic > make[1]: Entering directory `/usr/src/sl-modem-2.9.11~20110321/drivers' > obj-m=slamr.o slusb.o > slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o > make modules -C /lib/modules/3.16.0-38-generic/build > SUBDIRS=/usr/src/sl-modem-2.9.11~20110321/drivers > make[2]: Entering directory `/usr/src/linux-headers-3.16.0-38-generic' > CC [M] /usr/src/sl-modem-2.9.11~20110321/drivers/amrmo_init.o > In file included from include/linux/thread_info.h:11:0, > from ./arch/x86/include/asm/preempt.h:6, > from include/linux/preempt.h:18, > from include/linux/spinlock.h:50, > from include/linux/seqlock.h:35, > from include/linux/time.h:5, > from include/linux/stat.h:18, > from include/linux/module.h:10, > from /usr/src/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:57: > include/linux/bug.h:33:45: error: negative width in bit-field ‘<anonymous>’ > #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) > ^ > include/linux/kernel.h:851:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’ > BUILD_BUG_ON_ZERO((((perms) >> 3) & 7) < ((perms) & 7)) + \ > ^ > include/linux/moduleparam.h:193:31: note: in expansion of macro > ‘VERIFY_OCTAL_PERMISSIONS’ > = { __param_str_##name, ops, VERIFY_OCTAL_PERMISSIONS(perm), \ > ^ > include/linux/moduleparam.h:140:2: note: in expansion of macro > ‘__module_param_call’ > __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1) > ^ > include/linux/moduleparam.h:128:2: note: in expansion of macro ‘module_param_cb’ > module_param_cb(name, ¶m_ops_##type, &value, perm); \ > ^ > include/linux/moduleparam.h:113:2: note: in expansion of macro > ‘module_param_named’ > module_param_named(name, name, type, perm) > ^ > /usr/src/sl-modem-2.9.11~20110321/drivers/amrmo_init.c:738:1: note: in expansion > of macro ‘module_param’ > module_param(debug, int, 1); > ^ > make[3]: *** [/usr/src/sl-modem-2.9.11~20110321/drivers/amrmo_init.o] Error 1 > make[2]: *** [_module_/usr/src/sl-modem-2.9.11~20110321/drivers] Error 2 > make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-38-generic' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/src/sl-modem-2.9.11~20110321/drivers' > make: *** [all] Error 2 > > > ----- Original Message ----- > From: "Marvin Stodolsky" <marvin.stodolsky@xxxxxxxxx> > To: "Carl D. Goldin" <cdgoldin@xxxxxxxxx>; "Discuss" <Discuss@xxxxxxxxxxxxx> > Sent: Sunday, July 26, 2015 16:22 > Subject: Re: Linux Mint 17.2 - Smartlink problems > > > Carl, > > Either the compile is failing or dkms automatic update for sl-modem is > not implemented. > Let's check the possibilites. > > First do: > $ sudo apt-get install sl-modem-dkms > which should fix automation issues. > > On my System the driver code package is at: > /usr/src/sl-modem-2.9.11~20110321/drivers/ > Therein the results of a compile are shown, though only slusb.ko is > compiled on my 64 bit system. Run the equivalent on your system, and > report the results. > > MarvS > --------- > > /usr/src/sl-modem-2.9.11~20110321/drivers$ sudo make clean. > [sudo] password for marv: > rm -f kernel-ver slusb.o slusb.ko *st7554.o amrmo_init.o > sysdep_amr.o *.mod.* .*.cmd *~ slusb.* > rm -f -r .tmp_versions > > $ sudo make > doing kernel-ver:: > cc -I/lib/modules/3.13.0-58-generic/build/include -o kernel-ver kernel-ver.c > make all KERNEL_VER=3.13.0-58-generic > make[1]: Entering directory `/usr/src/sl-modem-2.9.11~20110321/drivers' > obj-m= slusb.o > slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o > make modules -C /lib/modules/3.13.0-58-generic/build > SUBDIRS=/usr/src/sl-modem-2.9.11~20110321/drivers > make[2]: Entering directory `/usr/src/linux-headers-3.13.0-58-generic' > CC [M] /usr/src/sl-modem-2.9.11~20110321/drivers/st7554.o > LD [M] /usr/src/sl-modem-2.9.11~20110321/drivers/slusb.o > Building modules, stage 2. > MODPOST 1 modules > CC /usr/src/sl-modem-2.9.11~20110321/drivers/slusb.mod.o > LD [M] /usr/src/sl-modem-2.9.11~20110321/drivers/slusb.ko > make[2]: Leaving directory `/usr/src/linux-headers-3.13.0-58-generic' > finished all: > make[1]: Leaving directory `/usr/src/sl-modem-2.9.11~20110321/drivers' > > $ ls -l *.ko > -rw-r--r-- 1 root root 34350 Jul 26 19:13 slusb.ko > > > > On Sun, Jul 26, 2015 at 6:25 PM, Carl D. Goldin <cdgoldin@xxxxxxxxx> wrote: >> After receiving your email (dated Sunday, July 26, 2015 14:01 MST) >> >> 1) I reinstalled Mint 17.2 using "Update Manager" as before. >> >> 2) I rebooted. The modem/telephone remained ON-hook, so no problem yet. >> >> 3) I ran "Software Updater" to install the new kernel 3.16.0-38 and (if the >> details list can be believed) also the headers as before. >> >> 4) I verified that the headers for 3.16.0-38 are present now. >> >> $ ls -d /usr/src/linux* >> /usr/src/linux-headers-3.13.0-24 >> /usr/src/linux-headers-3.13.0-24-generic >> /usr/src/linux-headers-3.13.0-37 >> /usr/src/linux-headers-3.13.0-37-generic >> /usr/src/linux-headers-3.16.0-38 >> /usr/src/linux-headers-3.16.0-38-generic >> /usr/src/linux-OLDVERSION.1437435053 >> /usr/src/linux-OLDVERSION.1437435465 >> /usr/src/linux-OLDVERSION.1437555656 >> /usr/src/linux-OLDVERSION.1437727041 >> >> 5) I rebooted. Immediately, the modem/telephone went OFF-hook, which indicates >> that DKMS did NOT automatically complile the necessary modules? >> >> 6) The slamr, slusb and ungrab-winmodem modules are still there, but they are >> NOT in the 3.16.0-38 library! >> >> $ find /lib/modules -name slamr.ko >> /lib/modules/3.13.0-24-generic/kernel/drivers/misc/slamr.ko >> /lib/modules/3.13.0-37-generic/kernel/drivers/misc/slamr.ko >> $ find /lib/modules -name slusb.ko >> /lib/modules/3.13.0-24-generic/kernel/drivers/misc/slusb.ko >> /lib/modules/3.13.0-37-generic/kernel/drivers/misc/slusb.ko >> $ find /lib/modules -name ungrab-wimodem.ko >> $ find /lib/modules -name ungrab-wimodem.ko >> $ find /lib/modules -name ungrab-winmodem.ko >> /lib/modules/3.13.0-24-generic/kernel/drivers/misc/ungrab-winmodem.ko >> /lib/modules/3.13.0-37-generic/kernel/drivers/misc/ungrab-winmodem.ko >> >> 7) Predictably, "wvdialconf" does not detect a modem, and "minicom" cannot >> find >> /dev/ttySL0: >> >> 8) As advised, I made the following changes to >> /etc/modprobe.d/blacklist-modem.conf: >> >> # Uncomment these entries in order to blacklist unwanted modem drivers >> blacklist snd-atiixp-modem >> blacklist snd-via82xx-modem >> blacklist snd-intel8x0m >> >> 9) However, rebooting after blacklisting them did NOT affect the >> modem/telephone >> off-hook problem. >> >> 10 It appears that I need to recompile, but that is precisely where I was when >> I >> contacted you 7/23. Should I go through that same procedure again, and hope >> for >> a different result this time? Should I use the >> https://help.ubuntu.com/community/DialupModemHowto/Smartlink procedure, or the >> one contained in the >> http://linmodems.technion.ac.il/packages/martlink/slmodem-2.9.11-20070505.tar.gz >> readme file, as the two are considerably different? >> >> ----- Original Message ----- >> From: "Marvin Stodolsky" <marvin.stodolsky@xxxxxxxxx> >> To: "Carl D. Goldin" <cdgoldin@xxxxxxxxx> >> Cc: "Antonio Olivares" <olivares14031@xxxxxxxxx> >> Sent: Sunday, July 26, 2015 14:01 >> Subject: Re: Sorry for the duplicate messages. >> >> >> Carl, >> >> Much time would have been saved if we earlier had ModemData.txt. For >> it reveals concerning your: >> ------ >> ULi Electronics Inc. SmartLink SmartPCI563 56K Modem" >> CLASS=0703 >> PCIDEV=10b9:545a >> SUBSYS=201f:545a >> >> AND that: >> llinux-headers-3.16.0-38-generic resources needed for compiling are >> not manifestly ready! >> >> On my System there is shown by: >> $ ls -d /usr/src/linux* >> /usr/src/linux-headers-3.13.0-52 >> /usr/src/linux-headers-3.13.0-52-generic >> /usr/src/linux-headers-3.13.0-58 >> /usr/src/linux-headers-3.13.0-58-generic >> --- >> >> These are linux-header files needed for compiling. For compiling under your >> kernel 3.16.0-38-generic, there should be at least folders >> /usr/src/linux-headers-3.16.0-38 >> /usr/src/linux-headers-3.16.0-38-generic >> >> These are not automatically installed upon kernel upgrades, so do >> $ sudo apt-get install linux-headers-3.16.0-38-generic >> which should install both packages. Check afterward with: >> $ ls -d /usr/src/linux* >> >> Then just reboot. Since DKMS is installed your system, there should >> be automatically compiled and installed modules: slamr, slusb and >> ungrab-wimodem. Check with: >> $ find /lib/modules/ -name ModuleName.ko >> >> If ok, just rerun your modem test routines >> >> As Antonio suggested the following modules are not needed and are >> least taking up RAM space: snd_atiixp_modem, snd_via82xx_modem, and >> snd_intel8x0m >> So before rebooting use with your favorite text editor (nano, gedit, >> vi etc) to do: >> $ sudo gedit /etc/modprobe.d/blacklist-modem.conf >> delete the leading # in the two lines below and save. >> # blacklist snd-atiixp-modem >> # blacklist snd-via82xx-modem >> and add: >> snd_intel8x0m >> >> Save and reboot. >> Report back presently >> >> MarvS >> >> On Sun, Jul 26, 2015 at 12:39 PM, Carl D. Goldin <cdgoldin@xxxxxxxxx> wrote: >>> Sorry. I couldn't find it before. Please see attached. >>> >>> ----- Original Message ----- >>> From: "Antonio Olivares" <olivares14031@xxxxxxxxx> >>> To: "Carl D. Goldin" <cdgoldin@xxxxxxxxx> >>> Cc: "Marvin Stodolsky" <marvin.stodolsky@xxxxxxxxx> >>> Sent: Sunday, July 26, 2015 09:26 >>> Subject: Re: Sorry for the duplicate messages. >>> >>> >>> Carl, from what you send, it is there: >>> >>> cdg@System5 ~ $ wget http://linmodems.technion.ac.il/packages/scanModem.gz >>> --2015-07-26 06:37:42-- >>> http://linmodems.technion.ac.il/packages/scanModem.gz >>> Resolving linmodems.technion.ac.il (linmodems.technion.ac.il)... >>> 132.68.73.235 >>> Connecting to linmodems.technion.ac.il >>> (linmodems.technion.ac.il)|132.68.73.235|:80... connected. >>> HTTP request sent, awaiting response... 200 OK >>> Length: 84950 (83K) [application/x-gzip] >>> Saving to: ‘scanModem.gz’ >>> >>> 100%[======================================>] 84,950 160KB/s in 0.5s >>> >>> 2015-07-26 06:37:44 (160 KB/s) - ‘scanModem.gz’ saved [84950/84950] >>> >>> cdg@System5 ~ $ gunzip scanModem.gz >>> cdg@System5 ~ $ chmod +x scanModem >>> cdg@System5 ~ $ sudo ./scanModem >>> [sudo] password for cdg: >>> UPDATE=2011_08_08 >>> Continuing as this update is only -2 weeks old, >>> but the current Update is always at: http://linmodems.technion.ac.il >>> >>> DISTRIB_ID=LinuxMint >>> ./scanModem: line 515: test: : integer expression expected >>> ./scanModem: line 743: test: : integer expression expected >>> Identifying PCI bus slots with candidate modems. >>> Running PCIbus cases >>> Analysing card in PCI bus 05:05.0, writing to scanout.05:05.0 >>> Analysing card in PCI bus 00:14.2, writing to scanout.00:14.2 >>> Analysing card in PCI bus 01:00.1, writing to scanout.01:00.1 >>> Using scanout.05:05.0 data, and writing guidance to ModemData.txt >>> Read DOCs/Smartlink.txt >>> Writing DOCs/Smartlink.txt >>> Using scanout.00:14.2 data, and writing guidance to ModemData.txt >>> Using scanout.01:00.1 data, and writing guidance to ModemData.txt >>> >>> Writing residual guidance customized to your System. >>> grep: /lib/modules/3.16.0-38-generic/build/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-headers-3.13.0-24/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-headers-3.13.0-24-generic/include/linux/version.h: >>> No such file or directory >>> grep: /usr/src/linux-headers-3.13.0-37/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-headers-3.13.0-37-generic/include/linux/version.h: >>> No such file or directory >>> grep: /usr/src/linux-headers-3.16.0-38/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-headers-3.16.0-38-generic/include/linux/version.h: >>> No such file or directory >>> grep: /usr/src/linux-OLDVERSION.1437435053/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-OLDVERSION.1437435465/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-OLDVERSION.1437555656/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/linux-OLDVERSION.1437727041/include/linux/version.h: No >>> such file or directory >>> grep: /usr/src/vboxhost-4.3.28/include/linux/version.h: No such file >>> or directory >>> grep: /usr/src/virtualbox-guest-4.3.18/include/linux/version.h: No >>> such file or directory >>> A subfolder Modem/ has been written, containing these files with >>> more detailed Information: >>> ------------------------------------------------------------------------------------------ >>> 1stRead.txt Bootup.txt dmesg.txt DOCs >>> ModemData.txtscanout.00:14.2 scanout.01:00.1 scanout.05:05.0 tmp and in >>> the DOCs subfolder: DriverCompiling.txt InfoGeneral.txt Rational.txt >>> Smartlink.txtSoftModem.txt Testing.txt UNSUBSCRIBE.txt >>> wvdial.txtYourSystem.txt------------------------------------------------------------------------------------------- >>> Please read 1stRead.txt first for Guidance.cdg@System5 ~ $Look here ----> A >>> subfolder Modem/ has been written, containing these files withmore detailed >>> Information: ------------------------------------------------------------------------------------------ >>> 1stRead.txt Bootup.txt dmesg.txt DOCs >>> ModemData.txt<----------------------------------------------Best >>> Regards,AntonioP.S send output of ModemData.txt not only to mer but Marv >>> also ifyou can. ThanksOn Sun, Jul 26, 2015 at 8:46 AM, Carl D. Goldin >>> <cdgoldin@xxxxxxxxx> wrote:> Dear Mr. Olivares,>> I followed the instructions >>> you provided (below), and there is still no> "ModemData.txt" in my file >>> system. I've attached the console log, which> indicates various >>> errors.>> ----- Original Message -----> From: "Antonio Olivares" >>> <olivares14031@xxxxxxxxx>> To: "Carl D. Goldin" <cdgoldin@xxxxxxxxx>> Sent: >>> Sunday, July 26, 2015 00:44> Subject: Re: Sorry for the duplicate >>> messages.>>> >>> Dear Carl,>> Output of scanModem.gz would be several files, one of these >>> is/would> be ModemData.txt. If you can please do download/ or use> $ wget >>> http://linmodems.technion.ac.il/packages/scanModem.gz> $ gunzip scanModem.gz> >>> $ chmod +x scanModem> $ sudo ./scanModem>> then please send us ModemData.txt >>> to me or both Marv and I.>> for example:> # chmod +x scanModem> # >>> ./scanModem> >>> UPDATE=2011_08_08> Continuing as this update is only -2 weeks old,> but the >>> current Update is always at: http://linmodems.technion.ac.il>> ./scanModem: >>> line 515: test: : integer expression expected> ./scanModem: line 743: test: : >>> integer expression expected> Identifying PCI bus slots with candidate >>> modems.> >>> Running PCIbus cases> Analysing card in PCI bus 00:14.2, writing to >>> scanout.00:14.2> Analysing card in PCI bus 01:00.1, writing to >>> scanout.01:00.1> Using scanout.00:14.2 data, and writing guidance to >>> ModemData.txt> Using scanout.01:00.1 data, and writing guidance to >>> ModemData.txt> Writing residual guidance customized to your System.> grep: >>> /lib/modules/3.18.11/build/include/linux/version.h: No such file> or >>> directory> grep: /usr/src/linux/include/linux/version.h: No such file or >>> directory> grep: /usr/src/linux-3.18.11/include/linux/version.h: No such file >>> ordirectory> A subfolder Modem/ has been written, containing these files >>> with> more detailed >>> >>> formation:> ------------------------------------------------------------------------------------------ >>> 1stRead.txt Bootup.txt DOCs ModemData.txt >>> dmesg.txtscanout.00:14.2scanout.01:00.1 tmp and in the DOCs >>> subfolder:DriverCompiling.txt InfoGeneral.txt Rational.txt >>> SoftModem.txtTesting.txtUNSUBSCRIBE.txt >>> YourSystem.txtwvdial.txt------------------------------------------------------------------------------------------- >>> Please read 1stRead.txt first for Guidance.$ catModem/ModemData.txtBest >>> Regards,AntonioOn Sun, Jul 26, 2015 at 2:12 AM, Carl D.Goldin >>> <cdgoldin@xxxxxxxxx> wrote:> My email to you kep bouncing because of >>> MIMEcontent, even though I sent ittext> only. So I kept trying various >>> alternatives,and it kept bouncing.Then I> realized that only >>> "Discuss@xxxxxxxxxxxxx" wasbouncing the message. Sorry for> the duplicates >>> that you received. Please ignoreall except the one with three> attachments. >>> Thank you.> >> >
doing kernel-ver:: cc -I/usr/src/linux-headers-3.16.0-26-generic/include -o kernel-ver kernel-ver.c make all KERNEL_VER=3.16.0-26-generic make[1]: Entering directory `/usr/src/sl-modem-2.9.11~20110321/drivers' obj-m= slusb.o slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o make modules -C /usr/src/linux-headers-3.16.0-26-generic SUBDIRS=/usr/src/sl-modem-2.9.11~20110321/drivers make[2]: Entering directory `/usr/src/linux-headers-3.16.0-26-generic' CC [M] /usr/src/sl-modem-2.9.11~20110321/drivers/st7554.o make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-26-generic' make[1]: Leaving directory `/usr/src/sl-modem-2.9.11~20110321/drivers' doing kernel-ver:: cc -I/usr/src/linux-headers-3.16.0-26-generic/include -o kernel-ver kernel-ver.c make all KERNEL_VER=3.16.0-26-generic make[1]: Entering directory `/usr/src/sl-modem-2.9.11~20110321/drivers' obj-m= slusb.o slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o make modules -C /usr/src/linux-headers-3.16.0-26-generic SUBDIRS=/usr/src/sl-modem-2.9.11~20110321/drivers make[2]: Entering directory `/usr/src/linux-headers-3.16.0-26-generic' CC [M] /usr/src/sl-modem-2.9.11~20110321/drivers/st7554.o In file included from include/linux/thread_info.h:11:0, from ./arch/x86/include/asm/preempt.h:6, from include/linux/preempt.h:18, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /usr/src/sl-modem-2.9.11~20110321/drivers/st7554.c:48: include/linux/bug.h:33:45: error: negative width in bit-field ‘<anonymous>’ #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) ^ include/linux/kernel.h:851:3: note: in expansion of macro ‘BUILD_BUG_ON_ZERO’ BUILD_BUG_ON_ZERO((((perms) >> 3) & 7) < ((perms) & 7)) + \ ^ include/linux/moduleparam.h:193:31: note: in expansion of macro ‘VERIFY_OCTAL_PERMISSIONS’ = { __param_str_##name, ops, VERIFY_OCTAL_PERMISSIONS(perm), \ ^ include/linux/moduleparam.h:140:2: note: in expansion of macro ‘__module_param_call’ __module_param_call(MODULE_PARAM_PREFIX, name, ops, arg, perm, -1) ^ include/linux/moduleparam.h:128:2: note: in expansion of macro ‘module_param_cb’ module_param_cb(name, ¶m_ops_##type, &value, perm); \ ^ include/linux/moduleparam.h:113:2: note: in expansion of macro ‘module_param_named’ module_param_named(name, name, type, perm) ^ /usr/src/sl-modem-2.9.11~20110321/drivers/st7554.c:79:1: note: in expansion of macro ‘module_param’ module_param(debug, int, 1); ^ make[3]: *** [/usr/src/sl-modem-2.9.11~20110321/drivers/st7554.o] Error 1 make[2]: *** [_module_/usr/src/sl-modem-2.9.11~20110321/drivers] Error 2 make[2]: Leaving directory `/usr/src/linux-headers-3.16.0-26-generic' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/sl-modem-2.9.11~20110321/drivers' make: *** [all] Error 2