Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
Posts: 11
Registered: ‎01-15-2013
My Device: Playbook 32
My Carrier: n/a
Accepted Solution

Undefined reference to netstatus_get_proxy_details_for_url

Hi All,

 

Sorry to post another question so shortly after my first, but I am stuck again and could use the help of a more experience BB10 developer,

 

I have created a 'managed' cascases project in the eclipse-based IDE.  I'm getting an undefined reference to netstatus_get_proxy_details_for_url althought I link libbps.  I also get a link error with `_readdir_r'  which is odd.

 

I have the following qcc command and linker error. (cut for brevity)

 

 

...  -lbb -lbps -lboost_system -lboost_thread -lboost_filesystem -lcrypto -liconv -lc -lstdc++ -lsocket -linput_utilities -linput_client -lQtCore -lbbplatform -lssl -lbbcascades -lQtXml -lQtScript -lbbutility -lQtGui -lQtDeclarative -lQtSql -lQtXmlPatterns -lbps -lQtNetwork -lbbdata -lbbsystem -lxml2 -lwifi -lbtapi -lcsm -lcurl -lgoogleurl -lbbdevice -lbbsystemlocale -lm -lQtSvg -V4.6.3,gcc_ntox86_cpp -w1 -lang-c++ -g -Wl,-z,relro -Wl,-z,now -L/home/colinn/Programs/bbndk/target_10_0_9_386/qnx6/../target-override/x86/lib -L/home/colinn/Developer/bb/10/extra/Boost-1_48_0-gnu/rim-build/boost-stage/x86/debug/lib -L/home/colinn/Developer/bb/10/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib -L/home/colinn/Programs/bbndk/target_10_0_9_386/qnx6/../target-override/x86/usr/lib

/home/colinn/Developer/bb/10/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib/libQtNetwork.so: undefined reference to `netstatus_get_proxy_details_for_url'
/home/colinn/Developer/bb/10/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib/libQtCore.so: undefined reference to `_readdir_r'
cc: /home/colinn/Programs/bbndk/host_10_0_9_52/linux/x86/usr/bin/ntox86-ld error 1
Build error occurred, build is stopped

 

 

Any suggestions?  Maybe I should stick to a .pro and qmake?

netstatus_get_proxy_details_for_url

Highlighted
Retired
Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: Undefined reference to netstatus_get_proxy_details_for_url

re-order the libraries so that -lbps appears after -lQtNetwork

Contributor
Posts: 11
Registered: ‎01-15-2013
My Device: Playbook 32
My Carrier: n/a

Re: Undefined reference to netstatus_get_proxy_details_for_url

[ Edited ]

Thank you very much for the reply.  Unfortunately the re-order doesn't yield different results.  Same undefined reference.  This is really bizarre.  Maybe I have the wrong arch type.

 

here are the library directories I have in the search path:

 

-L/home/colinn/Programs/bbndk/target_10_0_9_386/qnx6/../target-override/x86/lib

-L/home/colinn/Developer/bb/10/extra/Boost-1_48_0-gnu/rim-build/boost-stage/x86/debug/lib

-L/home/colinn/Developer/bb/10/target_10_0_9_1673/qnx6/x86/usr/lib/qt4/lib

-L/home/colinn/Programs/bbndk/target_10_0_9_386/qnx6/../target-override/x86/usr/lib

 

AH! I am.  I think this happened when the Simulator wouldn't run with the Gold SDK.  The IDE searched and found a new QNX_TARGET but my filesystem paths remained the same. Thanks for the feedback, it helped me take a closer look at the problem