Re: Re: Driver compilation fails with Ubuntu 8.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arturo

You had reported:
Kernel version is 2.6.27-9-generic

at http://linmodems.technion.ac.il/packages/smartlink/Ubuntu/

There are:
slamr-2.6.27-7-generic.tar.gz     07-Dec-2008 12:30  1.3M
slamr-2.6.27-9-generic.tar.gz     17-Dec-2008 14:59  789K

neither of which are compatible with the 2.6.27-11-generic  you booted under.

Please boot under 2.6.27-7-generic or 2.6.27-9-generic  to test
drivers from the above packages.

>From stardard Ubuntu sources, I can't find
linux-headers-2.6.27-9-generic  yet, so cannot compile a compatible
slamr.ko  as yet.

On my System slamr loads without a problem
 [ 2115.974404] slamr: SmartLink AMRMO modem.
and lsmod shows
--------------------------------------
Module                  Size  Used by
slamr                 437672  0
ungrab_winmodem        10112  0

On my System I have installed both gcc-4.2  (Hardy) and gcc-4.3
(Intrepid) resources:
$ ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root     16 2008-12-20 20:36 /usr/bin/gcc -> /usr/bin/gcc-4.3
-rwxr-xr-x 1 root root 193372 2008-10-10 15:41 /usr/bin/gcc-4.2
-rwxr-xr-x 1 root root 208068 2008-10-25 01:17 /usr/bin/gcc-4.3
-----
To use between compilers, I just change the symbolic link with a command like:
$ sudo ln -sf /usr/bin/gcc-4.2 /usr/bin/gcc
and then check with
$ ls -l /usr/bin/gcc*

Slamr is compiled using gcc-4.3,  per  below

MarvS

Note that this compile is done in the drivers/ subfolder.
If the compile were started in the base folder, the compile would
abort within the modem/  subfolder, while using the slmodemd code.


/usr/src/modules/slmodem-2.9.11-20080817/drivers$ make clean

/usr/src/modules/slmodem-2.9.11-20080817/drivers$ make
doing kernel-ver::
cc -I/lib/modules/2.6.27-9-generic/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.6.27.2
make[1]: Entering directory `/usr/src/modules/slmodem-2.9.11-20080817/drivers'
	obj-m=slamr.o
	slamr-objs=amrmo_init.o sysdep_amr.o amrlibs.o
make modules -C /lib/modules/2.6.27-9-generic/build
SUBDIRS=/usr/src/modules/slmodem-2.9.11-20080817/drivers
make[2]: Entering directory `/usr/src/linux-headers-2.6.27-9-generic'
  CC [M]  /usr/src/modules/slmodem-2.9.11-20080817/drivers/amrmo_init.o
  CC [M]  /usr/src/modules/slmodem-2.9.11-20080817/drivers/sysdep_amr.o
  LD [M]  /usr/src/modules/slmodem-2.9.11-20080817/drivers/slamr.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find
/usr/src/modules/slmodem-2.9.11-20080817/drivers/.amrlibs.o.cmd for
/usr/src/modules/slmodem-2.9.11-20080817/drivers/amrlibs.o
  CC      /usr/src/modules/slmodem-2.9.11-20080817/drivers/slamr.mod.o
  LD [M]  /usr/src/modules/slmodem-2.9.11-20080817/drivers/slamr.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.27-9-generic'
	finished all:
make[1]: Leaving directory `/usr/src/modules/slmodem-2.9.11-20080817/drivers'

marv@marvlap:/usr/src/modules/slmodem-2.9.11-20080817/drivers$ ls -l *.ko
-rw-r--r-- 1 marv marv 568442 2009-01-29 18:45 slamr.ko








On Thu, Jan 29, 2009 at 1:31 PM, Arturo Neri <ciornjeja@xxxxxxxxx> wrote:
> To use precompiled modules did not work.
> Quote
> FATAL: Error inserting ungrab_winmodem
> (/lib/modules/2.6.27-11-generic/extra/ungrab-winmodem.ko): Invalid
> module format
> FATAL: Error inserting slamr
> (/lib/modules/2.6.27-11-generic/extra/slamr.ko): Invalid module format
> End quote
> Please Is there a way to compile  using the library gcc-4.2 without
> uninstalling the gcc-4.3? I saw that if I uninstall the 4.3 should
> uninstall a lot of programs
> Thanks
> Arturo
>
> 2009/1/28 Marvin Stodolsky <marvin.stodolsky@xxxxxxxxx>:
>> Arturo,
>>
>>> modem_datafile.c
>>> In function 'open',
>>>   inlined from 'datafile_save_info' at modem_datafile.c:114:
>>> /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode'
>>> declared with attribute error: open with O_CREAT in second argument
>>> needs 3 arguments
>>> make[1]: *** [modem_datafile.o] Error 1
>> ---------
>> The slmodemd compile problem is due to  a bug in the new gcc-4.3 release.
>> The compile succeeds if the prior gcc-4.2 is used.
>> If the compile is started within the drivers/  folder  slamr.ko  is compiled.
>>
>> Components of the  slamr-2.6.27-9-generic.tar was thus assembled by me.
>>
>> Mar vS
>>
>> On Wed, Jan 28, 2009 at 11:39 AM, Arturo Neri <ciornjeja@xxxxxxxxx> wrote:
>>> Hi! For along time I have used yours driver for my modem with Ubuntu 7.10.
>>> Now I have installed Ubuntu 8.10 and during the compilation they give
>>> me the following error:
>>> Quote
>>> ciornj@Ciornj-Ubu:~/Download/slmodem-2.9.11-20080817$ make
>>> make -C modem all
>>> make[1]: Entering directory`/home/ciornj/Download/slmodem-2.9.11-20080817/modem'
>>> rebuild profile...
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_cmdline.o -c modem_cmdline.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem.o -c modem.c
>>> gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_datafile.o -c
>>> modem_datafile.c
>>> In function 'open',
>>>   inlined from 'datafile_save_info' at modem_datafile.c:114:
>>> /usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode'
>>> declared with attribute error: open with O_CREAT in second argument
>>> needs 3 arguments
>>> make[1]: *** [modem_datafile.o] Error 1
>>> make[1]: Leaving directory `/home/ciornj/Download/slmodem-2.9.11-20080817/modem'
>>> make: *** [modem] Error 2
>>> End quote
>>> In Ubuntu 7.10 there is only fcntl.h As from your indication in
>>> ModemData.txt The package linux-libc-dev is installed.
>>> Kernel version is 2.6.27-9 generic
>>> I have compiled ungrub and all go fine
>>> Thanks in advance for your help
>>>
>>
>

[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux