[Win32utils-devel] win32-service patch

Heesob Park phasis at gmail.com
Thu Jun 22 01:49:45 EDT 2006


Hi,

2006/6/22, Luis Lavena <luislavena at gmail.com>:
> On 6/19/06, Patrick Hurley <phurley at gmail.com> wrote:
> > This is a second post of this message -- service.c was too big and
> > caused the list to bounce it. Attached is a patch and my service.c.bz2
> > if there is any difficulty
> > applying the patch. I did the following:
> >
> [snip]
> > That's it -- in my tests it works perfectly. If I made any fax paus in
> > my patch creation or summary please let me know.
> >
>
> Hello Patrick.
>
> The patch sounds and look good, but I cannot build it here.
>
> This is the output of building 0.5.0:
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>        C:\ruby\bin\ruby -e "puts 'EXPORTS', 'Init_service'"  >
> service-i386-mswin32.def
>        cl -nologo -MD -Zi -O2b2xg- -G6 -I.
> -IC:/ruby/lib/ruby/1.8/i386-mswin32
> -IC:/ruby/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_ENUMSERVICESSTATUSEX
> -DHAVE_QUERYSERVICESTATUSEX -c -Tcservice.cservice.c
>        cl -nologo -LD -Feservice.so service.obj msvcrt-ruby18.lib
> oldnames.lib user32.lib advapi32.lib wsock32.lib  -link
> -incremental:no -debug -opt:ref -opt:icf -dll -libpath:"C:/ruby/lib"
> -def:service-i386-mswin32.def -implib:service-i386-mswin32.lib
> -pdb:service-i386-mswin32.pdb
>   Creating library service-i386-mswin32.lib and object service-i386-mswin32.exp
>
>
> And this is with your service.c file replacing the original:
> Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
>        cl -nologo -MD -Zi -O2b2xg- -G6 -I.
> -IC:/ruby/lib/ruby/1.8/i386-mswin32-IC:/ruby/lib/ruby/1.8/i386-mswin32
> -I. -DHAVE_ENUMSERVICESSTATUSEX -DHAVE_QUERYSERVICESTATUSEX -c
> -Tcservice.cservice.c
>        cl -nologo -LD -Feservice.so service.obj msvcrt-ruby18.lib
> oldnames.lib user32.lib advapi32.lib wsock32.lib  -link
> -incremental:no -debug -opt:ref -opt:icf -dll -libpath:"C:/ruby/lib"
> -def:service-i386-mswin32.def -implib:service-i386-mswin32.lib
> -pdb:service-i386-mswin32.pdb
>   Creating library service-i386-mswin32.lib and object service-i386-mswin32.exp
>
> service.obj : error LNK2019: unresolved external symbol
> _rb_get_dependencies referenced in function _service_services
> service.obj : error LNK2019: unresolved external symbol
> _rb_get_error_control referenced in function _service_services
> service.obj : error LNK2019: unresolved external symbol
> _rb_get_start_type referenced in function _service_services
> service.so : fatal error LNK1120: 3 unresolved externals
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
All above functions are defined at service.h
I guess you have incorrect version of service.h.

Regards,

Park Heesob


More information about the win32utils-devel mailing list