Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » problem with sysinfo (inet_ntop error)
problem with sysinfo [message #43627] Mon, 15 September 2014 22:01 Go to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
hello guys,

This seems to be a problem with call of inet_ntop function of w2_s32.dll library in SysInfo package. The following error Sad (no entry point for inet_ntop function in w2_s32.dll) when compiling Under WinXP.

After little googling, it appears that inet_ntop cannot be called Under WinXp but only starting with Vista.

inet_ntop function is called at several different points in sysinfo.cpp file (lines 260, 269, 450, 452, 667 & 670). No specific testing of Win version is included and therefore the compiled project cannot run properly Under WinXP.

Hope this could help to solve this issue

Regards
Biobytes

Re: problem with sysinfo [message #43628 is a reply to message #43627] Tue, 16 September 2014 09:41 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Thank you BioBytes

Looking for another solution... Rolling Eyes


Best regards
Iñaki
Re: problem with sysinfo [message #43639 is a reply to message #43628] Wed, 17 September 2014 08:11 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello BioBytes

There is a new version that should solve your problem.

Unfortunately I have not found any reliable way to overcome the lack of inet_ntop in XP, so that the functions only return IP4 addresses in XP.


Best regards
Iñaki
Re: problem with sysinfo [message #43669 is a reply to message #43639] Thu, 18 September 2014 21:26 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hello Koldo,

Thank you for patching in SVN 7697 and your effort to solve this issue. Sorry Sad to say that I have still the error message box "no entry point of inet_ntop function in w2_s32.dll when compiling Sysinfo_demo_gui of Bazaar package. The computer on which I get this error is running WinXP pack service 2 and compiler is MSC9. No problem at all on my laptop running Under Win 7 and compiler MSC11.

I am not a specialist of IP management and internet features coding in C++ but I noticed that there still some call to inet_ntop in sysinfo.cpp without checking the Win version (see lines 697 & 692 in Array<NetAdapter> GetAdapterInfo() function).

Hope this could be helpful

Thanks again Smile

Regards

Biobytes
Re: problem with sysinfo [message #43672 is a reply to message #43669] Fri, 19 September 2014 08:27 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello BioBytes

I am surprised. The inet_ntop calls you have found are in an area only devoted to Linux.

Could you debug the code to find in what line exactly the error appears?


Best regards
Iñaki
Re: problem with sysinfo [message #43680 is a reply to message #43672] Fri, 19 September 2014 21:38 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hello Koldo,

Thank you for your reply and explanation on code lines 697 & 692 in Array<NetAdapter> GetAdapterInfo() function.

Unfortunately, I have access to the XP computer only during the working days in my office. During the week-end, I use UPP on my personal laptop which is running Win 7 and there is no entry error in Ws2_32.dll with call to inet_nop function Under Win 7.

So I will try to see if I can identify the issue starting next Monday. Razz

Do you have simlilar reports from other users ?

Regards

Biobytes
Re: problem with sysinfo [message #43692 is a reply to message #43680] Mon, 22 September 2014 10:41 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello BioBytes

There are no more feedback. However sometimes the people is shy Razz or so busy that they have no time to post.


Best regards
Iñaki
Re: problem with sysinfo [message #43698 is a reply to message #43692] Mon, 22 September 2014 21:40 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi Koldo,

First many thanks for considering this issue. Razz

Some information about the computer used in my office : Win XP pro including Service pack 2 and UPP 7697.

I tried to add SysInfo package to a projet showing basic use of GridCtrl: Compilation using MSC9 ends with the messagebox indicating no entry point of inet_ntop can be found in ws2_32.dll. If I delete the SysInfo package, no error occurs.

I tried to debug the project (including SysInfo) in theide and I got the following errors (message 1 then message 2) on the screen Confused :

1- Exception C000139 at 7C974ED1.

2- Exception C000001D at 8F14A8 Exception Illegal Instruction.

I have attached a pdf file showing screen captures.

I am afraid not to have sufficient skill to find where is the problem but when I put call to inet_ntop function in comments (disabling only the code lines 270 & 283)in SysInfo.cpp, the errors disappear (!). Shocked

I keep on investigation to give you more info

Regards

Biobytes

[Updated on: Tue, 23 September 2014 10:08]

Report message to a moderator

Re: problem with sysinfo [message #43707 is a reply to message #43698] Wed, 24 September 2014 12:11 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello BioBytes

Thank you for your research. I see the source of the problem: SysInfo loads statically inet_ntop so you get a compiler error. I will try to load it dynamically.


Best regards
Iñaki
Re: problem with sysinfo [message #43710 is a reply to message #43707] Wed, 24 September 2014 21:44 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hello Koldo,

Thanks for your post. I think you got the tip.

Waiting for your patch.

Thanks again for your support Smile

Regards
Biobytes
Re: problem with sysinfo [message #43724 is a reply to message #43710] Fri, 26 September 2014 23:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello BioBytes

New version is uploaded. Finally it has been impossible to use original inet_ntop function due to a strange stack overflow error. Finally inet_ntop source is included and seems to work very well. It comes from an old BIND version with a BSD like license.

Please check it. Thank you.


Best regards
Iñaki
Re: problem with sysinfo [message #43733 is a reply to message #43724] Mon, 29 September 2014 14:06 Go to previous messageGo to next message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hello Koldo,

Just having downloaded UPP svn 7740 including your last patch and it works perfectly under Win XP service pack 2 machines here in office using MSC9 compiler. Smile

Thanks a lot and congratulations to have solved this issue. Thumbs Up

Kind regards

Biobytes
Re: problem with sysinfo [message #43739 is a reply to message #43733] Tue, 30 September 2014 17:19 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Smile

Best regards
Iñaki
Re: problem with sysinfo [message #44008 is a reply to message #43639] Thu, 11 December 2014 18:15 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 1091
Registered: August 2007
Senior Contributor
koldo wrote on Wed, 17 September 2014 09:11
Hello BioBytes

There is a new version that should solve your problem.

Unfortunately I have not found any reliable way to overcome the lack of inet_ntop in XP, so that the functions only return IP4 addresses in XP.


Hello Koldo,

I know this is somewhat an old news, and you probably already considered this, but, FYI (or for anyone who encounter the same problem), there is a function called WSAAddressToString() implemented from Windows XP SP1 and on. It is the same as inet_ntop and can handle both IPv4 and IPV6 (if IPv6 stack is installed).

Regards,
Oblivion.



Re: problem with sysinfo [message #44010 is a reply to message #44008] Thu, 11 December 2014 21:14 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Thank you Oblivion Smile



Best regards
Iñaki
Previous Topic: SysInfoGui - some improvements
Next Topic: Problems with OfficeAutomation (Solved)
Goto Forum:
  


Current Time: Thu Mar 28 22:41:00 CET 2024

Total time taken to generate the page: 0.01931 seconds