Re: 11c11040 modem chipset : Agere D40 agrmodemlib.o

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

 



It gets even worse on kernels > 2.6.25 with the rc of 2.6.26

[olivares@localhost src]$ ls -l
total 1796
-rw-rw-r-- 1 olivares olivares    2418 2008-06-22 09:23 8250.h
-rw-rw-r-- 1 olivares olivares    9023 2008-06-22 09:23 AgereMdmDaemon
-rw-rw-r-- 1 olivares olivares    1612 2008-06-22 09:24 agr_auxinst
-rw-rw-r-- 1 olivares olivares    2725 2008-06-22 09:24 agrinst
-rw-rw-r-- 1 olivares olivares   10918 2008-06-22 09:24 agrmodem.h
-rw-rw-r-- 1 olivares olivares 1535687 2008-06-22 09:24 agrmodemlib.o
-rw-rw-r-- 1 olivares olivares    2662 2008-06-22 09:24 agrmodem.mod.c
-rw-rw-r-- 1 olivares olivares    1877 2008-06-22 09:24 agrserial.mod.c
-rw-rw-r-- 1 olivares olivares    1192 2008-06-22 09:24 agr_softmodem
-rw-rw-r-- 1 olivares olivares   25975 2008-06-22 09:35 agrsoftmodem.c
-rw-rw-r-- 1 olivares olivares    3705 2008-06-22 09:25 agruninst
-rw-rw-r-- 1 olivares olivares     225 2008-06-22 09:25 config.h
-rw-rw-r-- 1 olivares olivares    8560 2008-06-22 09:23 HDA.c
-rw-rw-r-- 1 olivares olivares   17543 2008-06-22 09:25 hda_codec.h
-rw-rw-r-- 1 olivares olivares    5744 2008-06-22 09:24 LICENSE
-rw-rw-r-- 1 olivares olivares    2259 2008-06-22 09:25 linuxif.h
-rw-rw-r-- 1 olivares olivares    2529 2008-06-22 09:24 Makefile
-rw-rw-r-- 1 olivares olivares      85 2008-06-22 09:24 Module.symvers
-rw-rw-r-- 1 olivares olivares    2069 2008-06-22 09:24 README
-rw-rw-r-- 1 olivares olivares   67587 2008-06-22 09:25 serial26.c
[olivares@localhost src]$ chmod +x agrinst
[olivares@localhost src]$ chmod +x agr_softmodem
[olivares@localhost src]$ chmod +x agruninst
[olivares@localhost src]$ chmod +x agr_auxinst
[olivares@localhost src]$ chmod +x AgereMdmDaemon

[olivares@localhost src]$ clear

[olivares@localhost src]$ make module
make -C /lib/modules/`uname -r`/build/
SUBDIRS=/home/olivares/Download/temp/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.26-0.44.rc4.git2.fc10.i686'
  CC [M]  /home/olivares/Download/temp/src/agrsoftmodem.o
/home/olivares/Download/temp/src/agrsoftmodem.c: In function
â??x_request_irqâ??:
/home/olivares/Download/temp/src/agrsoftmodem.c:276: warning: passing
argument 2 of â??request_irqâ?? from incompatible pointer type
/home/olivares/Download/temp/src/agrsoftmodem.c: In function
â??agr_pci_find_deviceâ??:
/home/olivares/Download/temp/src/agrsoftmodem.c:360: warning: ignoring
return value of â??pci_enable_deviceâ??, declared with attribute
warn_unused_result
/home/olivares/Download/temp/src/agrsoftmodem.c: In function
â??x_task_queue_initâ??:
/home/olivares/Download/temp/src/agrsoftmodem.c:440: warning:
assignment from incompatible pointer type
/home/olivares/Download/temp/src/agrsoftmodem.c: In function
â??x_task_queue_init_usbâ??:
/home/olivares/Download/temp/src/agrsoftmodem.c:452: warning:
assignment from incompatible pointer type
/home/olivares/Download/temp/src/agrsoftmodem.c: At top level:
/home/olivares/Download/temp/src/agrsoftmodem.c:479: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/agrsoftmodem.c:501: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/agrsoftmodem.c:511: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/agrsoftmodem.c:512: warning: function
declaration isnâ??t a prototype
  CC [M]  /home/olivares/Download/temp/src/HDA.o
