Re: ubuntu compiling

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

 



Congratulations indeed Antonio,

You found the correct answer to the problem and the driver looks to be
very fine working.
So that the Intel 536EP/537 source code remains portable across Linux
kernel versions, you only have
to insert the following in each file using the DECLARE_MUTEX macro:

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38)
#define DECLARE_MUTEX DEFINE_SEMAPHORE
#endif

Then everyting compiles just fine. There is one useless declaration and
variable setting in coredrv/softserial_ioctl.c which is detected by my
gcc compiler:
at case label TIOCMGET:
there is the following:
     case TIOCMGET:
    {
       unsigned status;
       status = 0;
    ....
    }
The two unsigned status and status = 0; lines can be safely deleted.

A side note however when installing the driver:

[philippe@victor intel-536-537]$ sudo make install
make[1]: Entering directory `/home/philippe/intel-536-537'
rm -f /etc/hamregistry.bin
bash Intel536_inst
running kernel 2.6.38.8-32.fc15.i686
installing hamregistry, used for persistant storage
installing Intel536 driver
install REDHAT Intel536 boot script and links
starting module and utilities
hamregistry: no process found

done

So the hamregistry process does not start correctly. I only own the
binary i386 executable for it and there is no hamregistry process
related messages in /var/log/messages.

However the lack of this process does not seem to make any harm when
running efax as shown hereafter.

[philippe@victor ~]$ efax -vewinchmart
efax: Sun Jul  3 13:27:12 2011 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: Sun Jul  3 13:27:12 2011 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 27:12 compiled Feb  8 2011 17:28:56
efax: 27:12 argv[0]=efax
efax: 27:12 argv[1]=-vewinchmart
efax: 27:13 opened /dev/modem
efax: 27:13 command  "Q0V1"
efax: 27:13 waiting 2.0 s
efax: 27:16 waiting 2.0 s
efax: 27:16 .710 [ATQ0V1<CR><CR><LF>]
efax: 27:16 .770 [OK<CR><LF>]
efax: 27:16 response "OK"
efax: 27:16 waiting 2.0 s
efax: 27:18 command  "Q0V1"
efax: 27:18 waiting 2.0 s
efax: 27:18 .890 [ATQ0V1<CR><CR><LF>]
efax: 27:18 .950 [OK<CR><LF>]
efax: 27:18 response "OK"
efax: 27:19 command  "E0"
efax: 27:19 waiting 5.0 s
efax: 27:19 .070 [ATE0<CR><CR><LF>]
efax: 27:19 .120 [OK<CR><LF>]
efax: 27:19 response "OK"
efax: 27:19 command  "I3"
efax: 27:19 waiting 5.0 s
efax: 27:19 .270 [<CR><LF>536EP<CR><LF>]
efax: 27:19 .290 [<CR><LF>OK<CR><LF>]
efax: 27:19 response "OK"
efax: 27:19 command  "+FCLASS=?"
efax: 27:19 waiting 5.0 s
efax: 27:19 .440 [<CR><LF>0,1,8<CR><LF>]
efax: 27:19 .460 [<CR><LF>OK<CR><LF>]
efax: 27:19 response "OK"
efax: 27:19 command  "+FCLASS=1"
efax: 27:19 waiting 5.0 s
efax: 27:19 .630 [<CR><LF>OK<CR><LF>]
efax: 27:19 response "OK"
efax: 27:19 using 536EP in class 1
efax: 27:19 command  "+FRM=?"
efax: 27:19 waiting 5.0 s
efax: 27:19 .780 [<CR><LF>24,48,72,73,74,96,97,98,121,122,145,146<CR><LF>]
efax: 27:19 .800 [<CR><LF>OK<CR><LF>]
efax: 27:19 response "OK"
efax: 27:19 command  "A"
efax: 27:19 waiting 120.0 s
efax: 27:24 .720 [<CR><LF>CONNECT<CR><LF>]
efax: 27:24 response "CONNECT"
efax: 27:24 fax call answered
efax: 27:24 sent 23 bytes:
efax: 27:24  ff c0 02 04 04 04 04 04 04 04 04 04 04 04 04 04
efax: 27:24  04 04 04 04 04 04 04
efax: 27:24 sent CSI - answering ID
efax: 27:24 waiting 13.6 s
efax: 27:26 .450 [<CR><LF>CONNECT<CR><LF>]
efax: 27:26 response "CONNECT"
efax: 27:26 sent 6 bytes: ff c8 01 00 76 1e
efax: 27:26 sent DIS - answering capabilities
efax: 27:26 waiting 13.6 s
efax: 27:26 .810 [<CR><LF>OK<CR><LF>]
efax: 27:26 response "OK"
efax: 27:26 command  "+FRH=3"
efax: 27:26 waiting 3.0 s
efax: 27:29 waiting 2.0 s
efax: 27:29 .840 [<CR><LF>OK<CR><LF>]
efax: 27:29 response "OK"
efax: 27:29 received 79 bytes:
efax: 27:29  ff c8 01 00 76 1e 04 04 04 04 04 04 04 04 04 04
efax: 27:29  04 04 04 04 04 04 04 90 38 09 0f 00 00 00 f4 1f
efax: 27:29  88 00 5c 23 88 00 00 00 00 00 82 00 00 00 ab cf
efax: 27:29  78 00 89 95 38 09 65 91 78 00 00 00 00 00 fb ff
efax: 27:29  ff ff 03 00 00 00 dd 01 00 00 00 00 00 00 f4
efax: 27:29 received DIS - answering capabilities
efax: 27:29 command  "+FTH=3"
efax: 27:29 waiting 3.1 s
efax: 27:29 .910 [<CR><LF>CONNECT<CR><LF>]
efax: 27:29 response "CONNECT"
efax: 27:29 sent 23 bytes:
efax: 27:29  ff c0 02 04 04 04 04 04 04 04 04 04 04 04 04 04
efax: 27:29  04 04 04 04 04 04 04
efax: 27:29 sent CSI - answering ID
efax: 27:29 waiting 13.6 s
efax: 27:31 .640 [<CR><LF>CONNECT<CR><LF>]
efax: 27:31 response "CONNECT"
efax: 27:31 sent 6 bytes: ff c8 01 00 76 1e
efax: 27:31 sent DIS - answering capabilities
efax: 27:31 waiting 13.6 s
efax: 27:31 .000 [<CR><LF>OK<CR><LF>]
efax: 27:31 response "OK"
efax: 27:31 command  "+FRH=3"
efax: 27:31 waiting 3.0 s
efax: 27:35 waiting 2.0 s
efax: 27:35 .030 [<CR><LF>OK<CR><LF>]
efax: 27:35 response "OK"
efax: 27:35 received 79 bytes:
efax: 27:35  ff c8 01 00 76 1e 04 04 04 04 04 04 04 04 04 04
efax: 27:35  04 04 04 04 04 04 04 90 38 09 0f 00 00 00 f4 1f
efax: 27:35  88 00 5c 23 88 00 00 00 00 00 82 00 00 00 ab cf
efax: 27:35  78 00 89 95 38 09 65 91 78 00 00 00 00 00 fb ff
efax: 27:35  ff ff 03 00 00 00 dd 01 00 00 00 00 00 00 f4
efax: 27:35 received DIS - answering capabilities
efax: 27:35 command  "+FTH=3"
efax: 27:35 waiting 3.1 s
efax: 27:35 .100 [<CR><LF>CONNECT<CR><LF>]
efax: 27:35 response "CONNECT"
efax: 27:35 sent 23 bytes:
efax: 27:35  ff c0 02 04 04 04 04 04 04 04 04 04 04 04 04 04
efax: 27:35  04 04 04 04 04 04 04
efax: 27:35 sent CSI - answering ID
efax: 27:35 waiting 13.6 s
efax: 27:36 .830 [<CR><LF>CONNECT<CR><LF>]
efax: 27:36 response "CONNECT"
efax: 27:36 sent 6 bytes: ff c8 01 00 76 1e
efax: 27:36 sent DIS - answering capabilities
efax: 27:36 waiting 13.6 s
efax: 27:37 .190 [<CR><LF>OK<CR><LF>]
efax: 27:37 response "OK"
efax: 27:37 command  "+FRH=3"
efax: 27:37 waiting 3.0 s
efax: 27:40 waiting 2.0 s
efax: 27:40 .220 [<CR><LF>OK<CR><LF>]
efax: 27:40 response "OK"
efax: 27:40 received 79 bytes:
efax: 27:40  ff c8 01 00 76 1e 04 04 04 04 04 04 04 04 04 04
efax: 27:40  04 04 04 04 04 04 04 90 38 09 0f 00 00 00 f4 1f
efax: 27:40  88 00 5c 23 88 00 00 00 00 00 82 00 00 00 ab cf
efax: 27:40  78 00 89 95 38 09 65 91 78 00 00 00 00 00 fb ff
efax: 27:40  ff ff 03 00 00 00 dd 01 00 00 00 00 00 00 f4
efax: 27:40 received DIS - answering capabilities
efax: 27:40 command  "+FTH=3"
efax: 27:40 waiting 3.1 s
efax: 27:40 .290 [<CR><LF>CONNECT<CR><LF>]
efax: 27:40 response "CONNECT"
efax: 27:40 sent 23 bytes:
efax: 27:40  ff c0 02 04 04 04 04 04 04 04 04 04 04 04 04 04
efax: 27:40  04 04 04 04 04 04 04
efax: 27:40 sent CSI - answering ID
efax: 27:40 waiting 13.6 s
efax: 27:42 .020 [<CR><LF>CONNECT<CR><LF>]
efax: 27:42 response "CONNECT"
efax: 27:42 sent 6 bytes: ff c8 01 00 76 1e
efax: 27:42 sent DIS - answering capabilities
efax: 27:42 waiting 13.6 s
efax: 27:42 .380 [<CR><LF>OK<CR><LF>]
efax: 27:42 response "OK"
efax: 27:42 command  "+FRH=3"
efax: 27:42 waiting 3.0 s
efax: 27:45 waiting 2.0 s
efax: 27:45 .410 [<CR><LF>OK<CR><LF>]
efax: 27:45 response "OK"
efax: 27:45 received 79 bytes:
efax: 27:45  ff c8 01 00 76 1e 04 04 04 04 04 04 04 04 04 04
efax: 27:45  04 04 04 04 04 04 04 90 38 09 0f 00 00 00 f4 1f
efax: 27:45  88 00 5c 23 88 00 00 00 00 00 82 00 00 00 ab cf
efax: 27:45  78 00 89 95 38 09 65 91 78 00 00 00 00 00 fb ff
efax: 27:45  ff ff 03 00 00 00 dd 01 00 00 00 00 00 00 f4
efax: 27:45 received DIS - answering capabilities
efax: 27:45 command  "+FTH=3"
efax: 27:45 waiting 3.1 s
efax: 27:45 .480 [<CR><LF>CONNECT<CR><LF>]
efax: 27:45 response "CONNECT"
efax: 27:45 sent 23 bytes:
efax: 27:45  ff c0 02 04 04 04 04 04 04 04 04 04 04 04 04 04
efax: 27:45  04 04 04 04 04 04 04
efax: 27:45 sent CSI - answering ID
efax: 27:45 waiting 13.6 s
efax: 27:47 .210 [<CR><LF>CONNECT<CR><LF>]
efax: 27:47 response "CONNECT"
efax: 27:47 sent 6 bytes: ff c8 01 00 76 1e
efax: 27:47 sent DIS - answering capabilities
efax: 27:47 waiting 13.6 s
efax: 27:47 .570 [<CR><LF>OK<CR><LF>]
efax: 27:47 response "OK"
efax: 27:47 command  "+FRH=3"
efax: 27:47 waiting 3.0 s
efax: 27:50 waiting 2.0 s
efax: 27:50 .600 [<CR><LF>OK<CR><LF>]
efax: 27:50 response "OK"
efax: 27:50 received 79 bytes:
efax: 27:50  ff c8 01 00 76 1e 04 04 04 04 04 04 04 04 04 04
efax: 27:50  04 04 04 04 04 04 04 90 38 09 0f 00 00 00 f4 1f
efax: 27:50  88 00 5c 23 88 00 00 00 00 00 82 00 00 00 ab cf
efax: 27:50  78 00 89 95 38 09 65 91 78 00 00 00 00 00 fb ff
efax: 27:50  ff ff 03 00 00 00 dd 01 00 00 00 00 00 00 f4
efax: 27:50 received DIS - answering capabilities
efax: 27:50 Error: no command/response from remote
efax: 27:50 command  "+FTH=3"
efax: 27:50 waiting 3.1 s
efax: 27:50 .670 [<CR><LF>CONNECT<CR><LF>]
efax: 27:50 response "CONNECT"
efax: 27:50 sent 3 bytes: ff c8 5f
efax: 27:50 sent DCN - disconnect
efax: 27:50 waiting 13.6 s
efax: 27:51 .910 [<CR><LF>OK<CR><LF>]
efax: 27:51 response "OK"
efax: 27:51 command  "H"
efax: 27:51 waiting 5.0 s
efax: 27:52 .360 [<CR><LF>OK<CR><LF>]
efax: 27:52 response "OK"
efax: 27:52 command  "Q0V1"
efax: 27:52 waiting 2.0 s
efax: 27:52 .540 [<CR><LF>OK<CR><LF>]
efax: 27:52 response "OK"
efax: 27:52 command  "H"
efax: 27:52 waiting 5.0 s
efax: 27:53 .080 [<CR><LF>OK<CR><LF>]
efax: 27:53 response "OK"
efax: 27:53 done, returning 3 (invalid modem response)
[philippe@victor ~]$ uname -a
Linux victor.vouters.dyndns.org 2.6.38.8-32.fc15.i686 #1 SMP Mon Jun 13
20:01:50 UTC 2011 i686 i686 i386 GNU/Linux

I shall post a new intel-536-537 .tar.bz2 to my
http://vouters.dyndns.org/Intel/ Web site when all source codes will
compile just as fine.

Yours sincerely,
Philippe

Le 03/07/2011 03:32, Antonio Olivares a écrit :
> @all
>
> You see the error:
>
> /home/olivares/Downloads/intel-536-537/coredrv/softserial_io.c:68:8:
> warning: type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>
> because I did not change sofserial_io.c correctly, the original file
> had DECLARE_MUTEX, and I changed to DECLARE_SEMAPHORE when I should
> have changed it to DEFINE_SEMAPHORE and then it all works as it
> should.
>
> Sorry for not carefully looking at it, got to excited to share the good news :)
>
> Regards,
>
> Antonio
>
> On Sat, Jul 2, 2011 at 8:17 PM, Antonio Olivares
> <olivares14031@xxxxxxxxx> wrote:
>> @Phillipe,
>>
>> I have found a solution:
>>
>> http://www.mail-archive.com/arch-commits@xxxxxxxxxxxxx/msg50418.html
>>
>> namely change DECLARE_MUTEX(semX) to DEFINE_SEMAPHORE(semX) in locks.c and
>> softserial_io.c  and it will work :)
>>
>>
>> [root@toshiba-satellite intel-536-537]# make clean
>> cd coredrv; make clean
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
>> rm -rf .tmp_versions
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.o *.ko
>> [root@toshiba-satellite intel-536-537]# make 536
>> cd coredrv; make clean
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
>> rm -rf .tmp_versions
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.o *.ko
>>   Module precompile check
>>   Current running kernel is: 2.6.38.8-32.fc15.i686
>>   /lib/modules...   autoconf.h exists
>> diff: /boot/vmlinuz.autoconf.h: No such file or directory
>>   autoconf.h matches running kernel
>> diff: /boot/vmlinuz.version.h: No such file or directory
>>   version.h matches running kernel
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537'
>>  Not a 536EP phone modem board
>> /bin/bash: line 2: //: Is a directory
>> 2.6.38.8-32.fc15.i686
>> make[2]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> make -C /lib/modules/2.6.38.8-32.fc15.i686/build
>> SUBDIRS=/home/olivares/Downloads/intel-536-537/coredrv modules
>> make[3]: Entering directory `/usr/src/kernels/2.6.38.8-32.fc15.i686'
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/coredrv.o
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: data definition has no type or storage class [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: parameter names (without types) in function declaration
>> [enabled by default]
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/clmmain.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/rts.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/task.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/uart.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/wwh_dflt.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/locks.o
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:144:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:144:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:144:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:145:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:145:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:145:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:146:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:146:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:146:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:147:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:147:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:147:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:148:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:148:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:148:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:149:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:149:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:149:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:150:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:150:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:150:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:151:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:151:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:151:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:152:1: warning:
>> data definition has no type or storage class [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:152:1: warning:
>> type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:152:1: warning:
>> parameter names (without types) in function declaration [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c: In function
>> ‘linux_RSAGetExclusive’:
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:160:24: error:
>> ‘sem0’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:160:24: note:
>> each undeclared identifier is reported only once for each function it
>> appears in
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:164:24: error:
>> ‘sem1’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:168:24: error:
>> ‘sem2’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:172:24: error:
>> ‘sem3’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:176:24: error:
>> ‘sem4’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:180:24: error:
>> ‘sem5’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:184:24: error:
>> ‘sem6’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:188:24: error:
>> ‘sem7’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:192:24: error:
>> ‘sem8’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c: In function
>> ‘linux_RSAFreeExclusive’:
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:210:11: error:
>> ‘sem0’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:213:11: error:
>> ‘sem1’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:216:11: error:
>> ‘sem2’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:219:11: error:
>> ‘sem3’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:222:11: error:
>> ‘sem4’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:225:11: error:
>> ‘sem5’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:228:11: error:
>> ‘sem6’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:231:11: error:
>> ‘sem7’ undeclared (first use in this function)
>> /home/olivares/Downloads/intel-536-537/coredrv/locks.c:234:11: error:
>> ‘sem8’ undeclared (first use in this function)
>> make[4]: *** [/home/olivares/Downloads/intel-536-537/coredrv/locks.o] Error 1
>> make[3]: *** [_module_/home/olivares/Downloads/intel-536-537/coredrv] Error 2
>> make[3]: Leaving directory `/usr/src/kernels/2.6.38.8-32.fc15.i686'
>> make[2]: *** [536core_26] Error 2
>> make[2]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> 2.6.38.8-32.fc15.i686
>> Failed to build driver
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537'
>> [root@toshiba-satellite intel-536-537]# kwrite coredrv/locks.c &
>> [1] 2952
>>
>>
>> made the changes :)
>>
>> [root@toshiba-satellite intel-536-537]# make clean
>> cd coredrv; make clean
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
>> rm -rf .tmp_versions
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.o *.ko
>> [1]+  Done                    kwrite coredrv/locks.c
>> [root@toshiba-satellite intel-536-537]# make 536
>> cd coredrv; make clean
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
>> rm -rf .tmp_versions
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> rm -f *.o *.ko
>>   Module precompile check
>>   Current running kernel is: 2.6.38.8-32.fc15.i686
>>   /lib/modules...   autoconf.h exists
>> diff: /boot/vmlinuz.autoconf.h: No such file or directory
>>   autoconf.h matches running kernel
>> diff: /boot/vmlinuz.version.h: No such file or directory
>>   version.h matches running kernel
>> make[1]: Entering directory `/home/olivares/Downloads/intel-536-537'
>>  Not a 536EP phone modem board
>> /bin/bash: line 2: //: Is a directory
>> 2.6.38.8-32.fc15.i686
>> make[2]: Entering directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> make -C /lib/modules/2.6.38.8-32.fc15.i686/build
>> SUBDIRS=/home/olivares/Downloads/intel-536-537/coredrv modules
>> make[3]: Entering directory `/usr/src/kernels/2.6.38.8-32.fc15.i686'
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/coredrv.o
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: data definition has no type or storage class [enabled by
>> default]
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/coredrv.c:775:4:
>> warning: parameter names (without types) in function declaration
>> [enabled by default]
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/clmmain.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/rts.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/task.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/uart.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/wwh_dflt.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/locks.o
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/softserial_io.o
>> /home/olivares/Downloads/intel-536-537/coredrv/softserial_io.c:68:8:
>> warning: type defaults to ‘int’ in declaration of ‘DECLARE_SEMAPHORE’
>> [-Wimplicit-int]
>> /home/olivares/Downloads/intel-536-537/coredrv/softserial_io.c:68:1:
>> warning: parameter names (without types) in function declaration
>> [enabled by default]
>> /home/olivares/Downloads/intel-536-537/coredrv/softserial_io.c:68:8:
>> warning: ‘DECLARE_SEMAPHORE’ declared ‘static’ but never defined
>> [-Wunused-function]
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/softserial_ioctl.o
>> /home/olivares/Downloads/intel-536-537/coredrv/softserial_ioctl.c: In
>> function ‘softserial_ioctl’:
>> /home/olivares/Downloads/intel-536-537/coredrv/softserial_ioctl.c:124:20:
>> warning: variable ‘status’ set but not used
>> [-Wunused-but-set-variable]
>>  CC [M]  /home/olivares/Downloads/intel-536-537/coredrv/softserial.o
>>  LD [M]  /home/olivares/Downloads/intel-536-537/coredrv/Intel536.o
>>  Building modules, stage 2.
>>  MODPOST 1 modules
>> WARNING: could not find
>> /home/olivares/Downloads/intel-536-537/coredrv/.536core.lib.cmd for
>> /home/olivares/Downloads/intel-536-537/coredrv/536core.lib
>>  CC      /home/olivares/Downloads/intel-536-537/coredrv/Intel536.mod.o
>>  LD [M]  /home/olivares/Downloads/intel-536-537/coredrv/Intel536.ko
>> make[3]: Leaving directory `/usr/src/kernels/2.6.38.8-32.fc15.i686'
>> make[2]: Leaving directory `/home/olivares/Downloads/intel-536-537/coredrv'
>> make[1]: Leaving directory `/home/olivares/Downloads/intel-536-537'
>> [root@toshiba-satellite intel-536-537]#
>>
>> Try those and report back :)
>>
>> Regards,
>>
>>
>> Antonio
>>
>> On Sat, Jul 2, 2011 at 4:06 PM, Philippe Vouters
>> <philippe.vouters@xxxxxxxxxxx> wrote:
>>> Dear Stephen,
>>>
>>> I still have an Intel 536EP modem plugged in into my computer. However I
>>> completely switched to Voice-over-IP for savings reasons and do not any
>>> longer have access to any analog phone line.
>>>
>>> However as I upgraded to Fedora 15, I now run a 2.6.38.8-32.fc15.i686
>>> kernel. And I now do reproduce the compile-time problems you observe on
>>> your side. I shall put efforts onto this intel-536-537/coredrv/lock.c as
>>> soon as I have spare time, as I now spend most of my time and efforts
>>> onto another side of my Web site satisfying the worldwide IT community
>>> with completely unrelated subjects (mostly programming oriented
>>> subjects, refer to http://vouters.dyndns.org/tima/ ).I have kept your
>>> mail and your wish to satisfy your Ubuntu community and shall address
>>> your concern. However I may not respond as immediately as before.
>>>
>>> Yours truly,
>>> Philippe
>>>
>>> Le 02/07/2011 21:13, S Pinker a écrit :
>>>> Philippe, my friend, problems over in Ubuntu-village again.I receive similar errors when compiling 536 and 537 drivers.
>>>>
>>>> I am using this source, as I am unaware of a more recent update-
>>>>
>>>> http://vouters.dyndns.org/Intel/intel-536EP-537EP_2010_07_19.tar.bz2
>>>>
>>>> I no longer have a 536EP modem anymore, so to compile the driver, I have to comment out line#53 of makefile_536:
>>>>
>>>> exit; \
>>>>
>>>>
>>>> The current kernel used on Ubuntu is Linux 2.6.38.
>>>>
>>>> Over the past few months since Ubuntu 11.04 was released, I have tried several different ways two make this work, but I seem to keep coming back to the same errors. Hopefully you can help me out on this.
>>>>
>>>>
>>>> Sep
>>>>
>>>> http://groups.google.com/group/ubuntu-modems
>>>>
>>>>
>>>>
>>>> root@ubuntu:/usr/src/intel-536-537# make 536
>>>> cd coredrv; make clean
>>>> make[1]: Entering directory `/usr/src/intel-536-537/coredrv'
>>>> rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
>>>> rm -rf .tmp_versions
>>>> make[1]: Leaving directory `/usr/src/intel-536-537/coredrv'
>>>> rm -f *.o *.ko
>>>>    Module precompile check
>>>>    Current running kernel is: 2.6.38-8-generic
>>>>    /lib/modules...   autoconf.h exists
>>>> diff: /boot/vmlinuz.autoconf.h: No such file or directory
>>>>    autoconf.h matches running kernel
>>>> diff: /boot/vmlinuz.version.h: No such file or directory
>>>>    version.h matches running kernel
>>>> make[1]: Entering directory `/usr/src/intel-536-537'
>>>>  Not a 536EP phone modem board
>>>> 2.6.38-8-generic
>>>> make[2]: Entering directory `/usr/src/intel-536-537/coredrv'
>>>> make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/usr/src/intel-536-537/coredrv modules
>>>> make[3]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/coredrv.o
>>>> /usr/src/intel-536-537/coredrv/coredrv.c:775:4: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/coredrv.c:775:4: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/coredrv.c:775:4: warning: parameter names (without types) in function declaration
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/clmmain.o
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/rts.o
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/task.o
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/uart.o
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/wwh_dflt.o
>>>>   CC [M]  /usr/src/intel-536-537/coredrv/locks.o
>>>> /usr/src/intel-536-537/coredrv/locks.c:144:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:144:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:144:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:145:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:145:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:145:1: warning: parameter names (without
>>>> types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:146:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:146:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:146:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:147:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:147:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:147:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:148:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:148:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:148:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:149:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:149:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:149:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:150:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:150:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:150:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:151:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:151:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:151:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c:152:1: warning: data definition has no type or storage class
>>>> /usr/src/intel-536-537/coredrv/locks.c:152:1: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
>>>> /usr/src/intel-536-537/coredrv/locks.c:152:1: warning: parameter names (without types) in function declaration
>>>> /usr/src/intel-536-537/coredrv/locks.c: In function ‘linux_RSAGetExclusive’:
>>>> /usr/src/intel-536-537/coredrv/locks.c:160:24: error: ‘sem0’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:160:24: note: each undeclared identifier is reported only once for each function it appears in
>>>> /usr/src/intel-536-537/coredrv/locks.c:164:24: error: ‘sem1’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:168:24: error: ‘sem2’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:172:24: error: ‘sem3’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:176:24: error: ‘sem4’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:180:24: error: ‘sem5’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:184:24: error: ‘sem6’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:188:24: error: ‘sem7’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:192:24: error: ‘sem8’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c: In function ‘linux_RSAFreeExclusive’:
>>>> /usr/src/intel-536-537/coredrv/locks.c:210:11: error: ‘sem0’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:213:11: error: ‘sem1’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:216:11: error: ‘sem2’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:219:11: error: ‘sem3’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:222:11: error: ‘sem4’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:225:11: error: ‘sem5’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:228:11: error: ‘sem6’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:231:11: error: ‘sem7’ undeclared (first use in this function)
>>>> /usr/src/intel-536-537/coredrv/locks.c:234:11: error: ‘sem8’ undeclared (first use in this function)
>>>> make[4]: *** [/usr/src/intel-536-537/coredrv/locks.o] Error 1
>>>> make[3]: *** [_module_/usr/src/intel-536-537/coredrv] Error 2
>>>> make[3]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
>>>> make[2]: *** [536core_26] Error 2
>>>> make[2]: Leaving directory `/usr/src/intel-536-537/coredrv'
>>>> 2.6.38-8-generic
>>>> Failed to build driver
>>>> make[1]: Leaving directory `/usr/src/intel-536-537'
>>>> root@ubuntu:/usr/src/intel-536-537#
>>>>
>>> --
>>> Philippe Vouters (Fontainebleau/France)
>>> URL: http://vouters.dyndns.org/
>>>
>>>
>>>
>

-- 
Philippe Vouters (Fontainebleau/France)
URL: http://vouters.dyndns.org/




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

  Powered by Linux