wvdial compilation problem on sh4-linux

44 views
Skip to first unread message

Ganesh Prasad

unread,
Dec 30, 2013, 10:51:00 AM12/30/13
to wvstrea...@googlegroups.com
Hi
I am trying to cross compile wvdial on sh4-linux but it gives undefined reference error. following is the output of 'make VERBOSE=1'
I have also tried to keep wvdial.a at end of the line but the error is same. Please help in how to compile the package.

Thanks
Ganesh

* Generating CC
* Generating CXX
sh4-linux-g++ -L/opt/STM/STLinux-2.4/devkit/sh4/target/lib -L/opt/STM/STLinux-2.4/devkit/sh4/target/lib/xplc-0.3.12  -L -ggdb -luniconf -lwvstreams -lwvutils -lwvbase  -o wvdial wvdial.o wvdial.a     -lwvstreams -lwvutils -lwvbase -lxplc-cxx  
wvdial.o: In function `main':
/home/stsoft/porting/wv_new/wvdial-1.61/wvdial.cc:108: undefined reference to `WvLog::WvLog(WvFastString const&, WvLog::LogLevel, WvCallback<WvString, WvFastString const&, E, E, E, E, E, E, E>*)'
/home/stsoft/porting/wv_new/wvdial-1.61/wvdial.cc:128: undefined reference to `WvArgs::add_option(char, WvFastString const&, WvFastString const&, WvFastString const&, WvCallback<bool, WvFastString const&, void*, E, E, E, E, E, E>, void*)'
wvdial.o:(.data.rel.ro._ZTV12WvDialLogger[_ZTV12WvDialLogger]+0x68): undefined reference to `WvStream::setreadcallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.o:(.data.rel.ro._ZTV12WvDialLogger[_ZTV12WvDialLogger]+0x6c): undefined reference to `WvStream::setwritecallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.o:(.data.rel.ro._ZTV12WvDialLogger[_ZTV12WvDialLogger]+0x70): undefined reference to `WvStream::setexceptcallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.o:(.data.rel.ro._ZTV12WvDialLogger[_ZTV12WvDialLogger]+0x74): undefined reference to `WvStream::setclosecallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.o:(.data.rel.ro._ZTV12WvDialLogger[_ZTV12WvDialLogger]+0xf0): undefined reference to `non-virtual thunk to WvLogConsole::_mid_line(char const*, unsigned int)'
wvdial.a(wvdialer.o): In function `WvDialer::WvDialer(WvConfEmu&, WvStringList*, bool)':
/home/stsoft/porting/wv_new/wvdial-1.61/wvdialer.cc:71: undefined reference to `WvLog::WvLog(WvFastString const&, WvLog::LogLevel, WvCallback<WvString, WvFastString const&, E, E, E, E, E, E, E>*)'
/home/stsoft/porting/wv_new/wvdial-1.61/wvdialer.cc:71: undefined reference to `WvLog::WvLog(WvFastString const&, WvLog::LogLevel, WvCallback<WvString, WvFastString const&, E, E, E, E, E, E, E>*)'
wvdial.a(wvdialer.o): In function `WvDialer::start_ppp()':
/home/stsoft/porting/wv_new/wvdial-1.61/wvdialer.cc:1285: undefined reference to `WvPipe::WvPipe(char const*, char const* const*, bool, bool, bool, WvFdStream*, WvFdStream*, WvFdStream*)'
wvdial.a(wvdialer.o): In function `WvLog::split(WvLog::LogLevel) const':
/usr/include/wvstreams/wvlog.h:143: undefined reference to `WvLog::WvLog(WvFastString const&, WvLog::LogLevel, WvCallback<WvString, WvFastString const&, E, E, E, E, E, E, E>*)'
wvdial.a(wvdialer.o):(.data.rel.ro._ZTV8WvDialer[_ZTV8WvDialer]+0x68): undefined reference to `WvStream::setreadcallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.a(wvdialer.o):(.data.rel.ro._ZTV8WvDialer[_ZTV8WvDialer]+0x6c): undefined reference to `WvStream::setwritecallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.a(wvdialer.o):(.data.rel.ro._ZTV8WvDialer[_ZTV8WvDialer]+0x70): undefined reference to `WvStream::setexceptcallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.a(wvdialer.o):(.data.rel.ro._ZTV8WvDialer[_ZTV8WvDialer]+0x74): undefined reference to `WvStream::setclosecallback(WvCallback<void, WvStream&, E, E, E, E, E, E, E>)'
wvdial.a(wvdialmon.o): In function `WvDialMon::WvDialMon()':
/home/stsoft/porting/wv_new/wvdial-1.61/wvdialmon.cc:26: undefined reference to `WvLog::WvLog(WvFastString const&, WvLog::LogLevel, WvCallback<WvString, WvFastString const&, E, E, E, E, E, E, E>*)'
collect2: error: ld returned 1 exit status
make: *** [wvdial] Error 1

Reply all
Reply to author
Forward
0 new messages