module-assistant fails to compile unicorn-source

Bug #945 reported by Eduardo Silva
10
Affects Status Importance Assigned to Milestone
unicorn (Debian)
Fix Released
Unknown
unicorn (Ubuntu)
Fix Released
Low
Philippe Coval

Bug Description

I'm using module-assistant to compile a driver for the Bewan ADSL PCI USB, which is package unicorn-source.

unicorn version: 0.8.7-1.1

uname -r
2.6.10-5-686

gcc -v
gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)

But a error occurs, and this log is produced:

"Build log starting, file: /var/cache/modass/unicorn-source.b...

I'm using module-assistant to compile a driver for the Bewan ADSL PCI USB, which is package unicorn-source.

unicorn version: 0.8.7-1.1

uname -r
2.6.10-5-686

gcc -v
gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)

But a error occurs, and this log is produced:

"Build log starting, file: /var/cache/modass/unicorn-source.buildlog.2.6.10-5-686.1118171522
Date: Tue, 07 Jun 2005 20:12:02 +0100

/usr/bin/make -f debian/rules binary-modules
make[1]: Entering directory `/usr/src/modules/unicorn'
export DH_OPTIONS='-punicorn-modules-2.6.10-5-686'
# Is this needed for setting up a Depends?
#echo "kpkg:Package-Version=0.8.7-1.1+2.6.10-5-686" \
# >> debian/unicorn.substvars
echo "kpkg:Kernel-Version=2.6.10-5-686" > \
        debian/unicorn-modules-2.6.10-5-686.substvars
# The substvars mechanism seems slightly broken, hack to get around it
# stolen from the qce-ga package. Yaaaa!
sed -e 's/${kpkg\:Kernel\-Version}/2.6.10-5-686/' \
debian/control.in > debian/control
dh_testdir
dh_testroot
dh_clean -k
# Build and install the module
if [ 6 = 4 ]; then \
        /usr/bin/make modules HPATH=/usr/src/linux/include KERNEL_SOURCES=/usr/src/linux; \
        /usr/bin/make only_modules_install KERNEL_SOURCES=/usr/src/linux \
                DESTDIR=/usr/src/modules/unicorn/debian/unicorn-modules-2.6.10-5-686 KVERS=2.6.10-5-686; \
elif [ 6 = 6 ]; then \
        /usr/bin/make -C libm modules; \
        /usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/unicorn/unicorn_pci \
                INSTALL_MOD_PATH=/usr/src/modules/unicorn/debian/unicorn-modules-2.6.10-5-686 modules modules_install; \
        /usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/unicorn/unicorn_usb \
                INSTALL_MOD_PATH=/usr/src/modules/unicorn/debian/unicorn-modules-2.6.10-5-686 modules modules_install; \
fi
make[2]: Entering directory `/usr/src/modules/unicorn/libm'
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_pow.o e_pow.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_log10.o e_log10.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_log.o e_log.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_sqrt.o e_sqrt.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_ceil.o s_ceil.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_floor.o s_floor.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_fabs.o s_fabs.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_scalbn.o s_scalbn.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_copysign.o s_copysign.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_trunc.o s_trunc.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_sin.o s_sin.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_sin.o k_sin.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_cos.o k_cos.c
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_rem_pio2.o e_rem_pio2.c
e_rem_pio2.c: In function `__ieee754_rem_pio2':
e_rem_pio2.c:93: warning: `z' might be used uninitialized in this function
gcc -O2 -fno-gnu-linker -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_rem_pio2.o k_rem_pio2.c
ld -r -o libm.a e_pow.o e_log10.o e_log.o e_sqrt.o s_ceil.o s_floor.o s_fabs.o s_scalbn.o s_copysign.o s_trunc.o s_sin.o k_sin.o k_cos.o e_rem_pio2.o k_rem_pio2.o
make[2]: Leaving directory `/usr/src/modules/unicorn/libm'
make[2]: Entering directory `/usr/src/linux-headers-2.6.10-5-686'
  LD /usr/src/modules/unicorn/unicorn_pci/built-in.o
  CC [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.o
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function `atm_send_complete':
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:352: warning: unused variable `flags'
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function `atm_recv_complete':
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:424: warning: unused variable `flags'
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function `unicorn_start_transmit':
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:1930: warning: unused variable `flags'
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c: In function `unicorn_rcv_getcell':
/usr/src/modules/unicorn/unicorn_pci/unicorn_pcidrv.c:1968: warning: unused variable `flags'
  CC [M] /usr/src/modules/unicorn/unicorn_pci/../msw/linrapi.o
g++ -fno-rtti -fno-exceptions -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DVERS=0 -D_PCI_DRIVER -DDEBUG=1 -I/usr/src/modules/unicorn/unicorn_pci/../include -I/usr/src/modules/unicorn/unicorn_pci/../ -D__KERNEL__ -Iinclude -c -o /usr/src/modules/unicorn/unicorn_pci/../msw/msw.o /usr/src/modules/unicorn/unicorn_pci/../msw/msw.cpp
  CC [M] /usr/src/modules/unicorn/unicorn_pci/../msw/crc.o
g++ -fno-rtti -fno-exceptions -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DVERS=0 -D_PCI_DRIVER -DDEBUG=1 -I/usr/src/modules/unicorn/unicorn_pci/../include -I/usr/src/modules/unicorn/unicorn_pci/../ -D__KERNEL__ -Iinclude -c -o /usr/src/modules/unicorn/unicorn_pci/../amu/amas.o /usr/src/modules/unicorn/unicorn_pci/../amu/amas.cpp
g++ -fno-rtti -fno-exceptions -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DVERS=0 -D_PCI_DRIVER -DDEBUG=1 -I/usr/src/modules/unicorn/unicorn_pci/../include -I/usr/src/modules/unicorn/unicorn_pci/../ -D__KERNEL__ -Iinclude -c -o /usr/src/modules/unicorn/unicorn_pci/../amu/amu.o /usr/src/modules/unicorn/unicorn_pci/../amu/amu.cpp
g++ -fno-rtti -fno-exceptions -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=i686 -Iinclude/asm-i386/mach-default -DVERS=0 -D_PCI_DRIVER -DDEBUG=1 -I/usr/src/modules/unicorn/unicorn_pci/../include -I/usr/src/modules/unicorn/unicorn_pci/../ -D__KERNEL__ -Iinclude -c -o /usr/src/modules/unicorn/unicorn_pci/../amu/bsp_pci.o /usr/src/modules/unicorn/unicorn_pci/../amu/bsp_pci.cpp
  CC [M] /usr/src/modules/unicorn/unicorn_pci/../unicorn_atm/unicorn_atmdrv.o
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c: In function `rawcell_decode':
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c:694: warning: use of cast expressions as lvalues is deprecated
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c:711: warning: use of cast expressions as lvalues is deprecated
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c:713: warning: use of cast expressions as lvalues is deprecated
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c: In function `unicorn_atm_open':
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c:995: warning: use of cast expressions as lvalues is deprecated
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c: In function `unicorn_atm_close':
/usr/src/modules/unicorn/unicorn_atm/unicorn_atmdrv.c:1042: warning: use of cast expressions as lvalues is deprecated
  CC [M] /usr/src/modules/unicorn/unicorn_pci/../unicorn_eth/unicorn_ethdrv.o
  LD [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_atm.o
  LD [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_eth.o
  Building modules, stage 2.
  MODPOST
Warning: could not find /usr/src/modules/unicorn/unicorn_pci/../msw/.msw.o.cmd for /usr/src/modules/unicorn/unicorn_pci/../msw/msw.o
Warning: could not find /usr/src/modules/unicorn/unicorn_pci/../msw/.msw.o.cmd for /usr/src/modules/unicorn/unicorn_pci/../msw/msw.o
  CC /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_atm.mod.o
  LD [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_atm.ko
  CC /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_eth.mod.o
  LD [M] /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_eth.ko
  INSTALL /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_atm.ko
  INSTALL /usr/src/modules/unicorn/unicorn_pci/unicorn_pci_eth.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-686'
make[2]: Entering directory `/usr/src/linux-headers-2.6.10-5-686'
  CC [M] /usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.o
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function `dump_urb':
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:123: error: structure has no member named `timeout'/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c: In function `fill_isoc_urb':
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:152: error: structure has no member named `timeout'include/linux/module.h: At top level:
/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.c:117: warning: `dump_urb' defined but not used
make[3]: *** [/usr/src/modules/unicorn/unicorn_usb/unicorn_usbdrv.o] Error 1
make[2]: *** [_module_/usr/src/modules/unicorn/unicorn_usb] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.10-5-686'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/unicorn'
make: *** [kdist_image] Error 2

"

Changed in unicorn:
assignee: nobody → motu
Revision history for this message
Eduardo Silva (jobezone) wrote :

A year has passed since I reported this bug. I can't confirm if it's fixed, but nevertheless I can't confirm if it's not. I'm closing it.

Revision history for this message
Rocco Stanzione (trappist) wrote :

I can confirm the bug as reported, on Edgy.

Changed in unicorn:
importance: Medium → Low
status: Unconfirmed → Confirmed
Revision history for this message
Pascal Vincent (pvincent00) wrote :

On edgy, i think the driver do not compile because driver is outdated (uncompatible with linux kernel version > 2.14)
Since january of 2006, a new upstream driver version (0.9.3) is available at
http://www.bewan.fr/bewan/utilisateurs/telechargement/download.php?id=86
(sorry, it's in french, so i join the downlodable zip file)

There is someone working on this here :
http://rzr.online.fr/wiki.php?Modem.fr
(sorry in french again)
It would be awesome if the driver can be include "by default" in ubuntu kernel to have a plug and play working driver.
At least, it would be cool to have an up to date package.

For information, here is the changelog of the new version:

Version 0.9.3:
- Added support for PCI cards with the 20174 AFE.
- Added PCI modem SW library compiled with -mregparm=3 (modem_ant_PCI_LINUX.o.regparm3).
This library should be used with kernels compiled with -mregparm=3 (Ex: Fedora Core 2).
- Now works for kernel 2.6.14 and newer (skb_unlink parameter change)
- Eliminated a few compiler warnings with gcc 4.
- Modem SW library version 1.9.6.1 not longer included.
- Replace call to "shutdown_atm_dev" with "atm_dev_deregister" (kernel 2.6.15).

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote :

Version 0.9.3 does not compile correctly on kernels >= 2.6.20 due to making regparm default in compilation and removing CONFIG_REGPARM directive. I have worked on modified version which is reported to be working in Feisty kernel, if someone is interested.

Revision history for this message
ghislain (seven09) wrote :

Hello,
 I am interested by the modifications on unicorn 0.9.3 for the kernel 2.6.20 thank you in advance.

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote :

This is the version which compiles on kernel 2.6.20.
It comes from UbuNeo project: http://ubuneo.ubuntu.pl

Please report if it works for you.
BTW. I have never seen such messy driver - linking C++ with C, etc.

Revision history for this message
ghislain (seven09) wrote :

Bad luck, i have the pci modem, but thanks for your help.

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote : Re: [Bug 945] Re: module-assistant fails to compile unicorn-source

ghislain napisał(a):
> Bad luck, i have the pci modem, but thanks for your help.

If you send me output from compilation maybe I could help you fix the
problem.

Revision history for this message
ghislain (seven09) wrote :

ok
modification which I used : http://pikachu.2014.free.fr/public/unicorn/unicorn.diff
correct several errors

What i obtain now:

ghislain@base:~/Desktop/unicorn-0.9.3/unicorn_pci$ make
make CC=gcc -C /usr/src/linux-headers-2.6.20-15-generic SUBDIRS=/home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.20-15-generic »
  CC [M] /home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci/unicorn_pcidrv.o
/home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci/unicorn_pcidrv.c: In function ‘start_device’:
/home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci/unicorn_pcidrv.c:986: attention : passing argument 2 of ‘request_irq’ from incompatible pointer type
make[2]: *** Pas de règle pour fabriquer la cible « /home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci/../msw/msw.o », nécessaire pour « /home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci/unicorn_pci_atm.o ». Arrêt.
make[1]: *** [_module_/home/ghislain/Desktop/unicorn-0.9.3/unicorn_pci] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.20-15-generic »
make: *** [modules] Erreur 2

cordialement ghislain.

Revision history for this message
Philippe Coval (rzr) wrote :

> There is someone working on this here :
Yep It's me ..
I managed to use this modem on ubuntu dapper ...

now I don't have the modem anymore, but I give you some hints :

gentoo provided some paches and there are some tasks pending at debian ..

> http://rzr.online.fr/wiki.php?Modem.fr
> (sorry in french again)

Some notes in English (or so) :

  http://rzr.online.fr/q/unicorn
  http://rzr.online.fr/q/unicorn-sources
  http://rzr.online.fr/q/unicorn-modules

Regards

Changed in unicorn:
status: Unknown → New
Revision history for this message
Philippe Coval (rzr) wrote :

Hi,

I've updated this package (new upstream version plus patches)
Now I am doing some test with the version I've uploaded at PPA :
https://launchpad.net/~rzr/+archive

Later

Changed in unicorn:
assignee: motu → rzr
status: Confirmed → In Progress
Revision history for this message
Philippe Coval (rzr) wrote :

Hi,

I uploaded unicorn-0.9.3 in debian :
  http://packages.qa.debian.org/u/unicorn.html

And this bug will need to be closed once it's synched as requested at :
  https://bugs.launchpad.net/ubuntu/+source/unicorn/+bug/182659

BTW, bewan adsl usb st modem users can use this driver on dapper
(Any tests on other configurations is welcome too) :
  http://rzr.online.fr/q/unicorn

Regards

Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fixed: hardy now has 0.9.3-2

Changed in unicorn:
status: In Progress → Fix Released
Revision history for this message
Philippe Coval (rzr) wrote :

For dapper users let me connect to this bug :

https://bugs.launchpad.net/dapper-backports/+bug/247008

Revision history for this message
Philippe Coval (rzr) wrote :

@ghislain:
> modification which I used : http://pikachu.2014.free.fr/public/unicorn/unicorn.diff

Offline, Do you have a copy of this file ? if yes please attach it here
and also notify http://forum.ubuntu-fr.org/viewtopic.php?id=114117

--
http://rzr.online.fr/q/unicorn

Changed in unicorn (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.