[GRASS-dev] r.li.* building errors in MinGW Windows

Hi,

it seems that r.li.* hace problems finding a library, except r.li.daemon. Actually Makefile of r.li.daemon is different;
I introduced new procedures compiling gdal; don’t if this takes effects, but I try…
I’m re-compiling grass right now… I’ll tell you about consequences…
Bye,

Marco

On 24/01/08 17:29, marco.pasetti@alice.it wrote:

Hi,
it seems that r.li.* hace problems finding a library, except r.li.daemon. Actually Makefile of r.li.daemon is different;
I introduced new procedures compiling gdal; don't if this takes effects, but I try...
I'm re-compiling grass right now.... I'll tell you about consequences...

Actually, compiling r.li.daemon gives the library:

liblibr_li.6.3.cvs.dll

As this fails because some functions (mkfifo, fork, etc) are unknown, all the other r.li modules which depend on this library fail to compile.

Glynn, do you have any hints of what would be needed to make this compile ?

Moritz

Actually, compiling r.li.daemon gives the library: liblibr_li.6.3.cvs.dll

As this fails because some functions (mkfifo, fork, etc) are unknown,
all the other r.li modules which depend on this library fail to compile.

Ok. Some other modules fail due to lack of fork() &co in MinGW… it’s the same problem I reported you before.
I started reading this articles on Microsoft Developer Network: http://msdn2.microsoft.com/en-us/library/ms686353(VS.85).aspx, but I think it’s too much for me… mainly in few time.

Regards,

Marco


Da: Moritz Lennert [mailto:mlennert@club.worldonline.be]
Inviato: gio 24/01/2008 17.54
A: marco.pasetti@alice.it
Cc: grass-dev@lists.osgeo.org; Glynn Clements
Oggetto: Re: [GRASS-dev] r.li.* building errors in MinGW Windows

On 24/01/08 17:29, marco.pasetti@alice.it wrote:

Hi,

it seems that r.li.* hace problems finding a library, except
r.li.daemon. Actually Makefile of r.li.daemon is different;
I introduced new procedures compiling gdal; don’t if this takes effects,
but I try…
I’m re-compiling grass right now… I’ll tell you about consequences…

Actually, compiling r.li.daemon gives the library:

liblibr_li.6.3.cvs.dll

As this fails because some functions (mkfifo, fork, etc) are unknown,
all the other r.li modules which depend on this library fail to compile.

Glynn, do you have any hints of what would be needed to make this compile ?

Moritz

Moritz Lennert wrote:

> it seems that r.li.* hace problems finding a library, except
> r.li.daemon. Actually Makefile of r.li.daemon is different;
> I introduced new procedures compiling gdal; don't if this takes effects,
> but I try...
> I'm re-compiling grass right now.... I'll tell you about consequences...

Actually, compiling r.li.daemon gives the library:

liblibr_li.6.3.cvs.dll

As this fails because some functions (mkfifo, fork, etc) are unknown,
all the other r.li modules which depend on this library fail to compile.

Glynn, do you have any hints of what would be needed to make this compile ?

Unix :wink:

The issue with r.li is quite similar to the issue with monitors.

AFAICT, you would need to replace fork()/exec() with CreateProcess(),
mkfifo() with CreateNamedPipe(), open() with ConnectNamedPipe()
(daemon end) or CreateFile() (client end). Some other changes may be
required.

--
Glynn Clements <glynn@gclements.plus.com>