OpenDV icon indicating copy to clipboard operation
OpenDV copied to clipboard

Undefined reference to wxHTTP::wxHTTP()

Open phl0 opened this issue 7 years ago • 7 comments

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?

phl0 avatar Feb 01 '17 09:02 phl0

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

  • Installing wxWidgets from package repository, ircddb fails to compile at linking
  • Installing wxWidgets from source, same result

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

F4FXL avatar Feb 01 '17 09:02 F4FXL

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.

phl0 avatar Feb 01 '17 09:02 phl0

i tried with 16.04 LTS on raspberry pi

F4FXL avatar Feb 01 '17 09:02 F4FXL

Hmm that is bad :-(

phl0 avatar Feb 01 '17 09:02 phl0

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 ...

F4FXL avatar Feb 01 '17 10:02 F4FXL

Ack. Will try that.

phl0 avatar Feb 01 '17 10:02 phl0

I have the same issue with Xubuntu 16.04 LTS.

update:

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

rlsnuffy avatar Feb 02 '17 18:02 rlsnuffy