In file included from /home/olivares/Download/temp/src/HDA.c:13:
include/sound/driver.h:1:2: warning: #warning "This file is deprecated"
/home/olivares/Download/temp/src/HDA.c:208: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/HDA.c: In function â??GetHDABaseAddressâ??:
/home/olivares/Download/temp/src/HDA.c:219: warning: assignment makes
integer from pointer without a cast
/home/olivares/Download/temp/src/HDA.c:221: warning: return makes
pointer from integer without a cast
/home/olivares/Download/temp/src/HDA.c:211: warning: unused variable
â??codec_tempâ??
/home/olivares/Download/temp/src/HDA.c: In function â??HDAdumpâ??:
/home/olivares/Download/temp/src/HDA.c:236: warning: format â??%xâ??
expects type â??unsigned intâ??, but argument 4 has type â??void *â??
/home/olivares/Download/temp/src/HDA.c:240: warning: format â??%08Xâ??
expects type â??unsigned intâ??, but argument 5 has type â??long
unsigned intâ??
/home/olivares/Download/temp/src/HDA.c:240: warning: format â??%08Xâ??
expects type â??unsigned intâ??, but argument 6 has type â??long
unsigned intâ??
/home/olivares/Download/temp/src/HDA.c:240: warning: format â??%08Xâ??
expects type â??unsigned intâ??, but argument 7 has type â??long
unsigned intâ??
/home/olivares/Download/temp/src/HDA.c:240: warning: format â??%08Xâ??
expects type â??unsigned intâ??, but argument 8 has type â??long
unsigned intâ??
/home/olivares/Download/temp/src/HDA.c:231: warning: unused variable
â??codec_tempâ??
/home/olivares/Download/temp/src/HDA.c: In function â??setResumeCallBackâ??:
/home/olivares/Download/temp/src/HDA.c:279: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c:280: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c: In function â??setSuspendCallBackâ??:
/home/olivares/Download/temp/src/HDA.c:285: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c:286: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c: At top level:
/home/olivares/Download/temp/src/HDA.c:290: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/HDA.c: In function â??resetResumeCallBackâ??:
/home/olivares/Download/temp/src/HDA.c:291: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c: At top level:
/home/olivares/Download/temp/src/HDA.c:295: warning: function
declaration isnâ??t a prototype
/home/olivares/Download/temp/src/HDA.c: In function â??resetSuspendCallBackâ??:
/home/olivares/Download/temp/src/HDA.c:296: warning: assignment from
incompatible pointer type
/home/olivares/Download/temp/src/HDA.c: In function â??LnxTransferCodecVerbsâ??:
/home/olivares/Download/temp/src/HDA.c:302: warning: unused variable
â??CodecAddressâ??
/home/olivares/Download/temp/src/HDA.c: In function
â??LnxTransferCodecVerbsWriteâ??:
/home/olivares/Download/temp/src/HDA.c:323: warning: unused variable
â??CodecAddressâ??
/home/olivares/Download/temp/src/HDA.c: In function â??findHDACodecâ??:
/home/olivares/Download/temp/src/HDA.c:270: warning: control reaches
end of non-void function
  CC [M]  /home/olivares/Download/temp/src/serial26.o
/home/olivares/Download/temp/src/serial26.c: In function
â??serial8250_startupâ??:
/home/olivares/Download/temp/src/serial26.c:1434: warning: assignment
from incompatible pointer type
/home/olivares/Download/temp/src/serial26.c: In function
â??serial8250_set_termiosâ??:
/home/olivares/Download/temp/src/serial26.c:1699: warning: passing
argument 2 of â??uart_get_baud_rateâ?? from incompatible pointer type
/home/olivares/Download/temp/src/serial26.c:1699: warning: passing
argument 3 of â??uart_get_baud_rateâ?? from incompatible pointer type
/home/olivares/Download/temp/src/serial26.c: At top level:
/home/olivares/Download/temp/src/serial26.c:2115: warning:
initialization from incompatible pointer type
/home/olivares/Download/temp/src/serial26.c:2116: warning:
initialization from incompatible pointer type
/home/olivares/Download/temp/src/serial26.c:2123: warning:
initialization from incompatible pointer type
  LD [M]  /home/olivares/Download/temp/src/agrmodem.o
  LD [M]  /home/olivares/Download/temp/src/agrserial.o
  Building modules, stage 2.
  MODPOST 2 modules
WARNING: could not find
/home/olivares/Download/temp/src/.agrmodemlib.o.cmd for
/home/olivares/Download/temp/src/agrmodemlib.o
FATAL: modpost: GPL-incompatible module agrmodem.ko uses GPL-only
symbol 'usb_put_dev'
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.26-0.44.rc4.git2.fc10.i686'
make: *** [module] Error 2


There is not much that we can do against this, only encourage LSI to
contact the kernel developers and hope that they can produce free and
working drivers for this modem chipset.

Regards,

Antonio

