This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

wvdial cross compilation issue

Hi, 

I am trying to cross compile wvdial with arm-none-linux on ubuntu linux 11.04. its giving below msg at the time of giving make command and make install command. 

MSG: 
raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$ make 
* Generating CC 
mv: try to overwrite `CC', overriding mode 0755 (rwxr-xr-x)? 
* Generating CXX 
mv: try to overwrite `CXX', overriding mode 0755 (rwxr-xr-x)? 
./CXX -c wvdialer 
linking wvdial.a... 
ar: creating wvdial.a 
./CXX -c wvdial 
linking wvdial... 
./CXX -c wvdialconf 
linking wvdialconf... 
linking pppmon... 
linking papchaptest... 
and 

raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$ make install 
* Generating CC 
mv: try to overwrite `CC', overriding mode 0755 (rwxr-xr-x)? 
* Generating CXX 
mv: try to overwrite `CXX', overriding mode 0755 (rwxr-xr-x)? 
[ -d /usr/local/bin ] || install -d /usr/local/bin 
[ -d /etc/ppp/peers ] || install -d /etc/ppp/peers 
install -m 0755 wvdial wvdialconf /usr/local/bin 
install: cannot remove `/usr/local/bin/wvdial': Permission denied 
install: cannot remove `/usr/local/bin/wvdialconf': Permission denied 
make: *** [install-bin] Error 1 
raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$


pls help.

rgds

raghava

  • RAGHAVA REDDY said:
    install: cannot remove `/usr/local/bin/wvdial': Permission denied 
    install: cannot remove `/usr/local/bin/wvdialconf': Permission denied 
    make: *** [install-bin] Error 1

    You try install wvdial in your system, you must have root access for this.

    Because you use cross-compile I think you build programm for another system. What prefix you set on configure step? Plese post here your configure line.

  • HI,

    here i am pasting the given configure step, and i am given sudo make install for root permission, then i am getting below error.

    raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$ ./configure --prefix=/home/workspace CC=arm-none-linux-gnueabi-gcc --host=arm-linux
    raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$ make
    * Generating CC
    * Generating CXX
    ./CXX -c wvdialer   
    linking wvdial.a...
    ar: creating wvdial.a
    ./CXX -c wvdial   
    linking wvdial...
    ./CXX -c wvdialconf   
    linking wvdialconf...
    linking pppmon...
    linking papchaptest...
    raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$ sudo make install
    [sudo] password for raghava:
    * Generating CC
    * Generating CXX
    [ -d /usr/local/bin      ] || install -d /usr/local/bin
    [ -d /etc/ppp/peers      ] || install -d /etc/ppp/peers
    install -m 0755 wvdial wvdialconf /usr/local/bin
    cp ppp.provider /etc/ppp/peers/wvdial
    cp ppp.provider-pipe /etc/ppp/peers/wvdial-pipe
    [ -d /usr/local/share/man/man1 ] || install -d /usr/local/share/man/man1
    [ -d /usr/local/share/man/man5 ] || install -d /usr/local/share/man/man5
    install -m 0644 wvdial.1 wvdialconf.1 /usr/local/share/man/man1
    install -m 0644 wvdial.conf.5 /usr/local/share/man/man5
    raghava@raghava-HCL-Notebook:~/CodeSourcery/Sourcery_G++_Lite/wvdial-1.61$

    pls help

    Rgds,

    raghava

  • Please attache config.log

    P.S. You can use ppp for VPN, wvdial is a wrapper for ppp.