Singular
https://www.singular.uni-kl.de/forum/

omalloc
https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=1310
Page 1 of 1

Author:  Vladimir Mityunin [ Thu Aug 11, 2005 5:31 pm ]
Post subject:  omalloc

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

Author:  levandov [ Thu Aug 11, 2005 8:59 pm ]
Post subject:  Re: omalloc (windows)

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,

Author:  levandov [ Thu Aug 11, 2005 9:01 pm ]
Post subject:  omalloc under Wibdows

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,

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/