gcc-4.3 compiler faults slmodemd assembly

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

 



Trying to isolate the problem with slmodem package compiles under
kernels 2.6.27, I ran several trials.
If the compile is only done in the drivers/ folder, slamr.ko compile
is successful using either version gcc 4.2 or 4.3 compilers

But as  summarized in the short table below, the slmodemd compile in
the modem/ folder fails with the new gcc-4.3 compiler:

Kernel\gcc    4.2    4.3
2.4.21            +    failed
2.6.27            +    failed

The failure is illustrated below.  To sum the problem is that slmodemd
assembly fails upon update of gcc-4.2  to  gcc-4.3
If anyone has insights, please respond.

For those of you wanting to use slamr.ko compiled with gcc-4.3,
I suspect the slmodemd compiled with gcc-4.2 would be effective.
However I don't  have hardware to run this test.

MarvS

with
$ ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root     16 2008-11-10 22:39 /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

$ make KERNEL_DIR=/usr/src/linux-headers-2.6.27-7-generic
make -C modem all
make[1]: Entering directory `/usr/src/modules/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 `/usr/src/modules/slmodem-2.9.11-20080817/modem'
make: *** [modem] Error 2

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

  Powered by Linux