Cygwin Questions...

 
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding
View previous topic :: View next topic  
Author Message
Kyuss



Joined: 13 May 2005
Posts: 37
Location: Southern Hellinois

PostPosted: Thu May 19, 2005 11:38 pm    Post subject: Cygwin Questions... Reply with quote

diku gamma port from bsd to cygwin. (only doing this so I can run valgrind)
im happy with the bsd box except that it doesnt support purifty or valgrind.
which my main goal at this time is memory management.

Well ive managed to rangle the code up pretty good and it almost compiled
under the cygwin install on a win98 box. I get like 4-5 of these errors
including a couple for sigsetmask. I ran autoconf for the configure.in and
configure. to no avail.

comm.o(.text+0xb66a):/home/soulcode/comm.c:2828: undefined reference to `_sigmask'

comm.o(.text+0xb780):/home/soulcode/comm.c:2849: undefined reference to `_sigsetmask'

help? please?
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Author Message
eiz



Joined: 11 May 2005
Posts: 152
Location: Florida

PostPosted: Thu May 19, 2005 11:41 pm    Post subject: Reply with quote

?! Since when does Valgrind support Cygwin?

Anyway, I don't know if Cygwin completely supports the POSIX signal API, as it is all emulated under Windows (which has no signals, only SEH). I believe you will need to use sigprocmask instead.
Back to top
View user's profile Send private message Visit poster's website
Author Message
Kyuss



Joined: 13 May 2005
Posts: 37
Location: Southern Hellinois

PostPosted: Fri May 20, 2005 1:42 am    Post subject: Reply with quote

Quote:
?! Since when does Valgrind support Cygwin?


Please dont ruin my hopes Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Author Message
Tyche



Joined: 13 May 2005
Posts: 176
Location: Ohio, USA

PostPosted: Fri May 20, 2005 1:54 am    Post subject: Reply with quote

Kyuss wrote:
Quote:
?! Since when does Valgrind support Cygwin?


Please dont ruin my hopes Smile


AFAIK, Valgrind is a Linux only piece of software. It definately won't run on Cygwin.

As far as sigsetmask and sigmask, I ripped those out of my Diku-Alfa port and replaced them with signal as it works on all the platforms I tested.

You can find the Diku port here:
MudPorts

See the routines block_signals() and restore_signals() in signal.c and where they are called in comm.c
Back to top
View user's profile Send private message Visit poster's website
Author Message
eiz



Joined: 11 May 2005
Posts: 152
Location: Florida

PostPosted: Fri May 20, 2005 2:01 am    Post subject: Reply with quote

Tyche wrote:

AFAIK, Valgrind is a Linux only piece of software.


I thought so too. I've actually seen some patches that get it running under FreeBSD. It seems they're available here. Definitely no Cygwin though. It relies on being able to do some fairly low level machine code instrumentation (the core is basically a general purpose x86->x86 JIT compiler), especially where system calls are concerned.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mudlab.org Forum Index -> Coding All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
BBTech Template by © 2003-04 MDesign