Re: sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
Ok, thanks for suggestions. Hope, the optimal solution will be found. Anton -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALF6qJnB73EY-DijF73OvXGueS13kchUN=pqp6knee

Re: sysinfo.h problem to compile

2011-07-17 Thread Robert Millan
2011/7/17 Anton Gladky : > [1] > http://anonscm.debian.org/gitweb/?p=debian-science/packages/freecad.git;a=blob;f=src/3rdParty/salomesmesh/src/SMDS/SMDS_Mesh.cpp;h=08d1b66958c089e84b2e0e468b7a34f2bae58106;hb=HEAD#l68 The code you quoted just fills the structure, below it's using it to query free

Re: sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
It is for FreeCAD [1]: struct sysinfo si; int err = sysinfo( &si ); if ( err ) return -1; static int limit = -1; if ( limit < 0 ) { int status = system("SMDS_MemoryLimit"); // it returns lower limit of free RAM if (status >= 0 ) { limit = WEXITSTATUS(status); }

Re: sysinfo.h problem to compile

2011-07-17 Thread Robert Millan
2011/7/17 Petr Salinger : > The GNU/kFreeBSD does not have "struct sysinfo" at all. Anton, there are usually suitable replacements. What did you need sysinfo for? -- Robert Millan -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contac

Re: sysinfo.h problem to compile

2011-07-17 Thread Petr Salinger
I have a very simple code: = #include int main() { struct sysinfo si; } = On KFreebsd it fails and causes FTBFS: s.cpp:5:18: error: aggregate ?main()::sysinfo si? has incomplete type and cannot be defined On other systems it compiles without errors. What can be a problem in?

sysinfo.h problem to compile

2011-07-17 Thread Anton Gladky
Hi, all I have a very simple code: = #include int main() { struct sysinfo si; } = On KFreebsd it fails and causes FTBFS: s.cpp:5:18: error: aggregate ‘main()::sysinfo si’ has incomplete type and cannot be defined On other systems it compiles without errors. What can be a prob