[Win32utils-devel] Demo daemon failure with mingw

Heesob Park phasis at gmail.com
Tue Sep 6 09:00:52 EDT 2011


Hi,

2011/9/6 Daniel Berger <djberg96 at gmail.com>

> On Sun, Sep 4, 2011 at 7:10 AM, Heesob Park <phasis at gmail.com> wrote:
> > Hi,
> >
> > 2011/8/22 Daniel Berger <djberg96 at gmail.com>
> >>
> >> Hi,
> >>
> >> I'm having some trouble with mingw and win32-service.
> >>
> >> Ruby 1.8.7 p330 (mingw)
> >> Windows Vista
> >>
> >> >ruby demo_daemon.rb install
> >> >ruby demo_daemon.rb start
> >>
> >> Result:
> >>
> >> c:\>tail -f win32_daemon_test.log
> >> 1
> >> 2
> >> 3
> >> 4
> >> 5
> >> 6
> >> 7
> >> 8
> >> 9
> >> Daemon failure: Service_Main thread exited abnormally
> >>
> >> Using a version compile with VC9 works as expected, however.
> >>
> >> Any ideas? I'm not using seh.h btw.
> >>
> >> Regards,
> >>
> >> Dan
> >>
> >
> > Here is an update of this issue.
> > I succeeded to run win32-service with win32-service 0.7.2 of daemon.c on
> > Ruby 1.8.7 p352 (mingw)
> > Windows 7 64bit
> > I'd like to know the reason why you're trying to run
> > ruby demo_daemon.rb install
> > ruby demo_daemon.rb start
> > The demo_daemon.rb is not for running on console.
> > The correct way is using demo_daemon_ctl.rb like
> > ruby demo_daemon_ctl.rb install
> > ruby demo_daemon_ctl.rb start
>
> Can you get it to work with a mingw Ruby 1.9? I cannot. Only the VC
> version is working.
>
> Regards,
>
>
I am able to start DemoSvc with mingw Ruby 1.9 just same as Ruby 1.8.7 on
Windows 7 64bit.

C:\work>ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
C:\work>ver

Microsoft Windows [Version 6.1.7601]
C:\work>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/devkit/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper
.exe
Target: mingw32
Configured with: ../../src/gcc-4.5.2/configure --build=mingw32
--enable-language
s=c,c++,ada,fortran,objc,obj-c++ --enable-threads=win32 --enable-libgomp
--enabl
e-lto --enable-fully-dynamic-string --enable-libstdcxx-debug
--enable-version-sp
ecific-runtime-libs --with-gnu-ld --disable-nls --disable-win32-registry
--disab
le-symvers --disable-werror --prefix=/mingw32tdm
--with-local-prefix=/mingw32tdm
 --enable-cxx-flags='-fno-function-sections -fno-data-sections'
--with-pkgversio
n=tdm-1 --enable-sjlj-exceptions --with-bugurl=
http://tdm-gcc.tdragon.net/bugs
Thread model: win32
gcc version 4.5.2 (tdm-1)

Regards,

Park Heesob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20110906/8745a345/attachment.html>


More information about the win32utils-devel mailing list