dl5di / OpenDV

Open Digital Voice software for Amateur Radio based on Jonathan Naylor's (G4KLX) "ircDDBGateway" and "PCRepeaterController" for D-Star
GNU General Public License v2.0
107 stars 63 forks source link

Undefined reference to wxHTTP::wxHTTP() #119

Open phl0 opened 7 years ago

phl0 commented 7 years ago

I have an error compiling ircDDBGateway on Ubuntu 14.04 LTS system. wxwidgets 3.0 is installed. During make I get:

g++  -g -O2    -o ircddbgateway ircDDBGateway/ircddbgateway-IRCDDBGatewayApp.o ircDDBGateway/ircddbgateway-IRCDDBGatewayFrame.o ircDDBGateway/ircddbgateway-IRCDDBGatewayLogRedirect.o ircDDBGateway/ircddbgateway-IRCDDBGatewayThreadHelper.o ircDDBGateway/ircddbgateway-IRCDDBGatewayStatusData.o ircDDBGateway/ircddbgateway-IRCDDBGatewayThread.o -L/usr/lib/x86_64-linux-gnu -pthread   -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0  libCommon.a libircDDB.a 
libCommon.a(libCommon_a-XLXHostsFileDownloader.o): In function `CXLXHostsFileDownloader::Download(wxString const&)':
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:26: undefined reference to `wxHTTP::wxHTTP()'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:27: undefined reference to `wxSocketBase::SetNotify(int)'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:28: undefined reference to `wxSocketBase::SetFlags(int)'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:29: undefined reference to `wxHTTP::SetHeader(wxString const&, wxString const&)'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:30: undefined reference to `wxHTTP::SetHeader(wxString const&, wxString const&)'
libCommon.a(libCommon_a-XLXHostsFileDownloader.o): In function `wxProtocol::SetTimeout(long)':
/usr/include/wx-3.0/wx/protocol/protocol.h:91: undefined reference to `wxProtocol::SetDefaultTimeout(unsigned int)'
libCommon.a(libCommon_a-XLXHostsFileDownloader.o): In function `CXLXHostsFileDownloader::Download(wxString const&)':
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:46: undefined reference to `wxHTTP::Connect(wxString const&, unsigned short)'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:26: undefined reference to `wxHTTP::~wxHTTP()'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:52: undefined reference to `wxHTTP::GetInputStream(wxString const&)'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:77: undefined reference to `wxSocketBase::Close()'
/opt/OpenDV/ircDDBGateway/Common/XLXHostsFileDownloader.cpp:26: undefined reference to `wxHTTP::~wxHTTP()'
collect2: error: ld returned 1 exit status
Makefile:1345: recipe for target 'ircddbgateway' failed
make: *** [ircddbgateway] Error 1

What is the issue here?

F4FXL commented 7 years ago

I tried to compile under Ubuntu with no success. What I have tried so far :

All libraries are present. Above works like a charm on debian Jessie and above.

phl0 commented 7 years ago

Ok. Which version of Ubuntu did you try? I am runnning 14.04 LTS here. Thinking about switching to 16.04 anyways if that solves the problem.

F4FXL commented 7 years ago

i tried with 16.04 LTS on raspberry pi

phl0 commented 7 years ago

Hmm that is bad :-(

F4FXL commented 7 years ago

Off Topic but Always having issues to compile stuff is one of the reasons I moved away from Ubuntu. One thing you could try is to create a simple "Hello world like" program that uses wxHTTP. This would help us determine if the library is faulty or the autoconf stuff ...

phl0 commented 7 years ago

Ack. Will try that.

rlsnuffy commented 7 years ago

I have the same issue with Xubuntu 16.04 LTS.

update:

So I installed Debian 8 instead - and it builds just fine - go figure...