New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pid_t redefined in project.h #408

Closed
sroller opened this Issue Feb 28, 2013 · 12 comments

Comments

Projects
None yet
10 participants
@sroller

sroller commented Feb 28, 2013

project.h:90:
the

typedef int pid_t;

causes a compiler error.
the type is already defined in sys/types.h

typedef _pid_t pid_t;

I commented the line out. Compile went through with a ton of warnings.
Unit tests caused a segfault.

platform: Windows 64bit, Ruby 2.0.0p0, gcc 4.7.2 (rubyinstaller/devkit)

@tmm1

This comment has been minimized.

Show comment
Hide comment
@tmm1

tmm1 Feb 28, 2013

Contributor

Yuck. If it's still segfaulting I'm not sure what the issue is. Do you have a backtrace?

Contributor

tmm1 commented Feb 28, 2013

Yuck. If it's still segfaulting I'm not sure what the issue is. Do you have a backtrace?

@sroller

This comment has been minimized.

Show comment
Hide comment
@sroller

sroller Feb 28, 2013

no, it run through on the 1.0.1 at least twice. 4 errors, 9 failures though. Is there anything I can help with?

sroller commented Feb 28, 2013

no, it run through on the 1.0.1 at least twice. 4 errors, 9 failures though. Is there anything I can help with?

@tmm1

This comment has been minimized.

Show comment
Hide comment
@tmm1

tmm1 Feb 28, 2013

Contributor

When ruby segfaults it should print out the ruby and C stack trace.

Contributor

tmm1 commented Feb 28, 2013

When ruby segfaults it should print out the ruby and C stack trace.

@kaffepanna

This comment has been minimized.

Show comment
Hide comment
@kaffepanna

kaffepanna Feb 28, 2013

Having the same issue.

Output from rake test: https://gist.github.com/kaffepanna/5056316

kaffepanna commented Feb 28, 2013

Having the same issue.

Output from rake test: https://gist.github.com/kaffepanna/5056316

@sroller

This comment has been minimized.

Show comment
Hide comment
@sroller

sroller Mar 2, 2013

could repeat the segment fault: http://pastebin.com/sXBxrBAG

sroller commented Mar 2, 2013

could repeat the segment fault: http://pastebin.com/sXBxrBAG

@zh99998

This comment has been minimized.

Show comment
Hide comment
@zh99998

zh99998 May 28, 2013

same problem.

zh99998 commented May 28, 2013

same problem.

@vtypal

This comment has been minimized.

Show comment
Hide comment
@vtypal

vtypal Jun 30, 2013

Same issue. Tried with versions 1.0.3 , 1.0.2 , 1.0.1

With version 1.0.0 the creation of Makefile faield with the following different error::
creating Makefile

make
generating rubyeventmachine-x64-mingw32.def
compiling binder.cpp
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-EHs'
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-GR'
make: *** [binder.o] Error 1

Environment: Windows 8
Ruby: Version 2.0.0p195
Devkit: Ruby 2.0.0 x64 (64bits): mingw64-64-4.7.2

vtypal commented Jun 30, 2013

Same issue. Tried with versions 1.0.3 , 1.0.2 , 1.0.1

With version 1.0.0 the creation of Makefile faield with the following different error::
creating Makefile

make
generating rubyeventmachine-x64-mingw32.def
compiling binder.cpp
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-EHs'
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-GR'
make: *** [binder.o] Error 1

Environment: Windows 8
Ruby: Version 2.0.0p195
Devkit: Ruby 2.0.0 x64 (64bits): mingw64-64-4.7.2

@vosmith

This comment has been minimized.

Show comment
Hide comment
@vosmith

vosmith Jul 12, 2013

I also can't install event machine on Windows 7, Ruby-2.0.0, gem 2.0.3

c:\devkit\mingw\bin../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sys/types.h:68:16: error: conflicting declaration 'typedef _pid_t pid_t'
In file included from binder.cpp:20:0:project.h:97:13: error: 'pid_t' has a previous declaration as 'typedef int pid_t'
In file included from project.h:151:0,
from binder.cpp:20:
ed.h: In member function 'void EventableDescriptor::SetSocketInvalid()':
ed.h:43:40: warning: overflow in implicit constant conversion [-Woverflow]
make: *** [binder.o] Error 1

vosmith commented Jul 12, 2013

I also can't install event machine on Windows 7, Ruby-2.0.0, gem 2.0.3

c:\devkit\mingw\bin../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/include/sys/types.h:68:16: error: conflicting declaration 'typedef _pid_t pid_t'
In file included from binder.cpp:20:0:project.h:97:13: error: 'pid_t' has a previous declaration as 'typedef int pid_t'
In file included from project.h:151:0,
from binder.cpp:20:
ed.h: In member function 'void EventableDescriptor::SetSocketInvalid()':
ed.h:43:40: warning: overflow in implicit constant conversion [-Woverflow]
make: *** [binder.o] Error 1

@Zapotek

This comment has been minimized.

Show comment
Hide comment
@Zapotek

Zapotek Apr 26, 2014

I'm having the same issue, is there a fix planned for this? If not, someone should update the README to remove the "works well on Windows" part because it's misleading, to say the least.

Zapotek commented Apr 26, 2014

I'm having the same issue, is there a fix planned for this? If not, someone should update the README to remove the "works well on Windows" part because it's misleading, to say the least.

@avdv

This comment has been minimized.

Show comment
Hide comment
@avdv

avdv Oct 7, 2014

Just a small update. I ran into the same issue.

After commenting out the typedef pid_t line in project.h the build succeeded and it seems to work good so far, i.e. no segfaults here.

Ruby 2.1.3, rubenvb-4.7.2-release, GCC 4.7.2, Windows 7 64bit

avdv commented Oct 7, 2014

Just a small update. I ran into the same issue.

After commenting out the typedef pid_t line in project.h the build succeeded and it seems to work good so far, i.e. no segfaults here.

Ruby 2.1.3, rubenvb-4.7.2-release, GCC 4.7.2, Windows 7 64bit

@ShionRyuu

This comment has been minimized.

Show comment
Hide comment
@ShionRyuu

ShionRyuu Nov 4, 2014

I've met the same issue too. The following link may help:
http://stackoverflow.com/questions/17361958/eventmachine-gem-install-fail

ShionRyuu commented Nov 4, 2014

I've met the same issue too. The following link may help:
http://stackoverflow.com/questions/17361958/eventmachine-gem-install-fail

@sodabrew

This comment has been minimized.

Show comment
Hide comment
@sodabrew

sodabrew Feb 2, 2015

Contributor

This was fixed in Eventmachine 1.0.4.

Contributor

sodabrew commented Feb 2, 2015

This was fixed in Eventmachine 1.0.4.

@sodabrew sodabrew closed this Feb 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment