Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined reference to wxHTTP::wxHTTP() #119

Open
phl0 opened this issue Feb 1, 2017 · 7 comments
Open

Undefined reference to wxHTTP::wxHTTP() #119

phl0 opened this issue Feb 1, 2017 · 7 comments

Comments

@phl0
Copy link
Contributor

phl0 commented Feb 1, 2017

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
Copy link
Contributor

F4FXL commented Feb 1, 2017

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.

@phl0
Copy link
Contributor Author

phl0 commented Feb 1, 2017

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
Copy link
Contributor

F4FXL commented Feb 1, 2017

i tried with 16.04 LTS on raspberry pi

@phl0
Copy link
Contributor Author

phl0 commented Feb 1, 2017

Hmm that is bad :-(

@F4FXL
Copy link
Contributor

F4FXL commented Feb 1, 2017

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
Copy link
Contributor Author

phl0 commented Feb 1, 2017

Ack. Will try that.

@rlsnuffy
Copy link

rlsnuffy commented Feb 2, 2017

I have the same issue with Xubuntu 16.04 LTS.

update:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants