Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

Project Improvement Help - YANA(Yet Another Network Analyzer)

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Euller Pereira

Hello, I'm an academic student from Brazil, and I have a project of updating and porting to Linux an application called YANA(Yet Another Network Analyzer). You can find it on the following link: http://sourceforge.net/projects/yana/.

The latest version was written using Lazarus 0.9.22 and seemingly Free Pascal 2.0.4(I'm not entirely sure of it), which was back in 2007. Since then, much has changed in these two tools, and many things need to be reworked on YANA.

But the first problem is that I can't even compile the code provided by the author, because it uses Kylix compatibility-only units for Linux, libc and kernelioctl, and it relies on a specific dll of Windows, IP Helper DLL. Therefore, this fact locks the software to Windows and Linux running on a i386 platform.

I successfully compiled and ran all the utility modules that composes it as separate programs, but when they are put together with a particular unit, which I will send as an attachment to this e-mail, the whole process broke down in others platforms.

My intent is to remove this dependency and make the software more cross-platform possible, but I actually have no clue about how to do it, so please: can any of you help me by telling the first steps which I must take, the beginning is hard, but once the flow is established, the outcome will be a natural consequence of it.

Thank you in advance for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150428/a19f276b/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: uiphelper.pas
Type: text/x-pascal
Size: 72965 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150428/a19f276b/attachment-0001.bin>

Reply by email

Giuliano Colla
to Euller Pereira

Il 28/04/2015 22:38, Euller Pereira ha scritto:

Show quoted text 5 lines
But the first problem is that I can't even compile the code provided by the author, because it uses Kylix compatibility-only units for Linux, libc and kernelioctl, and it relies on a specific dll of Windows, IP Helper DLL. Therefore, this fact locks the software to Windows and Linux running on a i386 platform.

Most of the stuff which used to be in the Kylix-compatibility units is now available in fpc cross-platform version in units such as BaseUnix. Non cross-platform identifiers have been renamed to cross-platform ones by prepending an "fp" to the name. So you will not have anymore a "select" function but an "fpselect" function instead. A patient search on fpc sources for the identifiers left unsatisfied if you remove libc and other Kylix-only dependencies, should reveal most of what you need.

Giuliano

Reply by email

Euller Pereira
to Giuliano Colla

Thank you Giuliano, I'll start doing this right away.

2015-04-29 13:45 GMT-03:00 Giuliano Colla :

Show quoted text 27 lines
Il 28/04/2015 22:38, Euller Pereira ha scritto: > But the first problem is that I can't even compile the code provided by > the author, because it uses Kylix compatibility-only units for Linux, libc > and kernelioctl, and it relies on a specific dll of Windows, IP Helper DLL. > Therefore, this fact locks the software to Windows and Linux running on a > i386 platform. > Most of the stuff which used to be in the Kylix-compatibility units is now available in fpc cross-platform version in units such as BaseUnix. Non cross-platform identifiers have been renamed to cross-platform ones by prepending an "fp" to the name. So you will not have anymore a "select" function but an "fpselect" function instead. A patient search on fpc sources for the identifiers left unsatisfied if you remove libc and other Kylix-only dependencies, should reveal most of what you need. Giuliano -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150429/a56b77d9/attachment-0001.html>

Reply by email