On 6/23/08, Bjorn Wielens <Uniacke1@xxxxxxxx> wrote:
> Ah... So you've also reached that point? I'm on kernel 2.6.25.5 and I
> get 'Modpost FATAL:GPL-incompatible module uses GPL-only symbol
> usb_put_dev.'
>
> I think I may have found that package in an RPM form...  called
> agrsm-2.1.80-lmdv2009.0 here:
> http://rpm.pbone.net/index.php3/stat/4/idpl/7812083/com/dkms-agrsm-2.1.80-1mdv2009.0.noarch.rpm.html
>
> dies with the exact same error.
>
>
>
> Antonio Olivares wrote:
>> The first attempt, I forgot to add the following relevant parts from dmesg
>>
>> Symbol usb_deregister is being used by a non-GPL module, which will
>> not be allowed in the future
>> Please see the file Documentation/feature-removal-schedule.txt in the
>> kernel source tree for more details.
>> agrmodem: Unknown symbol snd_hda_codec_read
>> Symbol usb_register_driver is being used by a non-GPL module, which
>> will not be allowed in the future
>> Please see the file Documentation/feature-removal-schedule.txt in the
>> kernel source tree for more details.
>> agrmodem: Unknown symbol snd_hda_codec_write
>> Symbol usb_deregister is being used by a non-GPL module, which will
>> not be allowed in the future
>> Please see the file Documentation/feature-removal-schedule.txt in the
>> kernel source tree for more details.
>> agrmodem: Unknown symbol snd_hda_codec_read
>> Symbol usb_register_driver is being used by a non-GPL module, which
>> will not be allowed in the future
>> Please see the file Documentation/feature-removal-schedule.txt in the
>> kernel source tree for more details.
>> agrmodem: Unknown symbol snd_hda_codec_write
>>
>> And Then I tried again, which I will attach inline here with the
>> extracted zip file that you very kind to send.  I extracted the zip
>> file and modified line 276 from SA_IRQF to IRQF_SHARED so that it can
>> compile, then I get the following error:
>>
>> root@slax:~/src# make module
>> make -C /lib/modules/`uname -r`/build/ SUBDIRS=/root/src modules
>> make[1]: Entering directory `/usr/src/linux-2.6.24.5'
>>
>>   WARNING: Symbol version dump /usr/src/linux-2.6.24.5/Module.symvers
>>            is missing; modules will have no dependencies and modversions.
>>
>>   CC [M]  /root/src/agrsoftmodem.o
>> /root/src/agrsoftmodem.c: In function 'x_request_irq':
>> /root/src/agrsoftmodem.c:276: warning: passing argument 2 of
>> 'request_irq' from incompatible pointer type
>> /root/src/agrsoftmodem.c: In function 'agr_pci_find_device':
>> /root/src/agrsoftmodem.c:358: warning: 'pci_find_device' is deprecated
>> (declared at include/linux/pci.h:492)
>> /root/src/agrsoftmodem.c:361: warning: 'pci_find_device' is deprecated
>> (declared at include/linux/pci.h:492)
>> /root/src/agrsoftmodem.c:360: warning: ignoring return value of
>> 'pci_enable_device', declared with attribute warn_unused_result
>> /root/src/agrsoftmodem.c: In function 'agr_pci_get_irq':
>> /root/src/agrsoftmodem.c:375: warning: 'pci_find_device' is deprecated
>> (declared at include/linux/pci.h:492)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_read_config_byte':
>> /root/src/agrsoftmodem.c:386: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_read_config_word':
>> /root/src/agrsoftmodem.c:389: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_read_config_dword':
>> /root/src/agrsoftmodem.c:392: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_write_config_byte':
>> /root/src/agrsoftmodem.c:395: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_write_config_word':
>> /root/src/agrsoftmodem.c:398: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_pcibios_write_config_dword':
>> /root/src/agrsoftmodem.c:401: warning: 'pci_find_slot' is deprecated
>> (declared at include/linux/pci.h:493)
>> /root/src/agrsoftmodem.c: In function 'x_task_queue_init':
>> /root/src/agrsoftmodem.c:440: warning: assignment from incompatible
>> pointer type
>> /root/src/agrsoftmodem.c: In function 'x_task_queue_init_usb':
>> /root/src/agrsoftmodem.c:452: warning: assignment from incompatible
>> pointer type
>> /root/src/agrsoftmodem.c: At top level:
>> /root/src/agrsoftmodem.c:479: warning: function declaration isn't a
>> prototype
>> /root/src/agrsoftmodem.c:501: warning: function declaration isn't a
>> prototype
>> /root/src/agrsoftmodem.c:511: warning: function declaration isn't a
>> prototype
>> /root/src/agrsoftmodem.c:512: warning: function declaration isn't a
>> prototype
>>   CC [M]  /root/src/HDA.o
>> /root/src/HDA.c:208: warning: function declaration isn't a prototype
>> /root/src/HDA.c: In function 'GetHDABaseAddress':
>> /root/src/HDA.c:219: warning: assignment makes integer from pointer
>> without a cast
>> /root/src/HDA.c:221: warning: return makes pointer from integer without a
>> cast
>> /root/src/HDA.c:211: warning: unused variable 'codec_temp'
>> /root/src/HDA.c: In function 'HDAdump':
>> /root/src/HDA.c:236: warning: format '%x' expects type 'unsigned int',
>> but argument 2 has type 'void *'
>> /root/src/HDA.c:240: warning: format '%08X' expects type 'unsigned
>> int', but argument 3 has type 'long unsigned int'
>> /root/src/HDA.c:240: warning: format '%08X' expects type 'unsigned
>> int', but argument 4 has type 'long unsigned int'
>> /root/src/HDA.c:240: warning: format '%08X' expects type 'unsigned
>> int', but argument 5 has type 'long unsigned int'
>> /root/src/HDA.c:240: warning: format '%08X' expects type 'unsigned
>> int', but argument 6 has type 'long unsigned int'
>> /root/src/HDA.c:231: warning: unused variable 'codec_temp'
>> /root/src/HDA.c: In function 'setResumeCallBack':
>> /root/src/HDA.c:279: warning: assignment from incompatible pointer type
>> /root/src/HDA.c:280: warning: assignment from incompatible pointer type
>> /root/src/HDA.c: In function 'setSuspendCallBack':
>> /root/src/HDA.c:285: warning: assignment from incompatible pointer type
>> /root/src/HDA.c:286: warning: assignment from incompatible pointer type
>> /root/src/HDA.c: At top level:
>> /root/src/HDA.c:290: warning: function declaration isn't a prototype
>> /root/src/HDA.c: In function 'resetResumeCallBack':
>> /root/src/HDA.c:291: warning: assignment from incompatible pointer type
>> /root/src/HDA.c: At top level:
>> /root/src/HDA.c:295: warning: function declaration isn't a prototype
>> /root/src/HDA.c: In function 'resetSuspendCallBack':
>> /root/src/HDA.c:296: warning: assignment from incompatible pointer type
>> /root/src/HDA.c: In function 'LnxTransferCodecVerbs':
>> /root/src/HDA.c:302: warning: unused variable 'CodecAddress'
>> /root/src/HDA.c: In function 'LnxTransferCodecVerbsWrite':
>> /root/src/HDA.c:323: warning: unused variable 'CodecAddress'
>> /root/src/HDA.c: In function 'findHDACodec':
>> /root/src/HDA.c:270: warning: control reaches end of non-void function
>>   CC [M]  /root/src/serial26.o
>> /root/src/serial26.c: In function 'serial8250_startup':
>> /root/src/serial26.c:1434: warning: assignment from incompatible pointer
>> type
>> /root/src/serial26.c: In function 'serial8250_set_termios':
>> /root/src/serial26.c:1699: warning: passing argument 2 of
>> 'uart_get_baud_rate' from incompatible pointer type
>> /root/src/serial26.c:1699: warning: passing argument 3 of
>> 'uart_get_baud_rate' from incompatible pointer type
>> /root/src/serial26.c: At top level:
>> /root/src/serial26.c:2115: warning: initialization from incompatible
>> pointer type
>> /root/src/serial26.c:2116: warning: initialization from incompatible
>> pointer type
>> /root/src/serial26.c:2123: warning: initialization from incompatible
>> pointer type
>>   LD [M]  /root/src/agrmodem.o
>>   LD [M]  /root/src/agrserial.o
>>   Building modules, stage 2.
>>   MODPOST 2 modules
>>   CC      /root/src/agrmodem.mod.o
>>   LD [M]  /root/src/agrmodem.ko
>>   CC      /root/src/agrserial.mod.o
>>   LD [M]  /root/src/agrserial.ko
>> make[1]: Leaving directory `/usr/src/linux-2.6.24.5'
>> root@slax:~/src# make install
>> ./agrinst
>> make: execvp: ./agrinst: Permission denied
>> make: *** [install] Error 127
>> root@slax:~/src#
>>
>> Maybe in Ubuntu, it would work, but who knows.  I am trying this with
>> Slax live cd, this way I do not have anything to lose just time.
>> Reboot and all is well.
>>
>> Regards,
>>
>> Antonio
>>
>> On 6/23/08, FA <fas65@xxxxxxxxxxxxxxxxxxx> wrote:
>>
>>> so at least the code does build.
>>> Lets hope, the missing symbols are not from the object-code-library...
>>> Maybe the LSI Allentown people can tell...
>>>
>>>
>>> Antonio Olivares schrieb:
>>>
>>>> I have tested the code, and would like to report that while I still
>>>> cannot connect, there is some progress
>>>>
>>>
>>
>>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>


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

  Powered by Linux