Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: omalloc
PostPosted: 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


Report this post
Top
  
Reply with quote  
 Post subject: Re: omalloc (windows)
PostPosted: Thu Aug 11, 2005 8:59 pm 

Joined: Thu Aug 11, 2005 8:03 pm
Posts: 37
Location: RWTH Aachen, Germany
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,

_________________
Viktor Levandovskyy


Report this post
Top
 Profile  
Reply with quote  
 Post subject: omalloc under Wibdows
PostPosted: Thu Aug 11, 2005 9:01 pm 

Joined: Thu Aug 11, 2005 8:03 pm
Posts: 37
Location: RWTH Aachen, Germany
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,

_________________
Viktor Levandovskyy


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Thu Dec 14, 2017 5:03 pm
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group