Read-only forum archive

omalloc

omalloc

Vladimir Mityunin · Thu Aug 11, 2005 5:31 pm

Hello.
I was not able to compile omalloc library under cygwin.
Some problems with sbrk:

In file included from omAllocEmulate.c:10:
omMalloc.h:851: conflicting types for `sbrk
/usr/include/sys/unistd.h:77: previous declaration of `sbrk
make: *** [omAllocEmulate.o] Error 1

And some problems with types like BOOL.
Does anybody know how to do it?
Thanks.

email: vmit@garnet.ru
Posted in old Singular Forum on: 2001-07-15 00:06:40+02

Re: omalloc (windows)

levandov · Thu Aug 11, 2005 8:59 pm

Quote:
> Hello.


Hi,

Quote:
> I was not able to compile omalloc library under cygwin.
> Some problems with sbrk:
>
> In file included from omAllocEmulate.c:10:
> omMalloc.h:851: conflicting types for `sbrk
> /usr/include/sys/unistd.h:77: previous declaration of `sbrk
> make: *** [omAllocEmulate.o] Error 1
>
> And some problems with types like BOOL.
> Does anybody know how to do it?


Sure. You should run top-level Singular configure (or configure.win if such exists) with the option --with-malloc=system. Otherwise this may not work. If you have more problems, just let us know.

Why do you need to compile Singular under cygwin
yourself? We do have the Win/cygwin version.

Quote:
> Thanks.


Regards,

omalloc under Wibdows

levandov · Thu Aug 11, 2005 9:01 pm

It seems that this problems no more persists in newer versions of cygwin (say, starting with the second half of 2004).

One can compile omalloc with malloc=system as well as in its native mode.

Best regards,