how to solve the problem of the installation huawei modem e303c in ubuntu 13.04

Solution 1:

The problem is here:

/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2589:3: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]

I had a similar problem with another Huawei modem driver, and I fixed the source code.

First, let's find out where the hw_cdc_driver.c file is. Run the file command on all the files in the ~/Desktop/driver directory:

file *

You'll see some of them are "7-zip archive data" files. Run 7z l on each of them, to see the contents:

7z l data.bin

Maybe there are too many files, so you can just grep for the one you are looking for:

7z l data.bin | grep hw_cdc_driver.c

If you find it, then you need to extract the archive.

mkdir data_bin
mv data.bin data_bin
cd data_bin
7z x data.bin
rm data.bin

Now you have the contents of the archive in the data_bin directory. Search for the hw_cdc_driver.c file, open it, and go to line 2589 (the one from the error). You can just comment that line containing dbg (add a // in front of it) and save then close the file.

To pack the archive with the modified file, use 7z again:

cd data_bin
7z a data.bin data_bin
mv data.bin ..

Now you have replaced data.bin with the fixed file. Try to install again.