Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Win32::GUI make file test fail

by hurnhu (Initiate)
on May 23, 2013 at 23:29 UTC ( #1035040=perlquestion: print w/replies, xml ) Need Help??
hurnhu has asked for the wisdom of the Perl Monks concerning the following question:

bean trying to install Win32::GUI, have tried force, uninstalled and reinstall of strawberry, tried to build it, but here is the error i get when i cpan Win32::GUI

In file included from Scintilla.xs:8:0: ../GUI.h:768:22: warning: 'ImageList_Duplicate' redeclared without dll +import att ribute: previous dllimport ignored [-Wattributes] Scintilla.xs: In function 'CallWndProc': Scintilla.xs:199:101: error: 'GWL_USERDATA' undeclared (first use in t +his functi on) Scintilla.xs:199:101: note: each undeclared identifier is reported onl +y once for each function it appears in dmake: Error code 129, while making 'Scintilla.o' dmake.exe: Error code 255, while making 'subdirs' ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK CPAN: YAML::XS loaded ok (v0.39) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Stopping: 'install' failed for 'Win32::GUI'.

perl vr: 5.16.3

Replies are listed 'Best First'.
Re: Win32::GUI make file test fail
by syphilis (Chancellor) on May 24, 2013 at 02:57 UTC

    GWL_USERDATA is defined as -21 in winuser.h.
    Near the beginning of scintilla.xs, immediately following the line:
    #include "./include/Scintilla.h"
    I would insert:
    #ifndef GWL_USERDATA #define GWL_USERDATA (-21) #endif
    I don't think that insertion will create any problems. If it does, then we probably start to think that the GWL_USERDATA definition was skipped in the strawberry build for a very good reason.

    Anyway, see how that goes - and if it fixes the problem, maybe ask the Strawberry developers (by posting to the strawberry mailing list) just how/why it is that their winuser.h definition of GWL_USERDATA is being skipped for Strawberry Perl.

Re: Win32::GUI make file test fail (search)
by Anonymous Monk on May 24, 2013 at 02:09 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1035040]
Approved by kcott
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-06-20 06:21 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.